Renaming Tag to Existing Tag Should Merge

Since Tags are so important in Discourse best practices, I believe we need at least the basic operations for managing them. And it seems like one that is missing is being able to merge one tag into another. For example, if users create both #dog and #dogs, at some point the admin will want to consolidate these.

What I’d expect is that when I tell it to rename #dog to #dogs it would say, “Tag already exists, do you want to merge this one in to that one?” instead of just denying the operation as it does currently.

As it stands it seems like I’d have to modify those topics one by one and finally delete the empty tag.

There is a related topic about synonyms, which is related to some degree.

1 个赞

The tools already exist to do this, just not in the form of a merge button. It’s actually useful to be alerted to a tag already existing, and a merger would be irreversible, so it’s probably wise that it’s not just a click away.

You can also just visit a tag page, then click on the icon to the left of Topic which reveals checkboxes to the left of each topic and the following buttons:

46%20PM

Hit Select All on the posts and use Append Tag on the wrench menu:

Or if it’s the only tag on those posts Replace Tag works too.

After that you can delete the unwanted tag.

6 个赞

Thanks Stephen, very useful!

(And FWIW I wasn’t suggesting just a “one click” action. I was advocating having to click “rename tag” and then having to click through another confirmation as well. But this workaround of append and delete should be fine for me.)

Will this work even if i have 999_999_999 topics? (i would really like not to be in that situation, but you never know :smiley: )

旧话题,但因为我是通过搜索找到它的 :wink:

当然可以——但每次处理 30 个帖子。

而且因为我正处于这种情况(嗯,不完全是替换了这么多标签 :rofl: ),我将继续在 shell 中寻找如何做到这一点。

我记得,你必须向下滚动才能加载更多,然后选择“全选”。我认为它只抓取它能“看到”的内容,所以你必须先滚动才能加载它们。

2 个赞

谢谢。我从未想过这种可能性。

但是……当只需要更改或重命名一些标签时,该菜单并没有帮助。我可以删除所有标签或更改所有标签,但不能只更改一个。帖子通常不止一个标签,而且所有共享一个标签的帖子也都有其他不同的标签——这些应该保持不变。

所以,当需要合并/重命名标签时,这个解决方案没有帮助。当需要将大量帖子的所有标签更改为相同标签时,它才有用。

或者我又有什么地方理解错了?

我不确定我是否明白了?:slightly_smiling_face: 我的建议是针对“一次只能选择 30 个”的问题。批量选择可能不是所有情况的解决方案。我认为它在搜索结果页面和主题列表中都有效,这是否有帮助?

而且现在手机上也可以使用了。:tada:

这是个非常普遍的问题 :rofl:

我们可以,或者我,归咎于我糟糕的英语和格式不佳的句子。感谢之后,下一章不走运地以 但是… 开头,指的不是你的建议,而是最初关于使用该工具的建议。

1 个赞

:slightly_smiling_face: 是的,我想我现在明白了。

我认为最初的功能请求本身就很好。:+1: 合并标签比批量操作要容易得多。

**编辑:**事实上,这是一个如此好的功能,它已经被添加了。:slight_smile:

1 个赞

我以为有一个合并标签的选项。

1 个赞

那不是合并。或多或少是重定向。或者我这么认为,我也可能完全错了,

或者那里的重定向是为了将来的需要,如果它会被立即丢弃,旧的重定向是否已更改为新的?

我必须检查一下,因为我现在正在为此而奋斗。

我错了。它确实正在合并,重定向只是为了将来有人尝试使用旧的。太棒了!

  • 旧标签是 A,包含 X 篇帖子
  • 新标签是 B,未使用
  • A 是 B 的同义词
  • 所有帖子都已从标签 A 更改为标签 B
  • 同义词连接应被删除
  • 所有帖子都保留在标签 B 下,标签 A 包含零篇帖子

确实太棒了 :+1:

3 个赞

捉到你了@Moin :slight_smile: 我将关闭此话题。:+1:

1 个赞

此主题在上次回复后 24 小时自动关闭。不再允许回复。