Hi, when using the Editcount Extensions if the transcluded count Special:EditCount/USERNAME
is compared to actual page EditCount/USERNAME, then they don't line up. Do you know why this is happening? Any help on fixing it?
Topic on Project:Support desk/Flow
Maybe Extension:Editcount updates the transcluded count after jobs are completed? Which one is higher, the Special page one or the transcluded one?
Although I do not know the answer, I have an idea on that one:
The extension is not really counting the edits, it only is increasing a number by one. If this number is incorrect, then the edit count as displayed by the extension is wrong. This can e.g. happen, if the extension has been deactivated for some time.
The transclusion however might just get the counted number of rows from the database so that it gets the right number, even though the number, which the Editcount extension has saved, is wrong.
MediaWiki stores it's own edit count on the user table. This is different from how the extension calculates the numbers, which is simply counting the number of rows in the revision table. If a page is deleted, it doesn't update the MediaWiki editcount of the affected users, but those deleted revisions won't be counted for those users, meaning the edit count per namespace will be decreased, while the internal global edit count would still count them. There's also differencies when one renames a page, which creates 2 revisions (one is the redirect page), increasing the edit count by 2 on the extension, but MediaWiki only counts it as 1.
Here is a link to the wiki we are having the issue on + the discussion about it. https://en.scratch-wiki.info/wiki/Scratch_Wiki_talk:Community_Portal/Not_Done#My_edit_count_seems_to_be_out_of_sync
This is the issue reported on phabricator: phab:T12452
You can see the transcluded editcount here, which is what MediaWiki has stored internally: https://en.scratch-wiki.info/wiki/Special:ApiSandbox#action=query&format=json&list=users&usprop=editcount&ususers=Kenny2scratch