Skip to content

Fix rename tag change capitalization - Backend #274

@jesperhodge

Description

@jesperhodge

Description

As a user, when I go to a taxonomy detail view and try to rename a tag, and only change it's capitalization - for example rename "Client Support" to "Client support" - I get an error.

The reason is that the backend validates for duplicate tags, and it is case-insensitive.

Apparently when a tag is updated with a new value, the validator checks for uniqueness against all existing tags, including its own old value. That is obviously not correct. We should not enforce that the new value is different from the old value.

Other information

This fixes #131 (comment)

Testing Instructions

  • In Course Authoring, go to taxonomies - open a taxonomy detail view
  • Go to a tag row, click three dot menu in the row
  • Rename tag to the same name, only change capitalization (e.g. "Science" becomes "science"), nothing else
  • It should successfully rename the tag to the new capitalization and should not show any error

Metadata

Metadata

Assignees

Labels

verawoodReleased in Verawood

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions