Currenlty, we can create more than one tag with the same name. This would normally not happens, as long as tag name is its user primary identifier.
Reproduce
In Contacts app:
add a tag (e.g cozy) to a contact
switch to another contact
add a tag to this new contact, but do not use the autocomplete suggest (type cozy in plain in the input field)
=> CouchDB now contains 2 docs tag with the same name.
Expected
DS should detect the duplicate entry and fallback to the existing one (so name acts as a primary key).
Currenlty, we can create more than one tag with the same
name
. This would normally not happens, as long as tag name is its user primary identifier.Reproduce In Contacts app:
cozy
) to a contactcozy
in plain in the input field) => CouchDB now contains 2 docstag
with the samename
.Expected DS should detect the duplicate entry and fallback to the existing one (so
name
acts as a primary key).