Tarrow added a comment.
Sorry for the lack of explicit reproduction :/. The steps below use `httpie`
and the mediawiki-docker-dev setup.
> I didn't test anything in API, I tested everything in desktop GUI
I think in desktop GUI different endpoints are used (wbsetlabel,
wbsetdescription) not wbeditentity. Here is are steps to reproduce; sorry that
they weren't clearly there before.
1. in Wikibase `git checkout 336207887deea6ad3644c222124233a132db7f58` At the
time of writing this is: origin/wmf/1.34.0-wmf.4
2. make a new item e.g. `http -f POST
default.web.mw.localhost:8080/mediawiki/api.php action==wbeditentity new==item
data=='{ "labels": { "en":{"language": "en", "value": "foo"} }, "descriptions":
{ "en":{"language": "en", "value": "foo"} } }' token='+\'`
3. Apply the reverted patch `git cherry-pick
b71b5b2af611e593816bbe6b949e216b88e1dcf8`
4. try and change the duplicated terms: `http -f POST
default.web.mw.localhost:8080/mediawiki/api.php action==wbeditentity id=Q314
data=='{ "labels": { "en":{"language": "en", "value": "foo"} }, "descriptions":
{ "en":{"language": "en", "value": "NOTfoo"} } }' token='+\'`
5. Get returned error with info `Label and description for language code en
can not have the same value.`
TASK DETAIL
https://phabricator.wikimedia.org/T222621
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ladsgroup, Tarrow
Cc: alaa_wmde, thcipriani, Jdforrester-WMF, Jakob_WMDE, Aklapper,
Liuxinyu970226, Tarrow, darthmon_wmde, joker88john, CucyNoiD, Nandana,
NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985,
Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis,
GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden,
LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Jonas,
Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs