-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update proposals advanced search #2133
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's an initial review; let me know what you think! 😉
The 0.3.5 version was yanked due to license issues. More information at: rails/rails#41750
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Senen Only one comment this time. Let me know what you think 😉.
b2ddc0e
to
cd5b265
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of minor comments regarding the tests. Feel free to ignore them 😉.
Remove unused code
* Add combo box with geozones to advanced search * Add scope to custom proposal model to filter records by geozone
These specs check that the advanced search form works when using multiple filters at a time. Now we removed the author category filter we can use the new filter by geozone to check the same.
As we are going to modify how and where the geozone links are rendered.
As we want the proposals geozones links to point to the new combo box within the advanced search. We needed to remove the id attribute from the new custom geozone view as we now render it at the same page many times. Otherwise the generated HTML would be invalid. No additional test are needed as the new feature behaves exactly the same than the previous version but using the geozone filter instead of the search by text.
Now we want the geozone links and the map image areas to point to the proposals advanced search filter by geozone. No additional test are needed as the feature keep working the same it was with the previous version but using the advanced search form filter by geozone instead of the search by plain text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍.
References
This is part of the Ciudades Abiertas project.
Objectives
Improve proposals search:
Visual Changes
Before
Advanced search filter with filter by author category
How the proposal was shown before this change
After
Advanced search filter
Show proposals district as a tag
Does this PR need a Backport to CONSUL?
No