Multichill added a comment.

To reproduce just add a bunch of claims in a row. I made a simple script to 
reproduce:

  {'labels': {'en': {'value': u'Tester de test for T104522', 'language': 
u'en'}}}
  Creating new itemu
  The current revision id is 25369
  The current revision id is 25369 at the start of 0
  Adding P508->Q207 to [[wikidata:test:Q2122]]
  {u'bot': 1, 'baserevid': 25369, u'value': '{"entity-type": "item", 
"numeric-id": 207}', 'entity': u'Q2122', u'token': 
u'6cc9153385c47a3f18c70bda645563215696c3f8+\\', 'snaktype': u'value', 'action': 
u'wbcreateclaim', 'property': u'P508'}
  {u'claim': {u'type': u'statement', u'mainsnak': {u'datatype': 
u'wikibase-item',u'datavalue': {u'type': u'wikibase-entityid', u'value': 
{u'entity-type': u'item', u'numeric-id': 207}}, u'property': u'P508', 
u'snaktype': u'value'}, u'id': u'Q2122$6D2C0E2A-9B25-40C4-A71E-2A937EB657A1', 
u'rank': u'normal'}, u'pageinfo': {u'lastrevid': 25370}, u'success': 1}
  The current revision id is 25370 after adding a claim
  The current revision id is 25370 at the start of 1

All is fine. We added a claim and the current revision id got increased. Let's 
do another:

  Adding P508->Q207 to [[wikidata:test:Q2122]]
  {u'bot': 1, 'baserevid': 25369, u'value': '{"entity-type": "item", 
"numeric-id": 207}', 'entity': u'Q2122', u'token': 
u'6cc9153385c47a3f18c70bda645563215696c3f8+\\', 'snaktype': u'value', 'action': 
u'wbcreateclaim', 'property': u'P508'}

Huh? 25369? That's the old revision id! Where did you get that from?

  WARNING: API warning (wbcreateclaim) of unknown format: {u'messages': 
[{u'html': {u'*': u'Your edit was patched into the latest version.'}, u'name': 
u'wikibase-conflict-patched', u'parameters': []}]}

Somewhere in 
https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/site.py;a8539a78ff659e71c4fb011b6797f20e6c369edc$6954
 this seems to be going wrong (or 
https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/page.py;a8539a78ff659e71c4fb011b6797f20e6c369edc$3900
 ?) but where? I don't see it.


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

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

To: Multichill
Cc: Multichill, Ricordisamoa, Aklapper, jayvdb, pywikibot-bugs-list, 
Wikidata-bugs, aude, Mbch331



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to