Fehler beim Hinzufügen eines Tag-Synonyms, wenn beide bereits auf einem Thema existieren

Es scheint, als könne der aktuelle Code das Erstellen von Synonymen nicht handhaben, falls das Thema bereits beide Tags vor dem Erstellen des Synonyms enthielt.

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.

Kann jemand das bitte bestätigen und es wahrscheinlich in #bugs verschieben? Danke!

4 „Gefällt mir“

Ja, dieses Problem tritt auch bei unserer Discourse-Installation auf.

1 „Gefällt mir“

Bestätigt, dass dies immer noch im neuesten Code auftritt.

5 „Gefällt mir“

@vinothkannans kannst du das regeln?

2 „Gefällt mir“

Dies ist nun im folgenden Commit behoben

7 „Gefällt mir“