Skip to content

Add Area and AreaType classes and functionality to assign areas to assemblies#2750

Merged
mrcasals merged 9 commits intomasterfrom
2709_MVP_assemblies_improvements_area_field
Feb 23, 2018
Merged

Add Area and AreaType classes and functionality to assign areas to assemblies#2750
mrcasals merged 9 commits intomasterfrom
2709_MVP_assemblies_improvements_area_field

Conversation

@isaacmg410
Copy link
Copy Markdown
Contributor

@isaacmg410 isaacmg410 commented Feb 16, 2018

🎩 What? Why?

Add Area and AreaType and add a select field for assign an area to assemblies

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add CRUD Area
  • Add Crud AreaType
  • Add a select field for assign an area to assemblies
  • Add Tests

@ghost ghost assigned isaacmg410 Feb 16, 2018
@ghost ghost added the in-progress label Feb 16, 2018
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to add system specs for this, please! 😄

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 16, 2018

Codecov Report

Merging #2750 into master will decrease coverage by 0.01%.
The diff coverage is 97.84%.

@@            Coverage Diff             @@
##           master    #2750      +/-   ##
==========================================
- Coverage   98.86%   98.85%   -0.02%     
==========================================
  Files        1555     1572      +17     
  Lines       36888    37267     +379     
==========================================
+ Hits        36471    36840     +369     
- Misses        417      427      +10

@mrcasals
Copy link
Copy Markdown
Contributor

@isaacmg410 can you add a proper title for this PR?

@isaacmg410 isaacmg410 changed the title 2709 mvp assemblies improvements area field 2709 Add Area and AreaType classes and functionality to assign areas to assemblies Feb 16, 2018
@isaacmg410
Copy link
Copy Markdown
Contributor Author

@mrcasals much better? 😄

@mrcasals
Copy link
Copy Markdown
Contributor

@isaacmg410 yeah, although I don't understand what those numbers mean in the beginning of the title 😄

@isaacmg410 isaacmg410 changed the title 2709 Add Area and AreaType classes and functionality to assign areas to assemblies #2709 Add Area and AreaType classes and functionality to assign areas to assemblies Feb 16, 2018
@isaacmg410 isaacmg410 changed the title #2709 Add Area and AreaType classes and functionality to assign areas to assemblies Add Area and AreaType classes and functionality to assign areas to assemblies Feb 16, 2018
@isaacmg410
Copy link
Copy Markdown
Contributor Author

@mrcasals It was the issue number 😸

@isaacmg410
Copy link
Copy Markdown
Contributor Author

@mrcasals admin site is very similar to Scope and ScopeType, and I don't see system specs for these. What should be taken into account for Area and AreaType system spec?

@isaacmg410 isaacmg410 force-pushed the 2709_MVP_assemblies_improvements_area_field branch from 6a28d16 to 2a06aec Compare February 22, 2018 12:39
@mrcasals
Copy link
Copy Markdown
Contributor

@isaacmg410 copy how other system specs work, then. You should test the index, create and delete actions, and show if there's any

@isaacmg410
Copy link
Copy Markdown
Contributor Author

@mrcasals What can we do with codeclimate errors? it says similiar blocks..

@oriolgual
Copy link
Copy Markdown
Contributor

@isaacmg410 I've marked them as wontfix

@isaacmg410 isaacmg410 force-pushed the 2709_MVP_assemblies_improvements_area_field branch from 2a06aec to 54cdf36 Compare February 23, 2018 08:42
@isaacmg410
Copy link
Copy Markdown
Contributor Author

system specs area and areatype added on admin 😄

@mrcasals mrcasals merged commit e2699cb into master Feb 23, 2018
@ghost ghost removed the in-review label Feb 23, 2018
@mrcasals
Copy link
Copy Markdown
Contributor

Going in @isaacmg410! Thank you! 🎉

@mrcasals mrcasals deleted the 2709_MVP_assemblies_improvements_area_field branch February 23, 2018 09:45
@isaacmg410
Copy link
Copy Markdown
Contributor Author

🎉 🎉

@mrcasals
Copy link
Copy Markdown
Contributor

@isaacmg410 before opening an issue, is there any reason why the area input uses a plain select instead of reusing the data-picker we use in the scopes field? 😕 🤔

require "spec_helper"

module Decidim::Admin
describe CreateScopeType do
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is wrong

require "spec_helper"

module Decidim::Admin
describe CreateScope do
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is wrong

require "spec_helper"

module Decidim::Admin
describe UpdateScopeType do
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is wrong

require "spec_helper"

module Decidim::Admin
describe UpdateScope do
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is wrong

@mrcasals
Copy link
Copy Markdown
Contributor

@isaacmg410 see #2856 for more problems related with this PR 😞

@isaacmg410
Copy link
Copy Markdown
Contributor Author

@mrcasals about this

@isaacmg410 before opening an issue, is there any reason why the area input uses a plain select instead of reusing the data-picker we use in the scopes field? 😕 🤔

We think that it is not necessary to use scopes_picker_field since there are no child areas. On the other hand, it is an MVP.

@mrcasals
Copy link
Copy Markdown
Contributor

@isaacmg410 oh, OK then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants