Skip to content
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

Invert budget groups order at investment form #1138

Merged
merged 6 commits into from
Jan 22, 2018

Conversation

bertocq
Copy link

@bertocq bertocq commented Jan 22, 2018

What

"Toda la ciudad: Toda la ciudad" should be first option at heading selection on Investment form

How

Just order Budget Groups by name but descending, so always "Toda la ciudad" will be above "Distritos", and that will make the heading "Toda la ciudad" always be on top of any other heading.

As a bonus we're removing the Budget::Group name from the option text when it only has one heading.

Screenshots

screen shot 2018-01-22 at 19 49 47

Test

Increased investment feature spec adding an scenario for this particular change on madrid's codebase and avoid mixing it with other scenarios that should be equal to consul's ones.

Deployment

As usual

Warnings

None

We need to present heading "Toda la ciudad" before every other heading
so we just order Budget grups descending so "Toda la ciudad" will be
firt and "Districts" second
@bertocq bertocq merged commit 2578e12 into master Jan 22, 2018
@bertocq bertocq deleted the invert_budget_groups_order branch January 22, 2018 22:11
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.

None yet

2 participants