Open khyurri opened 1 year ago
Known bugs:
/categories
page with Internal server error
Example request:
{"id":"t-root","name":"t-root","metadata":{"color":"#876565"},"type":"box","parent":null}
Known bugs:
- [ ] Unable to create new category from
/categories
page withInternal server error
Example request:{"id":"t-root","name":"t-root","metadata":{"color":"#876565"},"type":"box","parent":null}
Special symbols are not allowed in Ltree path. Allowed: letters [a-z, A-Z], digits [0-9] and underscore ("_"). Solution - add validation on CategoryResponseSchema.
@MagicTearsAsunder
children
must contain only current level children
Back-end
[ ] When new job is creating, user can select categories for this job. If user selects category with parents, all parents must be assigned to this job (annotation service). It means, that if user selects sub-category, all parents are also selected
[x] Add
/annotation/categories/search
endpoint with hierarchy support scheme[x] Add
/annotation/jobs/{job_id}/categories/search
endpoint with hierarchy support schemeHierarchy support scheme contains:
is_leaf
boolean, to show is current node has childrenparents
list of parent categories, ordered from root to current node without current nodeExample:
Front-end
Filterlib LTREE support
Supported operations:
children
- returns children ofvalue
, to get only root nodes setvalue
asroot
children_recursive
- returns all children down the treeparent
- returns parentparents_recursive
- returns all parentsOthers