현재 코드는 시노니움을 생성할 때, 해당 토픽에 이미 두 개의 태그가 모두 포함된 경우를 처리하지 못하는 것 같습니다.
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개의 좋아요