CommunityTechBot updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
26570726f6475636520796f757220627567207573696e67206120726563656e742076657273696f6e206f662074686520736f6674776172652c20746f2068652077696b6920636f6e74656e74206c616e67756167652e0a0a5468616e6b20796f752e0a546167730a436865636b557365720ad70a436f6e6e65637465642d4f70656e2d48657269746167652d42617463682d75706c6f61647320285241c42d4b4d425f315f323031372d3032290ad70a54616d696c2d53697465730ad70a47616d6570726573730ad70a48617368746167730ad70a4a4144450ad70a4b6172746f456469746f720ad70a4c616e67756167652d323031382d4170722d4a756e650ad70a4e65772d456469746f722d457870657269656e6365730ad70a4d61696c0ad70a5443422d5465616d0ad70a53756273637269626572730a4465736372697074696f6e20507265766965770a436f6e74656e77a6f6e652073657474696e6720696e20796f75722070726f66696c652c20636c69636b20746f207265636f6e63696c652eReproduction (while creating and removing a statement with no page reload:
- Create an item
- Create any statement & save it
- Try to remove the statement
- You'll receive the error message

Other reproductions are possible, and I guess this will work for any cases when you create and save a statement and then try to change it in any way without reloading the page.
On Items the updated baserevid is used.
This only seems to happen with Lexeme statements and not with Form statements.

Network requests:

The request to create the statement was:


```
action: wbsetclaim
format: json
claim: {"type":"statement","mainsnak":{"snaktype":"value","property":"P730","datavalue":{"type":"wikibase-entityid","value":{"id":"Q365815"}}},"id":"L11$ca0a13c9-424d-0a4e-c8c7-53a39bd870d1","rank":"normal"}
baserevid: 1002877
bot: 1
token: XXXX+\
```

With response:

```
{"pageinfo":{"lastrevid":1002878},"success":1,"claim":{"mainsnak":{"snaktype":"value","property":"P730","hash":"ad5cce903831858c590742e23a8e808227e5ae71","datavalue":{"value":{"entity-type":"item","numeric-id":365815,"id":"Q365815"},"type":"wikibase-entityid"},"datatype":"wikibase-item"},"type":"statement","id":"L11$ca0a13c9-424d-0a4e-c8c7-53a39bd870d1","rank":"normal"}}
```

And the remove request was:


```
action: wbremoveclaims
format: json
claim: L11$ca0a13c9-424d-0a4e-c8c7-53a39bd870d1
baserevid: 1002877
bot: 1
token: XXX+\
```

With response:


```
{"error":{"code":"invalid-guid","info":"Invalid claim guid.","messages":[{"name":"wikibase-api-invalid-guid","parameters":[],"html":{"*":"Invalid claim guid."}}],"*":"See https://wikidata.beta.wmflabs.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes."},"servedby":"deployment-mediawiki-09"}
```

Reloading the page and removing again succeeds with the following request:


```
action: wbremoveclaims
format: json
claim: L11$ca0a13c9-424d-0a4e-c8c7-53a39bd870d1
baserevid: 1002878
bot: 1
token: XXX+\
```

**Note: the updated baserevid**

Screencast (for statement creation and removal):

{F18134007}

Screencast (for a similar action, creating a statement then trying to add a reference):

{F18134052}

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

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

To: CommunityTechBot
Cc: Jakob_WMDE, WMDE-leszek, Pablo-WMDE, Lea_Lacroix_WMDE, Lydia_Pintscher, Addshore, Mringgaard, AndyTan, Gaboe420, Zylc, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, 1978Gage2001, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, herron, GoranSMilovanovic, Adik2382, Chicocvenancio, alanajjar, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Tbscho, LawExplorer, Lea_WMDE, Mattias_Ostmar-WMSE, Lewizho99, JJMC89, Maathavan, Jseddon, Ryuch, Mkdw, RuyP, JEumerus, Trizek-WMF, KasiaWMDE, 0x010C, srodlund, Luke081515, grin, Bsadowski1, mys_721tx, Wikidata-bugs, Snowolf, aude, Huji, Gryllida, jayvdb, Tobi_WMDE_SW, Darkdadaah, revi, scfc, He7d3r, Romaine, Mbch331, Jay8g, Glaisher, Krenair, greg, chasemp
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to