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

Improve project hierarchies frontend view

Open MichaelAkvo opened this issue 2 years ago • 1 comments

TODO / Done

Summarize what has been changed / what has to be done in order to finalize the PR.

  • [x] Add /project/:id/children endpoint
    • [x] frontend: query it for getting the children of a project on demand, whereas currently all descendants are retrieved at once
  • [x] Add /program/ endpoint
    • [x] frontend: get all programs using this endpoint
  • [x] Remove /program_hierarchy endpoint

Test plan

What tests are necessary to ensure this works or doesn't break anything working

  • [x] Unit tests

Manual Test

  1. Go to the Orange Knowledge program
  2. Go to the contributor project of the Orange Knowledge program ID : 9950
  3. Go to the Joelex project
  4. Go to Innovate (Via Water)

Related to #4936

MichaelAkvo avatar Oct 03 '22 15:10 MichaelAkvo

Coverage Status

Coverage decreased (-0.1%) to 66.737% when pulling 49c9ef41e28895680c28e81847f189e48523ca6d on feature/5041-hiearchies-migrate-contributing-projects into d81e682861a9871e7c40baf8d08b479ca9ead169 on master.

coveralls avatar Oct 03 '22 15:10 coveralls

@zuhdil I'm fine with merging this as it is and dealing with further optimisations later. Do you have any further comments?

MichaelAkvo avatar Dec 13 '22 15:12 MichaelAkvo