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

Fix valuation heading filters #2702

Merged
merged 2 commits into from
Jun 27, 2018
Merged

Conversation

decabeza
Copy link
Collaborator

References

This is a backport of AyuntamientoMadrid#1357
This close #2461

Objectives

Fix heading filters by correctly creating a scenario spec that covers all combinations and checks right behaviour is met.

Visual Changes (if any)

No real visual changes, only right behaviour.

Notes

Check each commit to easily understand changes, as the second commit just encloses all the "Index related" scenarios in a:

feature 'Index' do
...
end

and the indentation changes makes it look like a lot of "real" changes

Why:

Heading filter where not being correctly displayed

How:

Increasing scenario to cover all possible combinations, and fixing the
heading_filters method of the Valuation Budget Investment Controller to
correctly:
  * Find how many investments the valuator can access
  * Count investments for each heading
Grouping scenarios makes it easier to follow the spec and to know where
to put a new scenario
@decabeza decabeza merged commit 6ec1137 into master Jun 27, 2018
@decabeza decabeza deleted the fix_valuation_heading_filters branch June 27, 2018 14:43
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.

Show assigned Investments to Valuators through Valuator Groups on valuation pages
2 participants