Skip to content

[Tagging] CRUD API for editing tags in a taxonomy #136

Description

@bradenmacdonald

"As a user, I want to be able to make basic edits to a taxonomy from the UI"

Acceptance Criteria

  1. A python and REST API allow adding a tag to a taxonomy.
  2. A python and REST API allow renaming a tag.
    • changes to the tag value should propagate to ObjectTags ?
  3. A python and REST API allow deleting an individual tag. If it has children, by default the delete will fail, but if the with_subtags option is specified, all subtags will be deleted as well.
  4. A python and REST API allow bulk-deleting of tags. For simplicity this can be combined with (3) into a single "delete tags" API. The same criteria for handling sub-tags as 3 applies.
  5. Attempting to bulk-deleting tags from more than one taxonomy should result in an error message. Bulk delete only works within a single taxonomy at a time.
  6. When tags are deleted, the ObjectTags get their tag set to NULL and will be hidden, but the ObjectTags are preserved in the database and can later be re-synced if a tag with the same name is re-created. (This is already implemented.)
  7. The REST API must respect the permissions defined in [Tagging] Permissions for Taxonomies List Page and Taxonomy Detail Page #129.

This API will be used for #132, #131, #130.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions