XXN added a comment.

[...]Can you try by changing the description first and then adding en label?

do you mean in different edits? But why? In such case it should work certainly, otherwise Wikibase can be considered broken completely :)


My error case can be reproduced with ease. I've created for testing purposes two items in test.wikidata:
https://test.wikidata.org/wiki/Q63671 (EN_label: "ItemAlfa"; EN_description: "mydescription")
https://test.wikidata.org/wiki/Q63672 (EN_label: "" (missing label); EN_description: "mydescription")

Descriptions are equal, labels are different.
My edit in fact is overwriting both label and description of an item simultaneously, creating a situation where the descriptions are different and labels are equal, but unsuccessfully without a valid reason - the edit is not accepted.

You can try this small script to edit one of these items in the same way I did, and you will see what will happen (I get the same error like on the the production site):

import pywikibot

site = pywikibot.Site("test", "wikidata")
repo = site.data_repository()

item = pywikibot.ItemPage(repo, "Q63672")

data = "" {'en': u'mydescription1'},'labels': {'en': u'ItemAlfa'}}
item.editEntity(data, summary=u'TEST: Set descriptions and labels')

TASK DETAIL
https://phabricator.wikimedia.org/T165249

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: XXN
Cc: Ladsgroup, Framawiki, Multichill, Aklapper, pywikibot-bugs-list, XXN, GoranSMilovanovic, QZanden, Sethakill, dg711, Izno, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Anomie, Mbch331, Legoktm
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to