hrcnz / impactoss-client

IMPACT: Integrated Management and Planning of Actions (for Human Rights and SDGs) - Client-side application
Other
0 stars 1 forks source link

Hierarchical categories: allow assigning a parent category #42

Open tmfrnz opened 4 years ago

tmfrnz commented 4 years ago

In order to better capture recommendation cycles that are specific to the different HR bodies, we are introducing nested categories. Specifically this is the ability to mark categories of one taxonomy (eg cycle) as sub-categories of another taxonomy (eg body). This is only allowed though when the taxonomy has also been marked as a sub-taxonomy of the other taxonomy. While the taxonomy relationship can only be configured on the server, the category relationship shall be made accessible in the client.

This has already been implemented for the server and deployed to the staging site but is pending further review (see https://github.com/hrcnz/impactoss-server/compare/master...hrcnz:add-sub-relations).

The first task will be to allow assigning a parent category to a category if the category's taxonomy has a parent taxonomy. The parent options should be limited to those categories that are of that taxonomy's parent taxonomy (eg for any category of the cycle taxonomy the parent category options are all the categories of the HR body taxonomy).

Specifically: