mozilla / sumo

Project management board for SUMO and Community properties.
Mozilla Public License 2.0
14 stars 5 forks source link

Tags which were deleted via admin are not automatically removed from questions page #2038

Closed emilghittasv closed 2 weeks ago

emilghittasv commented 2 weeks ago

Preconditions Sign in to SUMO with an admin account.

Steps to reproduce Steps to reproduce the behavior:

  1. Go to any question and apply a tag.
  2. Go to admin and delete the tag applied in step 1.
  3. Navigate back to the question from step 1 and refresh the page.

Expected behavior The tag which was deleted via admin is automatically removed from the question.

Actual behavior The deleted tag is still displayed on the question page.

Screencasts deleted_tags

Additional Notes This issue is reproducible even after removing a tag from a question via admin from the Tagged Items section: tagRemovedFromQuestion

akatsoulas commented 2 weeks ago

This is working correctly. When the entry is removed from the Tagged Items, the tag is removed from the associated object. In this example from the question. In order to complete remove the tag, you need to delete it from /admin/taggit/tag/

emilghittasv commented 2 weeks ago

The tags are not removed from the posted question UI immediately because the tag list is cached https://github.com/mozilla/kitsune/blob/main/kitsune/questions/models.py#L397