Umherirrender added a comment.
To be usable as generator you have to extends `ApiQueryGeneratorBase`, that is done. You have to implment `executeGenerator`, that is done. > Conflicting keys (31880, 23674715) when attempting to merge element pages 31880 is the id of the page you have to list 23674715 seems to be the pageid of the next page. 31880 has currently 4 aspects, so setting the limit to 4 gives a continue with 23674715 - https://en.wikipedia.org/w/api.php?action=query&format=json&list=wblistentityusage&wbeuentities=Q1&wbeulimit=4 It seems you are mixing the current and the next pageids, when using limit = 4 it gives the wrong title/pageid in the result. (Key for query.pages is 31880, but the title/pageid shows 23674715) { "batchcomplete": "", "continue": { "wbeucontinue": "23674715|Q1|L.en", "continue": "-||" }, "query": { "pages": { "31880": { "ns": 2, "title": "User:GAllegre", "pageid": 23674715, "wblistentityusage": { "Q1": { "aspects": [ "C", "O", "S", "T" ] } } } } } } The last group is using the wrong $row: if ( $entry ) { $this->formatPageData( $row, $currentPageId, $entry, $result ); } Have not tested the patch set TASK DETAIL https://phabricator.wikimedia.org/T254334 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Umherirrender Cc: Umherirrender, Dipsacus_fullonum, Lucas_Werkmeister_WMDE, Aklapper, Alter-paule, Beast1978, Un1tY, Hook696, darthmon_wmde, Kent7301, joker88john, CucyNoiD, Nandana, Gaboe420, lucamauri, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Jdforrester-WMF, Mbch331, Rxy, Jay8g, Krenair
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
