akvo-rsr icon indicating copy to clipboard operation
akvo-rsr copied to clipboard

[#4642] Create program filtering

Open ifirmawan opened this issue 3 years ago • 1 comments

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.

ifirmawan avatar Sep 30 '21 16:09 ifirmawan

Coverage Status

Coverage: 68.139% (-0.03%) from 68.166% when pulling 6609484f3637c48105e4592715f16ac919dcbb1f on 4642-program-filter-fe into c6c4484c43dce724501c3f9254ab2dd2b867d58f on master.

coveralls avatar Jun 06 '22 16:06 coveralls