Page MenuHomePhabricator

wbeditentity add overwrites value
Closed, DuplicatePublic

Description

According to the API docs:

Add a label (won't overwrite)

api.php?action=wbeditentity&id=q1&data={"labels":[{"language":"no","value":"Bar","add":""}]}&format=jsonfm

But the label is overwritten anyways. Is appears as if the "add" value was ignored.

Event Timeline

Addshore moved this task from Incoming to Needs Work on the Wikidata-Campsite board.
Addshore added subscribers: Lydia_Pintscher, Addshore.

It is indeed true the docs do say this.

image.png (51×796 px, 11 KB)

But on testwikidata

{"labels":[{"language":"no","value":"Bar2","add":""}]}

resulted in

https://test.wikidata.org/w/index.php?title=Q197516&diff=prev&oldid=474753

We either need to:

  1. Fix the docs
  2. Fix the code to do what the docs say

@Lydia_Pintscher which do we want? Maybe this has been like this forever?