akvo-rsr
akvo-rsr copied to clipboard
[#4642] Create program filtering
TODO / Done
Summarize what has been changed / what has to be done in order to finalize the PR.
- [x] Create an advanced program filter bar.
- [x] Create search functionality to find results or indicator titles.
- [x] Implement a new endpoint to load the initial results
- [x] Fix the semi-circle chart position to make it in line with the indicator title
- [x] Remove white space in the progress bar chart container that has empty / zero values.
- [x] Hide n contributor(s) when filtering is active.
- [x] Hide the country name at the bottom of Reporting period when the results have nested contributors
- [x] No comment at this period seems not necessary information
- [x] Highlighted color only for selected items ( contributor, partner).
- [x] Layout issues with the breadcrumbs (showing active filters) on different screen sizes.
- [x] Layout issues can't scroll beyond a certain point to apply.
- [ ] Get cumulative value
https://github.com/akvo/akvo-rsr/blob/28c98600c8bfc81b393f220f9402529cfc1fa8ab/akvo/rest/views/program_results.py#L46
Test plan
What tests are necessary to ensure this works or doesn't break anything working
Program Filters Feature
- [ ] Search results or indicator titles by keyword
- [ ] Filter results by location/countries.
- [ ] Filter results by periods.
- [ ] Filter results by contributors.
- [ ] Filter results by partners.
- [ ] Apply all terms/filter options.
- [ ] Move the program randomly
Contributor's Updates
Open contributor's updates by expanding collapsible result > indicator > period > contributors with the following project id :
Cumulative Indicator
Run these two commands to recalculate the actual value and execute the job :
./manage.py recalculate_project_aggregation 9062
./manage.py run_aggregation_jobs
and test it on the program overview ID: 9062 with the following manual test cases
- [ ] Check indicator actual value if cumulative is true in the project editor.
- [ ] View all in a specific reporting period, load more, and OK.
- [ ] Edit job status and see what happened in Program Overview.
- [ ] Set job as max attempts and re-run the job from Program Overview.