Page MenuHomePhabricator

Contributions sometimes appear out of order
Closed, ResolvedPublicBUG REPORT

Description

See https://wikidata.beta.wmflabs.org/w/index.php?title=Special:Contributions/172.16.3.130&offset=20200317180336&limit=20&target=172.16.3.130

The creation of (Q552564) is listed as happening before the creation of (Q552563), among other misordered edits

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
DannyS712 changed the subtype of this task from "Task" to "Bug Report".
DannyS712 moved this task from Unsorted to Reports on the User-DannyS712 board.

They are ordered by the timestamp, and MediaWiki timestamps only have a precision of one second.

I looked again and that is not entirely true. The contributions page is also supposed to use the revision ID when the timestamp is the same. Clearly this is not working here.

The culprit is the code that is supposed to merge in contributions to things that are not normal pages (e.g. Flow). It re-sorts all results and only uses timestamps.

Change 581065 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/core@master] ContribsPager: Fix merging queries in descending order

https://gerrit.wikimedia.org/r/581065

Change 581065 merged by jenkins-bot:
[mediawiki/core@master] ContribsPager: Fix merging queries in descending order

https://gerrit.wikimedia.org/r/581065