akvo-rsr
akvo-rsr copied to clipboard
Improve project hierarchies frontend view
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
- Go to the Orange Knowledge program
- Go to the contributor project of the Orange Knowledge program ID : 9950
- Go to the Joelex project
- Go to Innovate (Via Water)
Related to #4936
Coverage decreased (-0.1%) to 66.737% when pulling 49c9ef41e28895680c28e81847f189e48523ca6d on feature/5041-hiearchies-migrate-contributing-projects into d81e682861a9871e7c40baf8d08b479ca9ead169 on master.
@zuhdil I'm fine with merging this as it is and dealing with further optimisations later. Do you have any further comments?