Page MenuHomePhabricator

Placeholder labels generated by MUL should be considered as real labels to avoid duplications
Open, Needs TriagePublic

Description

Steps to replicate:

  • consider an item X with mul label "Jack", no English label and English description "given name"
  • go to an item Y and add "Jack" as English label and "given name" as English description

What happens:

  • the edits on item Y are saved

What should happen:

  • the edits on item Y should not be saved and a message should be displayed "Could not save due to an error.

Item X already has label "Jack" associated with language code en, using the same description text." In fact in item X there is no English label, but since there is no English label the software should interpret mul label as it was the English label and thus inhibit the save

Cf. T285156 regarding mul labels
See also: T306918: Prohibit duplication of mul labels in other languages (prevent adding duplicated labels to the same item)

Event Timeline

Epidosis renamed this task from Labels generated by mul should be considered as real labels to avoid duplications to Placeholder labels generated by MUL should be considered as real labels to avoid duplications.Fri, Sep 13, 9:51 PM

Please note that the check should work the other way round as well, i.e. disallow setting a mul label such that it, combined with the present item’s English description, conflicts with another item’s English label and description. Or another item’s mul label and English description. And of course the same for any other language as well. And this is where things may become tricky performance-wise (although I don’t know how this check is implemented, so I can’t tell for sure): if one changes the mul label of an item with n descriptions, the software needs to check 2n label–description pairs across all items in Wikidata, which is a huge increase from the current one item–description pair. I hope it will be possible to implement this without bringing down Wikidata (especially as one of the reasons for mul was to avoid bringing down Wikidata).

I agree a check should be implemented to avoid duplicates.