User talk:Community Tech bot

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Czar (talk | contribs) at 13:28, 3 January 2024 (→‎Remove Importance column from Popular pages: Reply). It may differ significantly from the current version.

Sortable tables for popular page reports

Feature request: smarter sorting of the last two table columns in popular page reports.

These currently sort the “assessment” and “importance” columns alphabetically. But the data has an intrinsic sort order that should be used. For assessment, that is FA, FL, A, GA, B, C, Start, Stub, and List, probably followed by all of the non-assessment classes like Current, Future, &c, in alphabetical order, and finally NA and Unknown. For importance, Top, High, Mid, Low, Bottom, Unknown, and NA.

An invisible sort key can be added to each wiki table cell using the data-sort-value="" parameter to control the sort priority, as explained in w:en:Help:Sorting#Specifying a sort key for a cell.

Correct sort order is listed in w:en:Wikipedia:Content assessment and w:en:Wikipedia:Version 1.0 Editorial Team/Release Version Criteria#Priority of topicMichael Z. 2022-05-20 21:07 z 21:07, 20 May 2022 (UTC)Reply

Database report

Tracked in Phabricator:
Task T318823

Usually this bot is very reliable but no en:Wikipedia:Database reports/Orphaned talk pages tonight. It's typically issued at 05:01 UTC nightly but tonight, nothing. Liz (talk) 05:15, 28 September 2022 (UTC)Reply

Hey Liz, just letting you know we've seen this — poking MusikAnimal as he'll be best placed to take a look ~TheresNoTime-WMF (talk) 12:21, 28 September 2022 (UTC)Reply
Ah! It's the templatelinks normalization (phab:T299417). Thanks for the ping; I'll work on fixing the bot. MusikAnimal talk 14:52, 28 September 2022 (UTC)Reply
This should now be fixed and run normally at the usual time tomorrow. When I ran the query just now I got zero results (which seems to often be the case), so there's no such pages waiting for G6 at this time. MusikAnimal talk 17:44, 28 September 2022 (UTC)Reply

Request for Popular Pages bot for WikiProject:Armenia

Hi, @MusikAnimal (WMF)@Liz,

I am a member of WikiProject:Armenia.

Could we please get a bot that updates a list of popular pages (1000) for WikiProject:Armenia ?

I was told by Anoop to make the request here: https://phabricator.wikimedia.org/T332504

It would be very very helpful!

Thank you so much for your contributions. Humanatbest (talk) 17:06, 19 March 2023 (UTC)Reply

Hi @Humanatbest, is this for the English Wikipedia? If so, you should make a protected edit request on the configuration talk page. Best, MusikAnimal (WMF) (talk) 16:58, 20 March 2023 (UTC)Reply

Database report, again

The community tech bot usually issues a Wikipedia:Database reports/Orphaned talk pages at 05:02 UTC (on the English Wikipedia) like clockwork even when it has nothing to report. But nothing tonight. It seems to be doing other work so I'm not sure if there are issues with the database but I thought I'd bring it to your attention in case anyone watches this talk page. Liz (talk) 05:30, 13 November 2023 (UTC)Reply

Popular pages: what is the "total views" number counting?

Hi @MusikAnimal (WMF): At the start of the popular pages report example here is a line for "Total views:". What is this the total views of? In the case I've given, it's not a total of the views of the 500 listed articles; that comes to about 67 million, but the "Total views" number is just over twice that. Is it counting the total views for all articles in scope of the Wikiproject? I've had a look at the code on GitHub but can't find where this is calculated. I'm using these numbers in a research paper and want to be sure what they measure. Thanks in advance for any help, MartinPoulter (talk) 15:32, 1 December 2023 (UTC)Reply

@MartinPoulter Apologies for the late reply! Indeed, the "Total views" is across all pages of that WikiProjects. Many WikiProjects simply have too many pages to list on one wiki page, which is what the cut-off is 500 (or whatever is configured at en:User:Community Tech bot/Popular pages config.json). MusikAnimal (WMF) (talk) 02:21, 19 December 2023 (UTC)Reply

Remove Importance column from Popular pages

Hi @MusikAnimal (WMF): w:Wikipedia:WikiProject Anarchism/Popular pages is showing an Importance column even though the project does not use an Importance rating. What would be the best way to have the bot remove this? I did not see documentation on Community Tech/Popular pages bot. czar 14:41, 26 December 2023 (UTC)Reply

@Czar It seems like a narrow use case so I'm think using mw:TemplateStyles would be best, as opposed to adding an option to the bot's config or something. I've implemented this, and since the bot ignores the first section, the "Importance" column should remain hidden as future updates are made. Best, MusikAnimal (WMF) (talk) 00:25, 3 January 2024 (UTC)Reply
Using TemplateStyles sounds like a good solution but I whenever I've tried to create a template style for a WikiProject page, it wouldn't let me, due to not having the rights to change the content model of the style page in the Wikipedia namespace to "Sanitized CSS", and I didn't feel comfortable with the rigmarole of getting an admin to do it. StefenTower (talk) 00:35, 3 January 2024 (UTC)Reply
Thanks! For anyone attempting to do this in the future, here are the diffs: [1][2] czar 13:28, 3 January 2024 (UTC)Reply