Page MenuHomePhabricator

wbmergeitems adds alias when a duplicate label / alias already existed on target item
Closed, DeclinedPublic

Description

See https://www.wikidata.org/w/index.php?title=Q474157&diff=200753230&oldid=200706473

The label "collaborative software" already existed in the target, but an alias "Collaborative software" was added.
This should perhaps not be the case and instead don't add the alias...

I believe the change is / needs to be at https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/repo/includes/ChangeOp/ChangeOpsMerge.php#L168
where we currently have the following but instead need a case insensitive check:

$toLabel === $label

Event Timeline

Addshore raised the priority of this task from to Medium.
Addshore updated the task description. (Show Details)
Addshore added subscribers: Addshore, Lydia_Pintscher.

Change 197909 had a related patch set uploaded (by Sumit):
ChangeOpsMerge Case insensitive string check added

https://gerrit.wikimedia.org/r/197909

See my comment at https://gerrit.wikimedia.org/r/#/c/197909/. I suggest to close this as "wont fix", "works as intended".

I am inclined to agree with thiemo (even thought I opened the bug) :)

hoo claimed this task.

I agree with the above statements, let's not do this.

Change 197909 abandoned by Sumit:
ChangeOpsMerge Case insensitive string check added

Reason:
declined

https://gerrit.wikimedia.org/r/197909