現在のコードでは、トピックにすでに両方のタグが存在している状態でエイリアスを作成しようとした場合、処理できないようです。
Started POST "/tag/solstrip/synonyms" for 3.14.14.5 at 2020-02-29 12:07:28 +0000
Processing by TagsController#create_synonyms as */*
Parameters: {"synonyms"=>["solstrips"], "tag_id"=>"solstrip"}
Completed 500 Internal Server Error in 46ms (ActiveRecord: 0.0ms | Allocations: 6385)
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_topic_tags_on_topic_id_and_tag_id"
DETAIL: Key (topic_id, tag_id)=(14651, 310) already exists.
)
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rack-mini-profiler-1.1.6/lib/patches/db/pg.rb:69:in `exec_params'
Failed to handle exception in exception app middleware : PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_topic_tags_on_topic_id_and_tag_id"
DETAIL: Key (topic_id, tag_id)=(14651, 310) already exists.
どなたかこれを確認して、おそらく#bugs へ移動させてもらえませんか?ありがとうございます!
「いいね!」 4
justani
(Aniruddh Dubey)
2
はい、この問題は当社の Discourse インストールでも発生しています。
「いいね!」 1
最新のコードでも、この事象が継続していることを確認しました。
「いいね!」 5
sam
(Sam Saffron)
4
@vinothkannans これを整理してもらえますか?
「いいね!」 2