hasadna / Open-Knesset

A project aimed at making the Israeli Knesset more transparent. Python and Django based
http://oknesset.org/
BSD 3-Clause "New" or "Revised" License
106 stars 175 forks source link

Suggest new tag is broken when suggesting an existing waiting for approval tag #737

Open alonisser opened 7 years ago

alonisser commented 7 years ago

https://oknesset.org/bill/8026/ as a logged in user try writing "עישון" in edit tags press "suggest new tag" get an error in http because the tag seams to exists But the UI is just stuck

  1. Should have meaningful error to the client instead
alonisser commented 7 years ago

The error is because the tag suggestion exists

alonisser commented 7 years ago
Type IntegrityError
Value
duplicate key value violates unique constraint "auxiliary_tagsuggestion_name_key"
DETAIL:  Key (name)=(עישון) already exists.