Page MenuHomePhabricator

Soda (Sohom Datta)
Volunteer dev

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Saturday

  • Clear sailing ahead.

User Details

User Since
Nov 4 2019, 5:26 PM (262 w, 2 d)
Availability
Available
IRC Nick
Sohom Datta
LDAP User
Sohom Datta
MediaWiki User
Sohom Datta [ Global Accounts ]

GSoC '20 Intern at Wikimedia,
Coding pursuits: GitHub
Wikimedia: mediawiki.org

Recent Activity

Thu, Nov 7

Soda added a comment to T379301: NewPagesFeed timestamp background colour has changed.

This looks like the @color-warning is being applied as a background color, when that is actually meant to be used as a text color. There is a @background-color-warning-subtle token that is meant to be used for backgrounds.

In order to ensure proper accessibility across both light and dark modes, I would suggest using the Codex InfoChip as it is intended to be used. We recently made some updates to the color and style of InfoChip, so this new version may work better for this use anyways.

Thu, Nov 7, 10:22 PM · MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), Regression, Moderator-Tools-Team, PageTriage

Sat, Nov 2

Soda added a comment to T378882: mysqldump Command Not Found on tools Bastion.

If not mysqldump, at least mariadb-dump should be included.

Sat, Nov 2, 10:41 PM · cloud-services-team, Toolforge

Sat, Oct 19

Soda updated subscribers of T377609: Failure in PageTriage extension on CheckUser test GlobalBlockingHandlerWithDatabaseRowsTest::testRetroactiveAutoblockWhenLocalUserNotAttached.

I don't think the first error has much to do with PageTriage besides the fact that it loads CU and ORES in the same environment.

Sat, Oct 19, 1:03 AM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), Trust and Safety Product Sprint (Sprint Cello (Oct 7 - 18)), Trust and Safety Product Team, ci-test-error (WMF-deployed Build Failure), ORES, Moderator-Tools-Team, CheckUser, Machine-Learning-Team, PageTriage

Wed, Oct 16

Soda added a comment to T326940: Prepare ProofreadPage extension for IP Masking.

@kostajh I think this a fragile stop-gap approach, since we are effectively breaking/disallowing this configuration from ever existing. Can you point out what exact work ProofreadPage 's pagequality extension needs (or how I can test if ProofreadPage works with temporary accounts) ? I'll be happy to test and/or make the necessary changes.

I think it would involve setting $wgAutoCreateTempUser['enabled'] = true; in your local environment, enabling the extension, and then checking the feature set of Proofread Page to validate that nothing is broken.

Hmm, tested, does not appear to have show-stopping bugs (no full-page errors),
Only one thing, I assume having the username as part of revision output like so:

<noinclude><pagequality level="3" user="~2024-1" /></noinclude>....<noinclude></noinclude>

is not a problem?

That seems fine to me. How did you test, can you share your steps?

Wed, Oct 16, 1:40 PM · Trust and Safety Product Sprint (Sprint Accordion October 28 - November 15), Patch-For-Review, Temporary accounts (Blockers to minor pilot wiki deployment), Trust and Safety Product Team, ProofreadPage
Soda added a comment to T326940: Prepare ProofreadPage extension for IP Masking.

@kostajh I think this a fragile stop-gap approach, since we are effectively breaking/disallowing this configuration from ever existing. Can you point out what exact work ProofreadPage 's pagequality extension needs (or how I can test if ProofreadPage works with temporary accounts) ? I'll be happy to test and/or make the necessary changes.

I think it would involve setting $wgAutoCreateTempUser['enabled'] = true; in your local environment, enabling the extension, and then checking the feature set of Proofread Page to validate that nothing is broken.

Wed, Oct 16, 1:22 PM · Trust and Safety Product Sprint (Sprint Accordion October 28 - November 15), Patch-For-Review, Temporary accounts (Blockers to minor pilot wiki deployment), Trust and Safety Product Team, ProofreadPage
Soda added a comment to T326940: Prepare ProofreadPage extension for IP Masking.

@kostajh I think this a fragile stop-gap approach, since we are effectively breaking/disallowing this configuration from ever existing. Can you point out what exact work ProofreadPage 's pagequality extension needs (or how I can test if ProofreadPage works with temporary accounts) ? I'll be happy to test and/or make the necessary changes.

Wed, Oct 16, 1:06 PM · Trust and Safety Product Sprint (Sprint Accordion October 28 - November 15), Patch-For-Review, Temporary accounts (Blockers to minor pilot wiki deployment), Trust and Safety Product Team, ProofreadPage

Tue, Oct 15

Soda added a comment to T326940: Prepare ProofreadPage extension for IP Masking.

@kostajh Why would the pagequality permission be unavailable to a temp account on their first edit ?

Tue, Oct 15, 2:38 PM · Trust and Safety Product Sprint (Sprint Accordion October 28 - November 15), Patch-For-Review, Temporary accounts (Blockers to minor pilot wiki deployment), Trust and Safety Product Team, ProofreadPage

Oct 5 2024

Soda closed T376530: Cannot display PDF facsimile pages on Wikisource: "Image load aborted" by Openseadragon as Invalid.

This is a symptom of the issue, not the actual issue.

Oct 5 2024, 5:06 PM · ProofreadPage

Sep 22 2024

Soda added a comment to T375330: Add a filter to hide articles created (or last edited?) within the last 60 minutes from Special:NewPagesFeed.

Is there consensus for this ? I think implementing this feature is fine, making it the default would (imo) require some semblance of a community consensus.

Sep 22 2024, 2:23 AM · Moderator-Tools-Team, PageTriage

Sep 21 2024

Soda added a comment to T375330: Add a filter to hide articles created (or last edited?) within the last 60 minutes from Special:NewPagesFeed.

Don't we already highlight articles that are 60 minutes old?

Sep 21 2024, 11:28 PM · Moderator-Tools-Team, PageTriage

Sep 19 2024

Soda closed T375114: Recent color changes have negatively impacted page proofreading on en.ws as Resolved.
Sep 19 2024, 2:23 PM · MW-1.43-notes (1.43.0-wmf.23; 2024-09-17), ProofreadPage, All-and-every-Wikisource

Sep 10 2024

Soda added a comment to T326940: Prepare ProofreadPage extension for IP Masking.

@kostajh Which parts are affected ? I remember working on this for a bit in early 2023.

Sep 10 2024, 8:56 PM · Trust and Safety Product Sprint (Sprint Accordion October 28 - November 15), Patch-For-Review, Temporary accounts (Blockers to minor pilot wiki deployment), Trust and Safety Product Team, ProofreadPage

Sep 8 2024

Soda added a comment to T374300: Being autopatrolled and moving one's own draft to mainspace does not autopatrol it.

I trawled through Logstash and wasn't able to find any errors :(

Sep 8 2024, 3:11 PM · Moderator-Tools-Team, PageTriage

Sep 7 2024

Soda added a comment to T374300: Being autopatrolled and moving one's own draft to mainspace does not autopatrol it.

I can't reproduce this at all, @Innisfree987 could you provide some more context on how you encountered this error ?

Sep 7 2024, 4:36 PM · Moderator-Tools-Team, PageTriage

Aug 28 2024

Pppery awarded T343445: Do not notify user about redirect templates a Like token.
Aug 28 2024, 2:57 AM · Moderator-Tools-Team, PageTriage

Aug 24 2024

Soda added a comment to T373243: DNS on toolforge kubernetes seems to fail regularly (20-25% of the time at least).

CropTool has been having similar issues and is unable to connect to mediawiki.org and/or commons.wikimedia.org. See Commons_talk:CropTool#Unable_to_open_any_image_in_CropTool.

Aug 24 2024, 4:07 PM · Toolforge (Toolforge iteration 14)

Aug 21 2024

Soda closed T159028: Unpatrol moved pages on English Wikipedia as Declined.

Per RFC above.

Aug 21 2024, 3:55 AM · Moderator-Tools-Team, PageTriage

Aug 9 2024

Soda added a project to T219710: Accept alternative image URLs: patch-welcome.
Aug 9 2024, 5:55 AM · patch-welcome, WMDE-TechWish-Maintenance, User-thiemowmde, WMDE-TechWish, Move-Files-To-Commons

Aug 8 2024

Soda awarded T372031: Set logos for new Malaysian wikis a Fox token.
Aug 8 2024, 9:07 AM · Wikimedia-Site-requests, Wikimania-Hackathon-2024

Aug 7 2024

Soda awarded T370474: Refresh membership of Toolforge standards committee a Haypence token.
Aug 7 2024, 7:01 AM · User-notice, User-bd808, Toolforge-standards-committee

Aug 6 2024

Soda closed T239353: New maintainer needed for Phetools OCR for Wikisource as Declined.

Boldly closing this as declined, phetools OCR hasn't been up for a while (since 5 years?) and with the Grid engine shutdown of the tool, a revival seems unlikely.

Aug 6 2024, 3:25 AM · Toolforge-standards-committee (Maintainer needed)

Aug 5 2024

Soda added a comment to T371834: Review status not resetting when converting article to redirect.

Hmm, this doesn't appear to be a regression after a bit of digging, the associated code (includes/Hooks.php:227-231) seems to have been last changed 4 years ago.

Aug 5 2024, 5:42 PM · Moderator-Tools-Team, MW-1.43-notes (1.43.0-wmf.18; 2024-08-13), PageTriage

Aug 3 2024

Soda added a comment to T217223: Backspacing multiple VE paragraphs in Gboard causes model corruption.

Oh, and @Soda, you mentioned "Based on using the debug mode". Can you talk a bit more about this? If I want to also use debug mode to see what you see, any tips for me to enter debug mode? Is this a Visual Editor / DiscussionTools debug mode or something else?

The debug mode pops up when you use ?debug=true to any URL and then open the DiscussionTools dialog (to see the model changes, you need to select <show model> and <update on change>). It seems to be specific to VisualEditor/DiscussionTools.

Screenshot_20240804-010734.png (2×1 px, 479 KB)
Aug 3 2024, 7:41 PM · Patch-For-Review, Editing-team (Tracking), VisualEditor, VisualEditor-Mobile-UsabilityImprovements, Skipped QA, VisualEditor-ContentLanguage, VisualEditor-ContentEditable
Soda added a comment to T302083: DiscussionTools source and preview getting out of sync in Android browsers (keyboard / GBoard app may be involved).

I had similar results on a Pixel device that I own. Tho based on some percussive testing this seems like just a side effect of T217223. It seems like Android (and other Google-adjacent hardware) is missing some events that the VisualEditor tracks. In my experience, the reproduction case is as such:

Aug 3 2024, 12:01 PM · Editing-team, DiscussionTools

Aug 2 2024

Soda closed T364864: Closing the Special:NewPagesFeed "Set filters" menu by clicking the top left button should also update the feed as Resolved.
Aug 2 2024, 9:18 AM · MW-1.43-notes (1.43.0-wmf.16; 2024-07-30), Moderator-Tools-Team, PageTriage

Jul 29 2024

Soda added a comment to T371312: Migrate Wikisource_EditInSequence to MediaWiki.org.

That page was documenting the progress of the project with the same name.

Jul 29 2024, 7:10 PM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), Documentation, ProofreadPage

Jul 21 2024

Soda triaged T370593: Moving a page always marks it as unreviewed as High priority.

Triaging this as high, since this is adding quite a few old pages into the queue. @jsn.sherman could y'all take a look at the linked patch :)

Jul 21 2024, 1:54 PM · MW-1.43-notes (1.43.0-wmf.14; 2024-07-16), Moderator-Tools-Team (Kanban), Regression, PageTriage
Soda added a comment to T370593: Moving a page always marks it as unreviewed.

Maybe it'd be a good idea to go back to the status quo ante behavior immediately. Then once that fire is out, we can take our time and potentially re-RFC the issue.

Jul 21 2024, 9:55 AM · MW-1.43-notes (1.43.0-wmf.14; 2024-07-16), Moderator-Tools-Team (Kanban), Regression, PageTriage
Soda added a comment to T370593: Moving a page always marks it as unreviewed.

This is indeed a regression caused by the linked patch, however, I'm a bit uneasy fixing this due to the existence of T159028 (cc @Pppery who mentioned this in the NPP Discord). Maybe we could get a consensus that implementing T159028 is no longer desirable?

Jul 21 2024, 7:30 AM · MW-1.43-notes (1.43.0-wmf.14; 2024-07-16), Moderator-Tools-Team (Kanban), Regression, PageTriage

Jul 17 2024

Soda awarded T58362: Allow creating custom Echo notifications a Fox token.
Jul 17 2024, 7:31 AM · Patch-Needs-Improvement, User-notice, MW-1.43-notes (1.43.0-wmf.8; 2024-06-04), Wikimedia-Hackathon-2024, Growth-Team-Filtering, Growth-Team, Notifications
Soda added a comment to T369465: Add support for Assamese, Punjabi, Santali, Bengali in yearinreview tool.

+1 to this, a Wikisource yearinreview will be a good idea

Jul 17 2024, 5:19 AM · Indic-TechCom, Tool-yearinreview, Indic MediaWiki Developers UG

Jul 15 2024

Soda created T370058: Expectation (readQueryTime <= 5) by ApiMain::setRequestExpectations not met (actual: {actualSeconds}) in trx #{trxId}: {query}.
Jul 15 2024, 2:58 PM · Wikimedia-Slow-DB-Query, PageTriage, Moderator-Tools-Team

Jul 11 2024

Soda added a comment to T354154: Moving an article should set the "previously deleted" flag to correspond to the new title.

The steps should approximately be:

  • Create a page
  • Delete said page
  • Create a new page with the same name
  • Check that PageTriage shows: "possible issues: previously deleted"
  • Move said page to a new title
Jul 11 2024, 5:06 AM · MW-1.43-notes (1.43.0-wmf.14; 2024-07-16), Moderator-Tools-Team (Kanban), PageTriage

Jul 10 2024

Soda added a comment to T363533: Add docstrings to ChessBrowser JS module.

@Aklapper Check on patch failed and according to console it happened due to linting errors. What could i do?

Jul 10 2024, 1:19 PM · MW-1.43-notes (1.43.0-wmf.14; 2024-07-16), good first task, ChessBrowser

Jul 9 2024

Soda added a comment to T363533: Add docstrings to ChessBrowser JS module.

@Anujagrawal Can you link to your patch ?

Jul 9 2024, 9:57 AM · MW-1.43-notes (1.43.0-wmf.14; 2024-07-16), good first task, ChessBrowser

Jul 7 2024

Soda added a comment to T369444: Index page conflict in ta.wikisource..

@Balajijagadesh Could you explain what the difference is ?

Jul 7 2024, 6:14 AM · Indic-TechCom, ProofreadPage, Indic MediaWiki Developers UG

Jul 6 2024

Soda added a comment to T369420: Indic OCR is not working in wikisource.

See https://github.com/Jayprakash-SE/indic-ocr/pull/8

Jul 6 2024, 12:04 PM · Indic-TechCom, All-and-every-Wikisource, Indic MediaWiki Developers UG
Soda added a comment to T369420: Indic OCR is not working in wikisource.

@Balajijagadesh which Indic OCR service is this ?

Jul 6 2024, 11:37 AM · Indic-TechCom, All-and-every-Wikisource, Indic MediaWiki Developers UG
Soda updated the task description for T369398: A tool/userscript that syncs a set of page to a different set of page.
Jul 6 2024, 3:03 AM · Indic-TechCom, Technical-Tool-Request, Indic MediaWiki Developers UG
Soda updated the task description for T369398: A tool/userscript that syncs a set of page to a different set of page.
Jul 6 2024, 3:02 AM · Indic-TechCom, Technical-Tool-Request, Indic MediaWiki Developers UG
Soda added a project to T369398: A tool/userscript that syncs a set of page to a different set of page: Technical-Tool-Request.
Jul 6 2024, 1:21 AM · Indic-TechCom, Technical-Tool-Request, Indic MediaWiki Developers UG
Soda created T369398: A tool/userscript that syncs a set of page to a different set of page.
Jul 6 2024, 1:21 AM · Indic-TechCom, Technical-Tool-Request, Indic MediaWiki Developers UG

Jul 5 2024

Soda added a comment to T366619: VideoCutTool error message flashes and disappears..

I don't think this can be reproduced since we moved hosts over the bookworm system (the logs are in the now shutdown system)

Jul 5 2024, 5:11 PM · Internet-Archive, VideoCutTool

Jul 4 2024

Soda added a comment to T368868: Set logos for new wikis (June 2024).

I assume these have community consensus ?

Jul 4 2024, 2:53 AM · Wikimedia-Site-requests

Jul 2 2024

Soda added a comment to T354154: Moving an article should set the "previously deleted" flag to correspond to the new title.

Hmm, that is weird, my patch does not touch afd_status and related variables in any way (in fact the patch should have no effect on the Javascript being loaded). I'll try to check this tmrw.

Jul 2 2024, 8:02 PM · MW-1.43-notes (1.43.0-wmf.14; 2024-07-16), Moderator-Tools-Team (Kanban), PageTriage
Soda added a comment to T366458: CommunityConfiguration: Release extension to all Wikipedias with GrowthExperiments.

Is this ready for use in other extensions ?

Jul 2 2024, 12:18 AM · User-notice-archive, Growth-Team (FY2024-25 Q1 Sprint 3), CommunityConfiguration-Adoption, GrowthExperiments

Jul 1 2024

Soda closed T317165: Remove option to thank Bot editors in Diff Viewo as Declined.

Thanking bots is allowed globally.

Jul 1 2024, 6:45 PM · Wikipedia-Android-App-Backlog
Soda added a comment to T363250: Post-creation work for mswikisource.

I have been ticking off done items from the checklists. The biggest delayer is Countervandalism-Network - nothing has been done there since August 2023, and about half of the post-creation tasks are pending only that. But I have no idea what to do to cause that to be done.

Jul 1 2024, 4:01 PM · Countervandalism-Network, Content-Transform-Team, Wiki-Setup

Jun 27 2024

Soda added a comment to T363250: Post-creation work for mswikisource.

Hi, our community from Malay Wikisource is curious about normally who will be in charge of the configuration for the namespaces, logos and wordmarks? Will the configuration of the namespaces, logos and wordmarks done after all the wiki import task done, or the configuration could be setup at anytime?

Nobody in particular is in charge. Y'all will need to follow the general steps outlined in Requesting_wiki_configuration_changes

Are you saying these unchecked items in the task description have to be requested separately by the wiki community? I thought they were already "in the pipeline" to be done.

Jun 27 2024, 10:34 AM · Countervandalism-Network, Content-Transform-Team, Wiki-Setup

Jun 26 2024

Soda added a comment to T366032: Grant Access to nda/logstash for Sohom Datta.

Hello @Soda,

this is still pending. Based on the tickets you linked that you work on, maybe you can ask @Samwalton9-WMF to be your sponsor? Do you normally chat with any WMF staff somewhere?

Let us know which teams and we can try to help.

Jun 26 2024, 9:34 PM · SRE, LDAP-Access-Requests
Soda closed T317166: Update API to see distinction between edits from a human and a bot as Declined.

Marking this as declined since you can now thank bots per this global RFC and subsequent implementation at 984288. :)

Jun 26 2024, 9:15 PM · Wikipedia-Android-App-Backlog, Product-Infrastructure-Team-Backlog-Deprecated, Page Content Service, Content-Transform-Team
Soda added a comment to T365071: Special:NewPagesFeed colors are not adjusted for DarkMode.

@Novem_Linguae we are aiming to deploy dark mode to all wikis on 16th July. Do you need any help working out what to do for this ticket?

Jun 26 2024, 3:46 PM · Verified, Web-Team-Backlog (FY2024-25 Q1 Sprint 1), MW-1.43-notes (1.43.0-wmf.12; 2024-07-02), FY2023-24-WE 2.1 Typography and palette customizations, Moderator-Tools-Team, PageTriage
Soda added a comment to T366991: CVE-2024-47848: User can review/unreview articles while blocked.

Hi @Soda
Thanks for your work!

I have one suggestion to move the blocked check before the role check so that it accounts for anyone who is blocked even if they are autoPatrolled or patroller. How it is coded It will never run the is blocked check for those users. Is there a specific reason for this? If that's the case then we should add a test case for people who are blocked even if they are autopatroller and patroller.

if (
        $patrolPermissionStatus->isBlocked() ||
       $autopatrolledPermissionStatus->isBlocked()
) {
       $this->dieBlocked( $patrolPermissionStatus->getBlock() );
        return false;
}

 if ( $isPatroller && $isAutopatrolled ) {
         return true;
 }

I think we should be fine since $this->getAuthority()->definitelyCan(...) also evaluates blocks and will never allow

if ( $isPatroller && $isAutopatrolled ) {
        return true;
}

to execute and return with true. The added integration test also tests for this case since it uses sysop which has both autopatrolled and patrolled rights on a default instance.

However, that being said, the code doesn't make sense from a semantic/readability POV and I've changed it.

nit: unnecessary extra space at the end of $pageId = $this->makeDraft( 'Test ' ); (after the word Test) in two places

Fixed :)

Hello Soda, thanks for your work, I took another look and it looks great!
I have one minor review comment:
The false is unreachable here after the dieBlocked function is called.

if ( $patrolPermissionStatus->isBlocked() ||$autopatrolledPermissionStatus->isBlocked() ) {
			$this->dieBlocked( $patrolPermissionStatus->getBlock() );
			return false;
}
Jun 26 2024, 2:05 PM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), Patch-For-Review, Moderator-Tools-Team (Kanban), Vuln-MissingAuthz, SecTeam-Processed, PageTriage, Security, Security-Team
Soda moved T366991: CVE-2024-47848: User can review/unreview articles while blocked from Backlog to Priority security on the PageTriage board.
Jun 26 2024, 2:02 PM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), Patch-For-Review, Moderator-Tools-Team (Kanban), Vuln-MissingAuthz, SecTeam-Processed, PageTriage, Security, Security-Team

Jun 24 2024

Soda added a comment to T363250: Post-creation work for mswikisource.

Hi, our community from Malay Wikisource is curious about normally who will be in charge of the configuration for the namespaces, logos and wordmarks? Will the configuration of the namespaces, logos and wordmarks done after all the wiki import task done, or the configuration could be setup at anytime?

Jun 24 2024, 2:46 PM · Countervandalism-Network, Content-Transform-Team, Wiki-Setup

Jun 21 2024

Soda added a comment to T12347: Should protection status indicators be handled by MediaWiki core (vs. templates)?.

Thank you for the reply and the draft @JJMC89 , much appreciated.
I will postpone including this in Tech News for now, in the hopes that someone can write/update the related documentation.

Jun 21 2024, 3:50 AM · MediaWiki-Page-protection, User-notice, MW-1.43-notes (1.43.0-wmf.11; 2024-06-25), MediaWiki-Engineering, Design, Vector (legacy skin), Desktop Improvements (Vector 2022), Community-Wishlist-Survey-2016, JavaScript, MediaWiki-User-Interface

Jun 18 2024

Soda closed T362502: I can't capture <pagelist/> error with {{#iferror}} as Resolved.
Jun 18 2024, 9:38 AM · ParserFunctions, ProofreadPage

Jun 17 2024

Soda added a comment to T364690: Transclusion doesn't work after deletion of source file.

And why, on each rendering, does the code recompile the index (mapping), although it does not change, and scan the pdf to Commons, which is not needed, since only text from the database is used? And besides the optimization problem, this leads to the discussed breakdown of the mass of pages.

As I said before the compilation does not happen on each render. It happens when a template transcluded/related to the page changes OR when the page is purged OR when the page is edited (basically ProofreadPage and the underlying parser treats the <pages /> tag like a series of templates and updates are triggered whenever mediawiki decides that the templates need updating).

Please answer my question above, and don't quibble with words. Re-compilations happens during rendering, or a couple of times less often when saves page/transclusions, there is almost no difference. Because when proofreading a book, there making a mass of edits/savings on tens and hundreds of pages of transclusions. And on each of these thousands of edits for each book, as you say, the code doing useless duplicates of re-compilations and https-requests to the Commons pdf, this leads to the discussed breakdown of the mass of pages of mass Wikisources.
Whereas in reality, the index page is usually edited only a few times, creating the desired listpages, nothing needs to be recompiled and everything will work without errors.

Please answer my question above, why?

Jun 17 2024, 2:02 PM · MW-1.43-notes (1.43.0-wmf.11; 2024-06-25), ProofreadPage
Soda added a comment to T364690: Transclusion doesn't work after deletion of source file.

This shouldn't happen because the <pages/> mechanism works with text in Page and Index NS. Whereas the mediafile is in File NS. These are independent spaces.

But they aren't independent because the Index and Page pages depend on the File (and the Page pages also depend on the Index).

No, <pages/> only uses existing text in Page NS, file is absolutely not needed for this and is not used, why. Page and Index NS only use file during index page creation and visually assist users in proofreading. So, <pages/> should continue to display that text without breaking pages when the file is deleted.

That's incorrect, ProofreadPage depends on the File namespace to build the pagelist, figure out valid Page: namespace pages and determine the transclusion order of the pages.

That's what I said. The file is needed only at the modes of creating the pagelist (index) and proofreading.

The <pages /> tag should only take the text of pages from the local Wikisource database, according to a list of a pre-generated index. Why would it access an image file in the Commons repository?.. Sounds like nonsense. If this is indeed the case, then this is a major non-optimization of the code.

The index is computed based on the image file, or through manually linked pages as a fallback. I do not see why this is a "major non-optimization" or "nonsense".

You state that with EVERY reading of a page of a work by site readers, the index is re-generated, scanning the file in the Commons repository. This is a time-consuming and resource-intensive operation.

Then it should be like this:

  • Only when saving the index page (Index NS) does the extension analyze the arguments of the <pagelist /> tag (which defines the mapping: pdf page number = book page number or literal label), creates an index (mapping, it’s short, banal "[{1: 'image'}, {2: 4}, {3: 5}, etc. according to the number of pdf pages]"), and is saves in the database. This is all.
  • When a reader opens a page of a work, the <pages/> tag works only with database 1) takes the pages mapping from the database, takes the range of page numbers according to the arguments in the tag, 2) takes the text of the pages from the database, cuts out the sections specified in the arguments, renders html: gluing the texts of the pages, inserting between them the page numbers of the book with links to the pages of the Page NS, according to the mapping (index). This is all.

Compare the resource costs of generating an index from scratch for each read, and one only when saving the index page. I think this is obvious.

The recompilation happens on page save or link update on related pages, not on every render.

And why, on each rendering, does the code recompile the index (mapping), although it does not change, and scan the pdf to Commons, which is not needed, since only text from the database is used? And besides the optimization problem, this leads to the discussed breakdown of the mass of pages.

Jun 17 2024, 2:35 AM · MW-1.43-notes (1.43.0-wmf.11; 2024-06-25), ProofreadPage

Jun 16 2024

Soda added a comment to T364690: Transclusion doesn't work after deletion of source file.

This shouldn't happen because the <pages/> mechanism works with text in Page and Index NS. Whereas the mediafile is in File NS. These are independent spaces.

But they aren't independent because the Index and Page pages depend on the File (and the Page pages also depend on the Index).

No, <pages/> only uses existing text in Page NS, file is absolutely not needed for this and is not used, why. Page and Index NS only use file during index page creation and visually assist users in proofreading. So, <pages/> should continue to display that text without breaking pages when the file is deleted.

That's incorrect, ProofreadPage depends on the File namespace to build the pagelist, figure out valid Page: namespace pages and determine the transclusion order of the pages.

That's what I said. The file is needed only at the modes of creating the pagelist (index) and proofreading.

The <pages /> tag should only take the text of pages from the local Wikisource database, according to a list of a pre-generated index. Why would it access an image file in the Commons repository?.. Sounds like nonsense. If this is indeed the case, then this is a major non-optimization of the code.

The index is computed based on the image file, or through manually linked pages as a fallback. I do not see why this is a "major non-optimization" or "nonsense".

You state that with EVERY reading of a page of a work by site readers, the index is re-generated, scanning the file in the Commons repository. This is a time-consuming and resource-intensive operation.

Then it should be like this:

  • Only when saving the index page (Index NS) does the extension analyze the arguments of the <pagelist /> tag (which defines the mapping: pdf page number = book page number or literal label), creates an index (mapping, it’s short, banal "[{1: 'image'}, {2: 4}, {3: 5}, etc. according to the number of pdf pages]"), and is saves in the database. This is all.
  • When a reader opens a page of a work, the <pages/> tag works only with database 1) takes the pages mapping from the database, takes the range of page numbers according to the arguments in the tag, 2) takes the text of the pages from the database, cuts out the sections specified in the arguments, renders html: gluing the texts of the pages, inserting between them the page numbers of the book with links to the pages of the Page NS, according to the mapping (index). This is all.

Compare the resource costs of generating an index from scratch for each read, and one only when saving the index page. I think this is obvious.

Jun 16 2024, 10:46 PM · MW-1.43-notes (1.43.0-wmf.11; 2024-06-25), ProofreadPage
Soda added a comment to T364690: Transclusion doesn't work after deletion of source file.

https://gerrit.wikimedia.org/r/1031631

It seems like that patch, when merged might solve the issue with finding <pagelist/> usage when the File media cannot be properly processed

The patch has not been accepted so far. Am I wrong, or will the broken pages and their tracking never be fixed?

Jun 16 2024, 8:04 PM · MW-1.43-notes (1.43.0-wmf.11; 2024-06-25), ProofreadPage
Soda changed the status of T336343: Creation of new user group (extendend confirmed) on bhwiki from Open to Stalled.

This request appears to be stalled, setting the status to reflect this task's current state. @SatyamMishra Given the comments above, I think having the community vote on an "autopatrolled" user group (and having an "only autopatrolled" user group) is probably a good next step.

Jun 16 2024, 7:27 PM · Community-consensus-needed, Wikimedia-Site-requests
Soda created T367663: Cannot output "Ερευνητής Αλήθειας".
Jun 16 2024, 5:32 PM · Toolforge

Jun 14 2024

Soda added a comment to T367558: Cloud VPS "videocuttool" project Buster deprecation.

I haven't had time to look at Buster migration, but will do it within 15 July :)

Jun 14 2024, 3:01 PM · VideoCutTool, Cloud-VPS (Debian Buster Deprecation)
Soda updated the task description for T367520: `toolforge jobs load jobs.yaml` crashes.
Jun 14 2024, 2:44 PM · Toolforge
Soda created T367520: `toolforge jobs load jobs.yaml` crashes.
Jun 14 2024, 2:36 PM · Toolforge
Soda created P64977 (An Untitled Masterwork).
Jun 14 2024, 2:28 PM

Jun 13 2024

Soda added a member for Tool-matchandsplit: theprotonade.
Jun 13 2024, 8:40 PM

Jun 12 2024

Soda added a comment to T366991: CVE-2024-47848: User can review/unreview articles while blocked.

Hi @Soda
Thanks for your work!

I have one suggestion to move the blocked check before the role check so that it accounts for anyone who is blocked even if they are autoPatrolled or patroller. How it is coded It will never run the is blocked check for those users. Is there a specific reason for this? If that's the case then we should add a test case for people who are blocked even if they are autopatroller and patroller.

if (
        $patrolPermissionStatus->isBlocked() ||
       $autopatrolledPermissionStatus->isBlocked()
) {
       $this->dieBlocked( $patrolPermissionStatus->getBlock() );
        return false;
}

 if ( $isPatroller && $isAutopatrolled ) {
         return true;
 }
Jun 12 2024, 10:59 PM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), Patch-For-Review, Moderator-Tools-Team (Kanban), Vuln-MissingAuthz, SecTeam-Processed, PageTriage, Security, Security-Team

Jun 8 2024

Soda updated subscribers of T366991: CVE-2024-47848: User can review/unreview articles while blocked.

Adding @jsn.sherman, @Scardenasmolinar and @Novem_Linguae could you guys take a look and provide a review :)

Jun 8 2024, 4:57 PM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), Patch-For-Review, Moderator-Tools-Team (Kanban), Vuln-MissingAuthz, SecTeam-Processed, PageTriage, Security, Security-Team
Soda added a comment to T366991: CVE-2024-47848: User can review/unreview articles while blocked.

Potential fix:

Jun 8 2024, 4:39 PM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), Patch-For-Review, Moderator-Tools-Team (Kanban), Vuln-MissingAuthz, SecTeam-Processed, PageTriage, Security, Security-Team
Soda updated the task description for T366991: CVE-2024-47848: User can review/unreview articles while blocked.
Jun 8 2024, 3:49 PM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), Patch-For-Review, Moderator-Tools-Team (Kanban), Vuln-MissingAuthz, SecTeam-Processed, PageTriage, Security, Security-Team
Soda updated the task description for T366991: CVE-2024-47848: User can review/unreview articles while blocked.
Jun 8 2024, 3:49 PM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), Patch-For-Review, Moderator-Tools-Team (Kanban), Vuln-MissingAuthz, SecTeam-Processed, PageTriage, Security, Security-Team
Soda added a project to T366991: CVE-2024-47848: User can review/unreview articles while blocked: PageTriage.
Jun 8 2024, 3:48 PM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), Patch-For-Review, Moderator-Tools-Team (Kanban), Vuln-MissingAuthz, SecTeam-Processed, PageTriage, Security, Security-Team
Soda created T366991: CVE-2024-47848: User can review/unreview articles while blocked.
Jun 8 2024, 3:48 PM · MW-1.43-notes (1.43.0-wmf.28; 2024-10-22), MW-1.44-notes (1.44.0-wmf.1; 2024-10-29), Patch-For-Review, Moderator-Tools-Team (Kanban), Vuln-MissingAuthz, SecTeam-Processed, PageTriage, Security, Security-Team

Jun 6 2024

Soda created T366798: Refactor API shape for pagetriagelist.
Jun 6 2024, 1:33 PM · Moderator-Tools-Team, PageTriage

Jun 5 2024

Soda added a comment to T366661: Page Curation toolbar tag menu in vue rewrite incorrectly detecting article as redirect.

This should already be fixed in 1.43-wmf.8 which should be deployed on Thursday.

Jun 5 2024, 2:32 AM · Moderator-Tools-Team, PageTriage

Jun 3 2024

Soda updated the task description for T366497: Special:Notifications does not allow users to see cross-wiki notifications on small screens.
Jun 3 2024, 4:17 PM · Growth-Team, Notifications
Soda created T366497: Special:Notifications does not allow users to see cross-wiki notifications on small screens.
Jun 3 2024, 4:16 PM · Growth-Team, Notifications
Soda updated subscribers of T366494: Echo icons are not clickable in Monobook.
Jun 3 2024, 4:05 PM · Growth-Team, Notifications, MonoBook
Soda created T366494: Echo icons are not clickable in Monobook.
Jun 3 2024, 4:04 PM · Growth-Team, Notifications, MonoBook

Jun 2 2024

Soda added a comment to T12347: Should protection status indicators be handled by MediaWiki core (vs. templates)?.

We need to separate "people" out into readers and editors. For readers, the protection level has minor salience for information literacy purposes, as it can indicate e.g. how wary they should be of information on the page. For editors, the "can I edit?" question is primary, but the overall protection level still has some value for understanding the overall situation with the page (and can be accessed through the notice in the edit window or through the page information page).

Jun 2 2024, 2:50 AM · MediaWiki-Page-protection, User-notice, MW-1.43-notes (1.43.0-wmf.11; 2024-06-25), MediaWiki-Engineering, Design, Vector (legacy skin), Desktop Improvements (Vector 2022), Community-Wishlist-Survey-2016, JavaScript, MediaWiki-User-Interface

Jun 1 2024

Soda added a comment to T211314: Make Wikisource DoubleWiki.js script part of the DoubleWiki extension.

I've removed everything that was Wikisource-related :)

Jun 1 2024, 4:07 PM · All-and-every-Wikisource, MediaWiki-extensions-DoubleWiki
Soda added a comment to T206190: Outdated thumbnails for djvu file on Commons cannot be purged and do not update.

@Ankry I see the code snippet is still there in plwiki's common.js, is it still required ?

Jun 1 2024, 3:53 PM · Thumbor, SRE-swift-storage

May 31 2024

Soda added a comment to T211314: Make Wikisource DoubleWiki.js script part of the DoubleWiki extension.

And yet it’s still used on a bunch of wikis

May 31 2024, 4:29 PM · All-and-every-Wikisource, MediaWiki-extensions-DoubleWiki

May 30 2024

Soda removed a member for Trusted-Contributors: Nemoralis.
May 30 2024, 1:07 AM

May 29 2024

Soda added a comment to T12347: Should protection status indicators be handled by MediaWiki core (vs. templates)?.
May 29 2024, 10:40 PM · MediaWiki-Page-protection, User-notice, MW-1.43-notes (1.43.0-wmf.11; 2024-06-25), MediaWiki-Engineering, Design, Vector (legacy skin), Desktop Improvements (Vector 2022), Community-Wishlist-Survey-2016, JavaScript, MediaWiki-User-Interface
Soda added a comment to T12347: Should protection status indicators be handled by MediaWiki core (vs. templates)?.

Thanks for sharing @Soda! I'm seeing the same icon (Lock with nothing in it) for both semi-protected and fully protected. Is that to be expected as any update to the icon to visually communicate its protection level would be at a higher/ more specific presentation level?

May 29 2024, 10:35 PM · MediaWiki-Page-protection, User-notice, MW-1.43-notes (1.43.0-wmf.11; 2024-06-25), MediaWiki-Engineering, Design, Vector (legacy skin), Desktop Improvements (Vector 2022), Community-Wishlist-Survey-2016, JavaScript, MediaWiki-User-Interface
Soda added a comment to T12347: Should protection status indicators be handled by MediaWiki core (vs. templates)?.
In T12347#9841301, @RHo wrote:

It would be extremely helpful if screenshots could be added (and/or a patchdemo created) to show what the proposed change is for design review. Curious if for example how the proposed change differs from the exisitng padlock style, position, and behaviour as the current protected enwiki pages like this one:

image.png (312×1 px, 70 KB)
May 29 2024, 9:42 PM · MediaWiki-Page-protection, User-notice, MW-1.43-notes (1.43.0-wmf.11; 2024-06-25), MediaWiki-Engineering, Design, Vector (legacy skin), Desktop Improvements (Vector 2022), Community-Wishlist-Survey-2016, JavaScript, MediaWiki-User-Interface
Soda placed T366032: Grant Access to nda/logstash for Sohom Datta up for grabs.

Sent the information. (in an email titled Re: Information for T366032 (Sohom Datta))

May 29 2024, 3:29 AM · SRE, LDAP-Access-Requests

May 28 2024

Soda removed a project from T355047: Use a combination of cat + key to index tags in the 'all' section: Patch-Needs-Improvement.
May 28 2024, 8:28 PM · Moderator-Tools-Team, PageTriage
Zabe awarded T366032: Grant Access to nda/logstash for Sohom Datta a Like token.
May 28 2024, 9:43 AM · SRE, LDAP-Access-Requests
Soda updated the task description for T366032: Grant Access to nda/logstash for Sohom Datta.
May 28 2024, 9:26 AM · SRE, LDAP-Access-Requests
Soda updated the task description for T366036: Deprecate and remove phetools OCR from pywikibot.
May 28 2024, 3:47 AM · Pywikibot
Soda created T366036: Deprecate and remove phetools OCR from pywikibot.
May 28 2024, 3:45 AM · Pywikibot
Soda updated the task description for T366032: Grant Access to nda/logstash for Sohom Datta.
May 28 2024, 12:53 AM · SRE, LDAP-Access-Requests

May 27 2024

Soda created T366032: Grant Access to nda/logstash for Sohom Datta.
May 27 2024, 9:52 PM · SRE, LDAP-Access-Requests
Soda claimed T324810: Add "suppress" option to ApiDelete.
May 27 2024, 9:17 PM · MW-Interfaces-Team, MediaWiki-Engineering, Patch-For-Review, MediaWiki-Action-API, MediaWiki-Page-deletion
Soda added a project to T324810: Add "suppress" option to ApiDelete: MediaWiki-Engineering.
May 27 2024, 9:16 PM · MW-Interfaces-Team, MediaWiki-Engineering, Patch-For-Review, MediaWiki-Action-API, MediaWiki-Page-deletion

May 26 2024

Soda changed the subtype of T365940: Allow to change user interface language of https://ocr.wmcloud.org/ from "Feature Request" to "Bug Report".
May 26 2024, 7:33 PM · Community-Tech, Wikimedia OCR