Page MenuHomePhabricator

API: UserContribs duplicating new page entries
Open, Needs TriagePublicBUG REPORT

Description

Steps to Reproduce:
https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&list=usercontribs&uclimit=max&ucuser=Nihar%20POPS&ucnamespace=0&ucprop=ids%7Ctitle%7Cflags%7Cpatrolled%7Ctags&ucshow=new

Actual Results:
See API generation
Some pages iterated 12 times, same ids.

Expected Results:
Only list the creation revision once

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 24 2019, 1:30 AM
Anomie moved this task from Unsorted to Needs Code on the MediaWiki-API board.Apr 25 2019, 7:21 PM

What's going on here is that, when it's joining with the recentchanges table to return the patrol flags, it's picking up not only the RC_NEW entry for the page creation but also the RC_CATEGORIZE entries that record the fact that the page creation also added it to several categories. We should filter those out when making the query.