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:)、シェルでそれを実行する方法を引き続き探します。

IIRC、さらに読み込むには下にスクロールしてから「すべて選択」する必要があると思います。表示できるものしか取得できないため、最初に読み込むためにスクロールする必要があります。

「いいね!」 2

ありがとうございます。その可能性は思いつきませんでした。

しかし…タグを変更または名前変更するだけのメニューでは役に立ちません。すべてのタグを削除するか、すべてのタグを変更することはできますが、1つだけということはできません。そして、投稿には通常、1つ以上のタグがあり、すべての投稿が1つのタグを共有している投稿には、他の異なるタグもあります。それらはそのままにしておくべきです。

したがって、このソリューションは、タグをマージ/名前変更する必要がある場合には役立ちません。多数の投稿ですべてのタグを同じに変更する必要がある場合に役立ちます。

それとも、また何か誤解しましたか?

よくわからないのですが? :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時間後に自動的にクローズされました。新しい返信は許可されていません。