Page MenuHomePhabricator

Some languages appear in the wrong pagecount section on the Wikipedia.org portal
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
Both languages appear in the "100+ articles" section.

What should have happened instead?:
Both languages are supposed to appear in the "1 000+ articles" section.

I suspect that the list of pagecounts hasn't been updated in a long time. I think that it's the one on https://pagecounts.toolforge.org/pagecounts.json , but I might be wrong. It should be updated at least once a month.

Event Timeline

Reedy renamed this task from Some languages appear in the wrong pagecount section on the Wikpedia.org portal to Some languages appear in the wrong pagecount section on the Wikipedia.org portal.Jan 29 2022, 9:49 PM

Hello @Amire80
I would like to work on this task. Could you please guide me to the target file where the changes are supposed to be made.

Sorry, I don't know. Perhaps @Jdrewniak knows where to start.

@abhigya_pandey It is unlikely that the reporter of a problem knows some "target file" (?). Please check https://phabricator.wikimedia.org/tag/wikimedia-portals/ which is linked under "Tags" here in the sidebar.

Thanks Amire80 and Aklapper for suggestions. I will make sure to find file by myself from Tags before asking in future.

@Amire80 yeah this is pretty bad. The fact that I'm just getting around to replying to this ticket two months later speaks to the maintenance status of this tool and the portals repo in general.

Anyhow, you're right, the page https://pagecounts.toolforge.org/pagecounts.json is actually what powers the article counts that are displayed on wikipedia.org.

That page is powered by a script that @MaxSem wrote in 2016 (and probably regrets to this day :P )
https://github.com/MaxSem/pagecounts/blob/master/pagecounts.php that basically queries the labs replica db for article counts for each project (and should be updated via a cron-job but wasn't).

@abhigya_pandey if you're interested in contributing to this repo, then I have some ideas for updating this part of the codebase in Node using publicly available APIs instead.

I restarted the script for now though.

Yes sure @Jdrewniak, Please share it with me as I was already trying to understand the code.

Kashmiri language is shown now in 1000+ sections. Does that mean it is now updated ?

Jdrewniak claimed this task.