Bulk Actions: "Add Tags" in addition to "Change Tags"

AI-generated summary

Users reported that the bulk ‘Change Tags’ feature dangerously replaces all existing tags on selected topics instead of allowing tags to be appended. tobiaseigen accidentally removed tags from over 20 topics due to this behavior and proposed adding a dedicated ‘Add Tags’ option. The community quickly supported this request, with lisajill and JMichaelTX emphasizing the need to add tags without disturbing existing ones. downey noted that surprise destructive actions are problematic and linked to similar issues. jomaxro suggested the tag was a good candidate for community contribution, also mentioning a related request for bulk tag removal.

Developer dmacjam submitted a Pull Request that implements an append button and renames the original button to ‘Replace Tags’ for clarity. Following a query from JMichaelTX about immediate availability, cpradio explained that the change requires merging and will appear in the beta environment within 15-20 minutes of the merge. tobiaseigen thanked the developer, and the feature was confirmed to be available in the beta release by dmacjam.

Today I made the rather sad discovery that the bulk “change tags” feature depicted below actually will set the tags for selected topics to be exactly the same as the tags entered, meaning it will remove any existing tags. Discovery is sad because I accidentally borked 20 or more topic tags because I misunderstood what was going to happen, and there’s no undo. :crying_cat_face:

A fix to this would be to add a new “Add Tags” option to the bulk actions, which would allow the bulk adding of tags to selected topics without removing any existing tags those topics might have. :heart_eyes_cat:

10 Me gusta

Ouch. We bulk manage tags all the time and will need to add tags without disturbing existing ones. Please add this.

3 Me gusta

Yes, please add this ASAP. We have just installed the tags plugin, and it is great!
But we need to do many searches, and ADD tags for each search, NOT replace tags.

Thanks.

3 Me gusta

Yes please. Surprise destructive actions are never a good thing.

2 Me gusta

So this has the pr-welcome tag, I’d love to see someone in the community take a stab at this, and possibly bulk tag removal as well!

1 me gusta

I’ve managed to create append button for tags and renamed the old ambiguous button one to “replace tags”. Here is the PR:

https://github.com/discourse/discourse/pull/4622

11 Me gusta

Thanks. That sounds great!

I’m not familiar with the process. Can this change be used now (if so, how?) or do we have to wait for it to be integrated with a new Discourse release?

You have to wait for it to be merged in. Once it is merged in tests-passed will pick it up within 15-20 minutes, beta will pick it up at the next release, and stable at its next release.

4 Me gusta

Superfab. Many thanks!

Thanks for the clarification.
I hope this new feature makes it into release version very soon.

2 Me gusta

Just letting you know that the feature is finally in the beta release.

6 Me gusta