Allow members to remove restricted tags / categories from tracking preferences

AI-generated summary

lindsey reports a bug where members cannot remove restricted tags or categories from their tracking preferences. When a tag is restricted, it disappears from the Tags Watched list, but topics with that tag are still tracked as Watching. The expected behavior is for the tag to remain visible in the Tags Watched list, allowing members to remove it. This issue was discovered during testing with NateDhaliwal and is related to a previous discussion on unwatching topics when their associated tag is no longer watched.

:information_source: Overview

If a member had previously tracked a tag or category that had since been restricted such that they can no longer see the tag, we should make it possible for them to remove that tag or category from their tracking preferences. As it stands now, topics with the restricted tag or category will always be Watched.

There are a few different ways to go about this, but I think the best option would be to leave the tag / category in the tracking preferences so members can remove them. At that point, members shouldn’t be able to add them back.

:walking_woman: Steps to reproduce

  1. As an admin user, create a tag and ensure its group is set to Tags can be used by everyone.
  2. As a non-admin user, go to your tracking preferences and add this tag to the Tags Watched list.
  3. As an admin user, update the tag’s group to Tags are visible only to the following groups and set that to “admins”.
  4. Go back to the tracking preferences for the non-admin user.

:white_check_mark: Expected: The tag is still visible in the Tags Watched list and can be removed if desired.

:cross_mark: Observed: The tag is no longer visible in the Tags Watched list.

  1. As the admin user, create a new topic with this tag.
  2. As the non-admin user, open that topic.

:white_check_mark: Expected: The topic is tracked as Normal.

:x: Observed: The topic is tracked as Watching.

:books: Additional context

This came up in testing with @NateDhaliwal after discussing a related topic: Un-watch topics when you stop watching their associated tag

2 Likes