-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Screen.Recording.2026-03-17.at.4.23.58.PM.mov
The taxonomy tag API GET, if receiving a full_depth_threshold = 1000, should return taxonomy tags of 4 levels: 0,...,3 (they are zero-indexed).
When a subtag is created for a tag that's at level 2, then the taxonomy tag API should include the new tag in its returned data. Currently it does not.
Creating a subtag at level > 3 (go to a tag at level 3, create new subtag) should return a 4xx error because of the MAX_DEPTH_LEVEL=3 setting on the backend.
Technical Details
To fix the bug, line 538 needs another one of those Q statements for the great grandparent: https://github.com/openedx/openedx-core/blob/848f6633fa4d1c8ede8db90c22a6d4eab485acf9/src/openedx_tagging/models/base.py#L533
When the parent_tag_value is none, the effect otherwise will exclude great-grandchildren.