Page MenuHomePhabricator

cscott (C. Scott Ananian)
Parser whisperer

Projects (17)

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Thursday

  • Clear sailing ahead.

User Details

User Since
Oct 21 2014, 6:47 PM (500 w, 3 h)
Availability
Available
IRC Nick
cscott
LDAP User
Unknown
MediaWiki User
Cscott [ Global Accounts ]

Editor since 2005; WMF developer since 2013. I work on Parsoid and OCG, and dabble with VE, real-time collaboration, and OOjs.

On github: https://github.com/cscott

See https://en.wikipedia.org/wiki/User:cscott for more.

Recent Activity

Today

cscott added a comment to T275319: Raise limit of $wgMaxArticleSize for Hebrew Wikisource.

@Fuzzy you may be interested in T254522: Set appropriate wikitext limits for Parsoid to ensure it doesn't OOM, which will eventually replace the limits in the legacy parser. Appropriate metrics are not easy to find, because ideally they must be computed *before* spending the compute resources that a full computation of the desired result would achieve. That is why there are separate limits on article size and expanded size (and cpu time, and expansion depth, and expensive function count, and visited postprocessor nodes, etc). At every point we try to avoid spending the resources to do the actual expansion if it is likely based on "what we already know" that the other limits would fail. If we do the entire expansion and rendering to HTML and *then* check to see if it turned out to be too big we're already too late to reclaim the resources spent.

Tue, May 21, 9:08 PM · Language-Technical Support, serviceops, SRE, Wikimedia-Site-requests
cscott renamed T364316: Run visualdiff testing on arwiki/cswiki/huwiki Talk namespace from Run visualdiff testing on arwiki/cswiki/huwiki to Run visualdiff testing on arwiki/cswiki/huwiki Talk namespace.
Tue, May 21, 2:33 PM · Parsoid, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Hungarian-Sites, Content-Transform-Team-WIP, Editing-team (Tracking), Parsing-Active-Work, DiscussionTools
cscott created T365483: Links from mobile go back to desktop host when using Parsoid Read Views.
Tue, May 21, 2:27 PM · Content-Transform-Team, Epic, Parsoid (Tracking), MobileFrontend

Yesterday

cscott added a comment to T275319: Raise limit of $wgMaxArticleSize for Hebrew Wikisource.

@stjn you are correct that this particular issue is a mix of social and technical factors as I pointed out in T275319#6884320. The technical factors absolutely scale with bytes; the social factors scale with <a more complicated metric related to information entropy>.

Mon, May 20, 10:01 PM · Language-Technical Support, serviceops, SRE, Wikimedia-Site-requests
cscott added a comment to T275319: Raise limit of $wgMaxArticleSize for Hebrew Wikisource.

This discussion risks going in circles. As I wrote previously in T275319#6884320:

zhwiki for example should have 4x the character limit if this is to be the new rule. Unlike what is claimed above, many of the performance metrics *do* scale with bytes rather than characters -- most wikitext processing is at some point regexp-based, and that works on bytes (unicode characters are desugared to the appropriate byte sequences), and of course network bandwidth, database storage size, database column limits, etc, all scale with bytes not characters. We should be careful before bumping the limit that we're not going to run into problems with database schema, etc.

Mon, May 20, 9:35 PM · Language-Technical Support, serviceops, SRE, Wikimedia-Site-requests
cscott added a comment to T275319: Raise limit of $wgMaxArticleSize for Hebrew Wikisource.

In short: it's not obvious what the new limit "should be", and in fact it's fairly certain that whatever the new limit is, there will still be source texts which will exceed it.

Mon, May 20, 4:52 PM · Language-Technical Support, serviceops, SRE, Wikimedia-Site-requests
cscott created T365371: ParserMigration: Add "report visual bug" link.
Mon, May 20, 4:06 PM · Parsoid-Read-Views, Parsoid, Content-Transform-Team-WIP, MediaWiki-extensions-ParserMigration
cscott created T365368: Increase disk space for visual diff testing.
Mon, May 20, 3:43 PM · Content-Transform-Team

Thu, May 16

cscott added a comment to T364685: CSS sanitizer refuses TemplateStyles variable assignment to border-color but does permit background-color.

You can work around by setting border-top-color, border-bottom-color, etc independently.

Thu, May 16, 10:40 PM · TemplateStyles, css-sanitizer
cscott added a comment to T365065: Certain HTML entities do not terminate a free external link when they should.

See T84937#957838 for justification when support for nbsp was added. The new entities added here aren't likely to be generated by Visual Editor so it's not entirely clear why we need to support them; wikitext is not a superset of HTML5.

Thu, May 16, 3:41 PM · Patch-For-Review, MediaWiki-Parser
cscott claimed T363378: Parsoid should mark itself up in a way that CSS/JavaScript can target it.

I think this is complete; let me know if additional work needs to be done.

Thu, May 16, 2:26 PM · Content-Transform-Team-WIP, MW-1.43-notes (1.43.0-wmf.3; 2024-04-30), Web-Team-Backlog (Needs Prioritization (Tech))
cscott added a comment to T363677: Editing content of <syntaxhighlight inline> changes it to <syntaxhighlight inline="">.

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/TemplateData/+/819740 T54607 T55413 are related -- right now we have no way to associate desired styling information with extension tags.

Thu, May 16, 2:24 PM · Parsoid, VisualEditor, SyntaxHighlight

Wed, May 15

cscott added a comment to T365036: JSON serialization failures on media files.

The 1031918 patch was backported and worked, but the information gleaned was a little disappointing: https://logstash.wikimedia.org/app/discover#/doc/logstash-*/logstash-mediawiki-1-7.0.0-1-2024.05.15?id=qKHwfY8BS8vmb5K1Na1f

Wed, May 15, 9:06 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Patch-For-Review, JsonCodec, MediaWiki-Parser, Parsoid
cscott created T365060: Serialization test cases are broken after change to ParserOutput namespace.
Wed, May 15, 7:51 PM · MW-1.42-notes, MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), MediaWiki-Parser
cscott added a comment to T365036: JSON serialization failures on media files.

Questions are: /who/ is adding non-serializable data to the ParserOutput, and /when/. Our suspicion is that somehow ParserOutput::getText() is being called on the ParserOutput *before* it is written to the cache, so that modifications made in the OutputTransform pipeline are being retroactively applied to the cached content.

Wed, May 15, 3:11 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Patch-For-Review, JsonCodec, MediaWiki-Parser, Parsoid
cscott added a comment to T363378: Parsoid should mark itself up in a way that CSS/JavaScript can target it.

We are now tagging with both the parsoid library version (eg v0.20.0-a4) and the "HTML version", eg https://www.mediawiki.org/wiki/Specs/HTML/2.8.0 in the data-mw-parsoid-version and data-mw-html-version attributes, respectively, set on the wrapper div.

Wed, May 15, 3:08 PM · Content-Transform-Team-WIP, MW-1.43-notes (1.43.0-wmf.3; 2024-04-30), Web-Team-Backlog (Needs Prioritization (Tech))
cscott added a comment to T363378: Parsoid should mark itself up in a way that CSS/JavaScript can target it.

See also https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1027012 which I forgot to tag with this task #.

Wed, May 15, 3:06 PM · Content-Transform-Team-WIP, MW-1.43-notes (1.43.0-wmf.3; 2024-04-30), Web-Team-Backlog (Needs Prioritization (Tech))
cscott created T365036: JSON serialization failures on media files.
Wed, May 15, 3:03 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Patch-For-Review, JsonCodec, MediaWiki-Parser, Parsoid
cscott committed rEEPSfeea2f779815: Use OutputPage::setPageTitleMsg() instead of ::setPageTitle().
Use OutputPage::setPageTitleMsg() instead of ::setPageTitle()
Wed, May 15, 1:59 PM
cscott committed rECOM1ef76067ac66: Use OutputPage::setPageTitleMsg() instead of ::setPageTitle().
Use OutputPage::setPageTitleMsg() instead of ::setPageTitle()
Wed, May 15, 6:50 AM
cscott added a comment to T282499: Consider whether Parsoid will support forced linear parsing..
  1. Current Parsoid calls back to the legacy Parser to handle various types of content. That can cause there to be multiple $parser objects used on a given page. Most *present* issues with "linear parsing" are due to the fact that, even though the parse is technically in order, data being attached to the Parser object is lost because there are multiple parsers in play.

I saw that the DataAccess class would use the same legacy parser object for all calls to extension tag when the PageConfig remains unchanged, basically it means within the same page? Do you mean this is going to be changed soon, or did I miss some concept about the PageConfig etc.?

Wed, May 15, 2:26 AM · MediaWiki-extensions-ExternalData, Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid), MediaWiki-extensions-Variables, Parsoid, MediaWiki-Parser
cscott renamed T364933: Reinstate three tests disabled by 2024-02-01 parser tests sync from Reinstante three tests disabled by 2024-02-01 parser tests sync to Reinstate three tests disabled by 2024-02-01 parser tests sync.
Wed, May 15, 2:14 AM · Parsoid

Tue, May 14

cscott created T364933: Reinstate three tests disabled by 2024-02-01 parser tests sync.
Tue, May 14, 9:17 PM · Parsoid
cscott updated the task description for T364024: CTT tasks week of 2024-05-03.
Tue, May 14, 6:34 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), Essential-Work, Content-Transform-Team-WIP

Mon, May 13

cscott removed a project from T363720: Provide ParserMigration option to exclude mobile frontend : ContentTranslation.
Mon, May 13, 9:41 PM · Parsoid, Parsoid-Read-Views, Content-Transform-Team-WIP, MediaWiki-extensions-ParserMigration
cscott added a comment to T13555: .mw-editsection links should not be part of the <h#> element.

Just to make sure web team schedule sufficient time for this work, when are we expecting to merge https://gerrit.wikimedia.org/r/c/mediawiki/core/+/842859 ?

Mon, May 13, 9:33 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), MW-1.42-notes (1.42.0-wmf.23; 2024-03-19), User-notice, Patch-For-Review, Editing-team (Kanban Board), Web-Team-Backlog (Needs Prioritization (Tech)), Technical-Debt, Epic, Accessibility, MediaWiki-Parser
cscott created T364752: Run visualdiff testing on DiscussionTools + MobileFrontEnd combined .
Mon, May 13, 3:33 PM · Parsoid, Parsoid-Read-Views, Content-Transform-Team-WIP
cscott created T364751: Run visualdiff testing on mobile front end.
Mon, May 13, 3:31 PM · Parsoid, Parsoid-Read-Views, Content-Transform-Team-WIP
cscott moved T363720: Provide ParserMigration option to exclude mobile frontend from Backlog to Current Deploy Target on the Content-Transform-Team-WIP board.
Mon, May 13, 3:09 PM · Parsoid, Parsoid-Read-Views, Content-Transform-Team-WIP, MediaWiki-extensions-ParserMigration
cscott claimed T53587: Parsoid needs to run findVariantLink or some equivalent thing.
Mon, May 13, 3:09 PM · Content-Transform-Team-WIP, MediaWiki-Language-converter, Patch-For-Review, Parsoid-Read-Views (Phase 4 - Parsoid generates metadata needed by core), Parsoid-Rendering, Parsoid, Chinese-Sites
cscott claimed T258856: Links to variants titles in Parsoid are still marked as red links.
Mon, May 13, 3:08 PM · Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support), Parsoid-Rendering, Parsoid
cscott moved T53587: Parsoid needs to run findVariantLink or some equivalent thing from To Deploy to Code Review on the Content-Transform-Team-WIP board.
Mon, May 13, 3:08 PM · Content-Transform-Team-WIP, MediaWiki-Language-converter, Patch-For-Review, Parsoid-Read-Views (Phase 4 - Parsoid generates metadata needed by core), Parsoid-Rendering, Parsoid, Chinese-Sites
cscott moved T258856: Links to variants titles in Parsoid are still marked as red links from To Deploy to Code Review on the Content-Transform-Team-WIP board.
Mon, May 13, 3:08 PM · Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support), Parsoid-Rendering, Parsoid

Fri, May 10

cscott added a comment to T364597: Missing content on discussion tools on Parsoid.

Seems like extension data being dropped during clone is the root cause?

Fri, May 10, 12:03 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), Content-Transform-Team-WIP, Parsoid, Parsoid-Read-Views

Mon, May 6

cscott updated the task description for T364024: CTT tasks week of 2024-05-03.
Mon, May 6, 4:57 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), Essential-Work, Content-Transform-Team-WIP
cscott updated the task description for T364024: CTT tasks week of 2024-05-03.
Mon, May 6, 4:46 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), Essential-Work, Content-Transform-Team-WIP
cscott added a comment to T364024: CTT tasks week of 2024-05-03.
$ php tools/regression-testing.php -u cscott --url https://parsoid-rt-tests.wikimedia.org/regressions/between/d16b7c75/b1d94b70
ssh cscott@testreduce1002.eqiad.wmnet sudo rm -f /tmp/titles
scp /tmp/titles cscott@testreduce1002.eqiad.wmnet:/tmp/titles
titles                                                 100%  507    13.3KB/s   00:00    
----- Checking out d16b7c75 on scandium -----
ssh cscott@scandium.eqiad.wmnet cd /srv/parsoid-testing && git fetch && git checkout d16b7c75 && sudo systemctl restart php7.4-fpm.service
HEAD is now at d16b7c757 Match core styles for gallery line media errors
----- Checking out d16b7c75 on testreduce1002 -----
ssh cscott@testreduce1002.eqiad.wmnet cd /srv/parsoid-testing && git fetch && git checkout d16b7c75
HEAD is now at d16b7c757 Match core styles for gallery line media errors
----- Running tests -----
ssh cscott@testreduce1002.eqiad.wmnet sudo rm -f /tmp/results.d16b7c75.json && cd /srv/parsoid-testing && node tools/runRtTests.js --proxyURL http://scandium.eqiad.wmnet:80 --parsoidURL http://DOMAIN/w/rest.php -f /tmp/titles -o /tmp/results.d16b7c75.json
REDIRECT: mznwiki:کورو -> mznwiki:کوروف
REDIRECT: jawiki:Protest_Songs -> jawiki:プロテスト・ソングス
REDIRECT: enwiki:AK74M_with_universal_upgrade_kit -> enwiki:AK-74#AK-74M_UUK_(Universal_Upgrade_Kit)
REDIRECT: enwiki:Chadžibėjus -> enwiki:Odesa
scp cscott@testreduce1002.eqiad.wmnet:/tmp/results.d16b7c75.json /tmp/
results.d16b7c75.json                                  100% 2529    35.3KB/s   00:00    
----- Checking out b1d94b70 on scandium -----
ssh cscott@scandium.eqiad.wmnet cd /srv/parsoid-testing && git fetch && git checkout b1d94b70 && sudo systemctl restart php7.4-fpm.service
Previous HEAD position was d16b7c757 Match core styles for gallery line media errors
HEAD is now at b1d94b70f Move mock option to the top in CLI
----- Checking out b1d94b70 on testreduce1002 -----
ssh cscott@testreduce1002.eqiad.wmnet cd /srv/parsoid-testing && git fetch && git checkout b1d94b70
Previous HEAD position was d16b7c757 Match core styles for gallery line media errors
HEAD is now at b1d94b70f Move mock option to the top in CLI
----- Running tests -----
ssh cscott@testreduce1002.eqiad.wmnet sudo rm -f /tmp/results.b1d94b70.json && cd /srv/parsoid-testing && node tools/runRtTests.js --proxyURL http://scandium.eqiad.wmnet:80 --parsoidURL http://DOMAIN/w/rest.php -f /tmp/titles -o /tmp/results.b1d94b70.json
REDIRECT: mznwiki:کورو -> mznwiki:کوروف
REDIRECT: jawiki:Protest_Songs -> jawiki:プロテスト・ソングス
REDIRECT: enwiki:AK74M_with_universal_upgrade_kit -> enwiki:AK-74#AK-74M_UUK_(Universal_Upgrade_Kit)
REDIRECT: enwiki:Chadžibėjus -> enwiki:Odesa
scp cscott@testreduce1002.eqiad.wmnet:/tmp/results.b1d94b70.json /tmp/
results.b1d94b70.json                                  100% 2529    38.6KB/s   00:00    
----- Comparing results -----
jawiki:仮面ライダーギーツ
No changes!
metawiki:Movement_Charter/Ambassadors_Program/Conversations/en
No changes!
pnbwiki:پہلا_صفہ
No changes!
zhwiki:阮明哲
No changes!
mznwiki:کورو
No changes!
mznwiki:بحره_(شهر)
No changes!
mznwiki:کوت
No changes!
jawiki:坂善商事
No changes!
jawiki:Protest_Songs
No changes!
ptwiki:Sociedad_Deportiva_Ponferradina
No changes!
enwiki:Talk:Kristi Noem
No changes!
jawiki:ブローニュ=シュル=メール
No changes!
enwiki:AK74M_with_universal_upgrade_kit
No changes!
enwiki:Chadžibėjus
No changes!
metawiki:Wiki Loves Africa 2024/Participating communities
No changes!
eswiki:Thunnus
No changes!
ruwiki:TC-PAM
No changes!
viwiki:Mẹ
No changes!
---------------------
*** No pages need investigation ***

\o/

Mon, May 6, 4:46 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), Essential-Work, Content-Transform-Team-WIP
cscott added a comment to T351113: Figure out how Parsoid will work with MCR slots to support both reading and editing clients.

The logic for combining slot html in ContentRenderer (I think) is probably pretty broken from an editing standpoint. Probably the composition should be moved to OutputTransform and the separate slot content should be stored separately in ParserOutput, which is more or less what @subbu and @daniel is proposing -- except @subbu is saying one ParserOutput contains many slots and @daniel is saying ParserCache should be "per slot" and the combining ParserOutputs into a final page should be post-cache. I think!

Mon, May 6, 4:23 PM · MW-1.42-notes (1.42.0-wmf.4; 2023-11-07), Multi-Content-Revisions, Parsoid-Read-Views, Parsoid
cscott added a comment to T17941: create magic word __NOCATEGORY__.

I'd prefer not to include any additional __MAGIC_WORDS__ and instead use case-sensitive {{#parserfunction}} syntax for new additions, as discussed in T204370: Behavior switch/magic word uniformity. The current proposals for "no categories" "but wait some categories" seem quite confusing. One of the benefits of parser function syntax is that we can add arguments! So it seems like {{#cat:Foo|always}} would be (eg) an alternative way to ensure that the page is /always/ added to Category:Foo, instead of making it a property of the category itself. Alternatively, an extensible {{#categoryproperties|always|hidden|....}} on the category page would be more sustainable than a plethora of __HIDDENCAT__ ALWAYSCAT` etc magic words.

Mon, May 6, 3:55 PM · Patch-Needs-Improvement, MediaWiki-Categories
cscott moved T364316: Run visualdiff testing on arwiki/cswiki/huwiki Talk namespace from Backlog to Current Deploy Target on the Content-Transform-Team-WIP board.
Mon, May 6, 3:19 PM · Parsoid, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Hungarian-Sites, Content-Transform-Team-WIP, Editing-team (Tracking), Parsing-Active-Work, DiscussionTools
cscott created T364316: Run visualdiff testing on arwiki/cswiki/huwiki Talk namespace.
Mon, May 6, 3:18 PM · Parsoid, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Hungarian-Sites, Content-Transform-Team-WIP, Editing-team (Tracking), Parsing-Active-Work, DiscussionTools
cscott renamed T348255: Parser cache infrastructure for OutputTransform from Create ParserOption::getFlavor() and FlavorDispatcher framework in ParserOutputAccess to Parser cache infrastructure for OutputTransform.
Mon, May 6, 3:16 PM · Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support)
cscott added a comment to T305210: Parsoid's timed media output is missing data- attributes.

What remains to be done on this task? Is this a still a blocker for rolling out parsoid read views on some wikis?

Mon, May 6, 3:10 PM · MW-1.43-notes (1.43.0-wmf.2; 2024-04-23), Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Parsoid
cscott moved T363599: Edge case parsing difference of dt/dd lists from Code Review to To Deploy on the Content-Transform-Team-WIP board.
Mon, May 6, 3:06 PM · Content-Transform-Team-WIP, Parsoid-Read-Views, Parsoid

Fri, May 3

cscott committed rEVSD9e2a110570da: Use Parser::getOptions() instead of Parser::$mOptions.
Use Parser::getOptions() instead of Parser::$mOptions
Fri, May 3, 11:30 PM
cscott added a comment to T3605: [[Section::...]] variables.

One major use case would be the {{Empty section}} and {{Expand section}} templates at the English Wikipedia. The templates would be able to use this magic word in edit links by adding &section={{SECTION}] to the links. This would make it easier for editors to help expand these sections and not have to navigate to them by scrolling through the editor for the entire page. See this section on the Village Post.

Fri, May 3, 7:39 PM · Patch-Needs-Improvement, Parsoid, MediaWiki-extension-requests
cscott updated the task description for T364024: CTT tasks week of 2024-05-03.
Fri, May 3, 6:48 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), Essential-Work, Content-Transform-Team-WIP

Thu, May 2

cscott committed rMLJC888f9889a3ce: Update php-parallel-lint to 1.4.0; update HISTORY.md.
Update php-parallel-lint to 1.4.0; update HISTORY.md
Thu, May 2, 3:27 PM
cscott added a comment to T363484: Update ParserMigration notice.

One thing that I might be wrong but it feels like this is that if the notice comes and goes without me clicking on the close button, it shows up again but if I hit the x button, it stays gone.

Thu, May 2, 3:16 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Parsoid-Read-Views, Content-Transform-Team-WIP, Parsoid, MediaWiki-extensions-ParserMigration
cscott added a comment to T363484: Update ParserMigration notice.

Have you considered using a banner either using siteNotice or at the footer? Since there is a rendered by Parsoid indicator I am curious at the goal of also having the notification...?

Thu, May 2, 3:13 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Parsoid-Read-Views, Content-Transform-Team-WIP, Parsoid, MediaWiki-extensions-ParserMigration
cscott added a comment to T363484: Update ParserMigration notice.

Some design review notes at https://docs.google.com/document/d/1xWztBEE2E414IEEAJAFqn_xKX2szMIS0jNqKhkVIWz4/edit (WMF only, sorry).

Thu, May 2, 3:11 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Parsoid-Read-Views, Content-Transform-Team-WIP, Parsoid, MediaWiki-extensions-ParserMigration
cscott added a comment to T357324: InfoChip: Add CSS-only version.

For future reference, the PHP side code for this looks like:
https://github.com/wikimedia/mediawiki-extensions-ParserMigration/blob/e2bf2f59f00dac44b053de5aabdae0f38dfad435/src/Hooks.php#L132
and
https://github.com/wikimedia/mediawiki-extensions-ParserMigration/blob/e2bf2f59f00dac44b053de5aabdae0f38dfad435/extension.json#L78

Thu, May 2, 3:10 PM · MW-1.42-notes (1.42.0-wmf.20; 2024-02-27), Design-System-Team (DST-Sprint-17 (2024-02-20 to 2024-03-01)), Codex
cscott added a comment to T303612: ToastNotification: Add ToastNotification component to Codex.

See also T42307: mw.notification Usability Improvements, which is approaching the same question from the other direction.

Thu, May 2, 3:00 PM · Design-System-Team (Design-System-Product-Roadmap), Design, Codex
cscott added a comment to T42307: mw.notification Usability Improvements.

See also T303612: ToastNotification: Add ToastNotification component to Codex which is related.

Thu, May 2, 2:54 PM · MediaWiki-User-Interface (mw.notifications), JavaScript
cscott committed rMLJC8067188cee4e: Fix typo in comment.
Fix typo in comment
Thu, May 2, 11:30 AM

Wed, May 1

cscott closed T313452: Fix JsonCodec to unserialize stdClass objects faithfully, a subtask of T312589: Graph is storing a stdClass not a JsonUnserializable, as Resolved.
Wed, May 1, 5:53 PM · Patch-Needs-Improvement, MW-1.40-notes (1.40.0-wmf.21; 2023-01-30), MediaWiki-extensions-Graph, MediaWiki-Parser, Wikimedia-production-error
cscott closed T313452: Fix JsonCodec to unserialize stdClass objects faithfully as Resolved.
Wed, May 1, 5:53 PM · MW-1.39-notes (1.39.0-wmf.25; 2022-08-15), MediaWiki-extensions-Graph, MediaWiki-Parser

Tue, Apr 30

cscott added a subtask for T269499: [Epic] Make MobileFrontend compatible with Parsoid HTML: T363828: Missing whitespace in headings in MobileFrontEnd + Parsoid.
Tue, Apr 30, 1:26 PM · Web-Team-Backlog (Needs Prioritization (Tech)), Web Team Essential Work 2024, Epic, Parsoid (Tracking), MobileFrontend
cscott added a parent task for T363828: Missing whitespace in headings in MobileFrontEnd + Parsoid: T269499: [Epic] Make MobileFrontend compatible with Parsoid HTML.
Tue, Apr 30, 1:26 PM · Content-Transform-Team-WIP, Parsoid, Parsoid-Read-Views
cscott created T363828: Missing whitespace in headings in MobileFrontEnd + Parsoid.
Tue, Apr 30, 1:26 PM · Content-Transform-Team-WIP, Parsoid, Parsoid-Read-Views

Mon, Apr 29

cscott updated the task description for T363766: Use consistent serializers in OutputTransform stages.
Mon, Apr 29, 9:40 PM · Parsoid, Essential-Work, MediaWiki-Parser
cscott created T363766: Use consistent serializers in OutputTransform stages.
Mon, Apr 29, 9:38 PM · Parsoid, Essential-Work, MediaWiki-Parser
cscott created T363764: Refactor dependency injection (DI) in OutputTransform stages.
Mon, Apr 29, 9:15 PM · Essential-Work, Parsoid, MediaWiki-Parser
cscott added a comment to T363763: OutputTransform pipeline should have a way to send content through "all earlier stage of the pipeline".

Referenced in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/966584/19..25/includes/OutputTransform/DefaultOutputPipelineFactory.php

Mon, Apr 29, 9:13 PM · Essential-Work, Parsoid, MediaWiki-Parser
cscott created T363763: OutputTransform pipeline should have a way to send content through "all earlier stage of the pipeline".
Mon, Apr 29, 9:12 PM · Essential-Work, Parsoid, MediaWiki-Parser
cscott added a project to T358452: Vector 2022 dynamic table of contents broken on Parsoid: Content-Transform-Team-WIP.
Mon, Apr 29, 4:26 PM · Web-Team-Backlog ( FY2023-24 Q4 Sprint 5), Content-Transform-Team-WIP, Patch-For-Review, Parsoid-Read-Views (Phase 1 - DiscussionTools support), Web Team Essential Work 2024, Desktop Improvements (Vector 2022)
cscott closed T49936: Implement <section> natively in Parsoid, possibly as plain HTML5 content as Declined.
Mon, Apr 29, 3:35 PM · Parsoid
cscott created T363720: Provide ParserMigration option to exclude mobile frontend .
Mon, Apr 29, 3:34 PM · Parsoid, Parsoid-Read-Views, Content-Transform-Team-WIP, MediaWiki-extensions-ParserMigration
cscott moved T359446: Pagebanner should be compatible with new parser changes from Current Deploy Target to Backlog on the Content-Transform-Team-WIP board.
Mon, Apr 29, 3:24 PM · Essential-Work, Content-Transform-Team-WIP, Web-Team-Backlog (Needs Prioritization (Tech)), Wikidata-Page-Banner
cscott closed T359886: Undefined whitespace handling behavior around category and language links as Resolved.

No issues from the deploy.

Mon, Apr 29, 3:20 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Content-Transform-Team-WIP
cscott closed T359000: Notification misplaced and color contrast issues on mobile as Resolved.
Mon, Apr 29, 3:19 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, MW-1.42-notes (1.42.0-wmf.21; 2024-03-05)
cscott closed T353530: Category defaultsort should be applied in CategoryLinkTable.php as Resolved.

No problems from the train, resolving.

Mon, Apr 29, 3:18 PM · MW-1.42-notes, MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 1 - DiscussionTools support), MediaWiki CodeJam Dec 2023, Parsoid
cscott closed T353530: Category defaultsort should be applied in CategoryLinkTable.php, a subtask of T300979: Ensure ParserOutput can always be combined asynchronously/out-of-order, as Resolved.
Mon, Apr 29, 3:18 PM · MediaWiki-extensions-Variables, Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid), MW-1.39-notes (1.39.0-wmf.7; 2022-04-11), MW-1.38-notes (1.38.0-wmf.23; 2022-02-21), Parsoid, MediaWiki-Parser
cscott closed T353530: Category defaultsort should be applied in CategoryLinkTable.php, a subtask of T310512: Parsoid and the legacy parser should emit exactly the same ParserOutput metadata, as Resolved.
Mon, Apr 29, 3:18 PM · Parsoid-Read-Views (Phase 4 - Parsoid generates metadata needed by core), Parsoid
cscott added a subtask for T363496: Collapsable sections split the parser cache: T348255: Parser cache infrastructure for OutputTransform.
Mon, Apr 29, 3:17 PM · Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support), Parsoid
cscott added a parent task for T348255: Parser cache infrastructure for OutputTransform: T363496: Collapsable sections split the parser cache.
Mon, Apr 29, 3:17 PM · Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support)
cscott removed a parent task for T363496: Collapsable sections split the parser cache: T348255: Parser cache infrastructure for OutputTransform.
Mon, Apr 29, 3:17 PM · Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support), Parsoid
cscott removed a subtask for T348255: Parser cache infrastructure for OutputTransform: T363496: Collapsable sections split the parser cache.
Mon, Apr 29, 3:17 PM · Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support)
cscott moved T358950: Local interlanguage links don’t work with Parsoid read views from Backlog to Current Deploy Target on the Content-Transform-Team-WIP board.
Mon, Apr 29, 3:15 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, Wikimedia-Interwiki-links, Parsoid
cscott added projects to T363492: Warning: Undefined property: MediaWiki\Parser\Parser::$dynamicPropertiesAccessDeprecated in includes/debug/DeprecationHelper.php on line 214: Content-Transform-Team-WIP, Content-Transform-Team.
Mon, Apr 29, 3:10 PM · MW-1.43-notes (1.43.0-wmf.5; 2024-05-14), Essential-Work, Content-Transform-Team, Content-Transform-Team-WIP, MediaWiki-Parser

Fri, Apr 26

cscott added a comment to T303627: Translation unit markers interferes with comment markup in Parsoid rendering.

If you wanted to make this "cleaner" you could also say "in wikitext, unlike in html, <!-- --> style comments nest". We have other places where we diverge from html syntax (wikitext is not a superset of html), and I think you could plausibly argue this better matches how most human editors /expect/ delimited comments to work.

Fri, Apr 26, 3:47 PM · Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid), Parsoid, MediaWiki-extensions-Translate
cscott added a comment to T303627: Translation unit markers interferes with comment markup in Parsoid rendering.

Yet another option is to use {{Empty template|.....}} to comment out content. This isn't super attractive now, but should get nicer as {{Empty template|<<< .... >>>}}.

Fri, Apr 26, 3:36 PM · Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid), Parsoid, MediaWiki-extensions-Translate

Thu, Apr 25

cscott added a comment to T363492: Warning: Undefined property: MediaWiki\Parser\Parser::$dynamicPropertiesAccessDeprecated in includes/debug/DeprecationHelper.php on line 214.

Also work double-checking that no one is explicitly calling unset($parser->mInParse) since that's a pattern I had to fix in a number of places. Well-meaning folks were thinking "I'll reduce memory overhead a little bit" (even though that's completely pointless, as the hash table allocated for dynamic properties by PHP was allocated when the dynamic property was set and doesn't go away, it just sits there empty instead) and unsetting their dynamic properties "when they were done with them" which then makes them dynamic and subject to a complaint from DeprecationHelper.

Thu, Apr 25, 4:53 PM · MW-1.43-notes (1.43.0-wmf.5; 2024-05-14), Essential-Work, Content-Transform-Team, Content-Transform-Team-WIP, MediaWiki-Parser
cscott added a comment to T363492: Warning: Undefined property: MediaWiki\Parser\Parser::$dynamicPropertiesAccessDeprecated in includes/debug/DeprecationHelper.php on line 214.

Is there any way for DeprecationHelper to determine that the object is being destructed, and suppress its warning in that case?

Thu, Apr 25, 4:49 PM · MW-1.43-notes (1.43.0-wmf.5; 2024-05-14), Essential-Work, Content-Transform-Team, Content-Transform-Team-WIP, MediaWiki-Parser
cscott created T363496: Collapsable sections split the parser cache.
Thu, Apr 25, 4:44 PM · Content-Transform-Team-WIP, Parsoid-Read-Views (Phase 2 - testwiki Main namespace support), Parsoid
cscott added a comment to T363490: Translate extension mutates the $options argument in ParserOutputPostCacheTransform hook.

Note that setting the ParserOption to suppress edit links at the present time splits the parser cache. That's probably not an issue since the page will *always* be rendered with that setting.

Thu, Apr 25, 4:33 PM · MW-1.42-notes (1.42.0-wmf.18; 2024-02-13), MediaWiki-Parser
cscott created T363490: Translate extension mutates the $options argument in ParserOutputPostCacheTransform hook.
Thu, Apr 25, 3:46 PM · MW-1.42-notes (1.42.0-wmf.18; 2024-02-13), MediaWiki-Parser
cscott updated the task description for T363484: Update ParserMigration notice.
Thu, Apr 25, 3:38 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Parsoid-Read-Views, Content-Transform-Team-WIP, Parsoid, MediaWiki-extensions-ParserMigration
cscott updated the task description for T363484: Update ParserMigration notice.
Thu, Apr 25, 3:22 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Parsoid-Read-Views, Content-Transform-Team-WIP, Parsoid, MediaWiki-extensions-ParserMigration
cscott created T363484: Update ParserMigration notice.
Thu, Apr 25, 3:14 PM · MW-1.43-notes (1.43.0-wmf.6; 2024-05-21), Parsoid-Read-Views, Content-Transform-Team-WIP, Parsoid, MediaWiki-extensions-ParserMigration
cscott added a comment to T303627: Translation unit markers interferes with comment markup in Parsoid rendering.

A compromise is to make the Translate-specific tokens *temporary*. The big benefit of adding support to the Tokenizer is that it makes it easier to emit a linter error for them if they are found inside a comment region.

Thu, Apr 25, 2:42 PM · Parsoid-Read-Views (Phase 3 - Main namespace of officewiki / mediawiki.org renders with Parsoid), Parsoid, MediaWiki-extensions-Translate

Wed, Apr 24

cscott added a comment to T363378: Parsoid should mark itself up in a way that CSS/JavaScript can target it.

FWIW JS code can figure out if parsoid is being used to render the page by looking for parsermigration-parsoid in the JsConfigVars, but that's a temporary thing put there by the ParserMigration extension, not a "real" solution.

Wed, Apr 24, 8:16 PM · Content-Transform-Team-WIP, MW-1.43-notes (1.43.0-wmf.3; 2024-04-30), Web-Team-Backlog (Needs Prioritization (Tech))

Tue, Apr 23

cscott updated the task description for T361956: Application Security Review Request : css-sanitizer custom property support.
Tue, Apr 23, 6:08 PM · Web-Team-Backlog (Needs Prioritization (Tech)), user-sbassett, css-sanitizer, secscrum, Security, Application Security Reviews
cscott added a comment to T361956: Application Security Review Request : css-sanitizer custom property support.

My concerns are:

  1. We sort of hand-wave about this being safe "because custom properties are only set to color values" but we don't actually enforce that. We enforce something slightly different: that custom properties are *used* only where color values *could be used*. I'm concerned that the gap between those two slightly different definitions could be exploited.
  2. If our security *does* critically depend on the *values* given to custom properties, then we need to either sanitize those or at least communicate to reviewers what sorts of Bad Things they should look for when reviewing CSS in extensions/skins/gadgets/etc.
  3. The way that custom properties work allows for token concatenation attacks, eg when border: --foo --bar --baz --bat gets expanded, the tokens that correspond to those four properties get concatenated and *potentially* the result could be unexpected. The spec *says* that the values, although unconstrained (The allowed syntax for custom properties is extremely permissive), *are* parsed as tokens ("they're a bare stream of CSS tokens" at least) and so you can't glue u and rl together to get url -- but I think it would be worthwhile to red-team that and check that browsers actually implement these things that way, and that there aren't other ways to concatenate tokens together to get Bad results.
Tue, Apr 23, 5:58 PM · Web-Team-Backlog (Needs Prioritization (Tech)), user-sbassett, css-sanitizer, secscrum, Security, Application Security Reviews
cscott added a comment to T353570: Clean up old ParserCache serialization test cases.

Clarified the current compatibility policy with @daniel (prompted by a discussion with @Krinkle on https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1023098) and documented the policy at https://www.mediawiki.org/wiki/Manual:Parser_cache/Serialization_compatibility:

Tue, Apr 23, 4:33 PM · MediaWiki-Parser, User-Daniel, Documentation, Content-Transform-Team, Platform Team Workboards (MW Expedition)
cscott added a comment to T360905: Parsoid DiscussionTools, phase 3.

DT is turning on for these wikis on Thursday (Apr 25).

Tue, Apr 23, 3:14 PM · Parsoid-Read-Views (Phase 1 - DiscussionTools support), Content-Transform-Team-WIP, Editing-team (Tracking), Parsing-Active-Work, DiscussionTools

Mon, Apr 22

cscott added a comment to T361396: 1.43.0-wmf.2 deployment blockers.

Thanks for the spot, @ssastry. T363107 has a description of the issue and two belt-and-suspenders patches to fix it. It doesn't look like 1.43.0-wmf.2 has been branched yet (?) but I'll submit them both to backport.

Mon, Apr 22, 3:36 PM · User-brennen, Release-Engineering-Team (Priority Backlog 📥), Release, Train Deployments
cscott updated the task description for T363107: Potential logspam on rollback of 1.43-wmf.2.
Mon, Apr 22, 3:35 PM · MW-1.42-notes, MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), MediaWiki-Parser
cscott added a subtask for T361396: 1.43.0-wmf.2 deployment blockers: T363107: Potential logspam on rollback of 1.43-wmf.2.
Mon, Apr 22, 3:24 PM · User-brennen, Release-Engineering-Team (Priority Backlog 📥), Release, Train Deployments
cscott added a parent task for T363107: Potential logspam on rollback of 1.43-wmf.2: T361396: 1.43.0-wmf.2 deployment blockers.
Mon, Apr 22, 3:24 PM · MW-1.42-notes, MW-1.43-notes (1.43.0-wmf.1; 2024-04-16), MediaWiki-Parser