Page MenuHomePhabricator

Links to variants titles in Parsoid are still marked as red links
Open, MediumPublic

Description

This is the parser test "Multiple links to pages in language variants".

The alternate links should not be redlinks, but Parsoid doesn't do variant conversion before it does redlink processing.

Event Timeline

Redlink processing is the last step though and Parsoid's parserTests pretty much considers all links as known when it's doing redlink processing,
https://github.com/wikimedia/parsoid/blob/master/src/Config/Api/DataAccess.php#L144-L146

Not after https://gerrit.wikimedia.org/r/c/mediawiki/services/parsoid/+/616132 (in integrated mode parsertests returns accurate known/missing info).

But even there redlinks is the last pass to run, no?

Well, I think we need to re-run red link processing after language conversion. And I'm not sure that title normalization on links is implemented yet either.

ssastry triaged this task as Medium priority.Aug 5 2020, 9:45 PM
ssastry moved this task from Needs Triage to Bugs & Crashers on the Parsoid board.
ssastry added a project: Parsoid-Rendering.

Change 738019 had a related patch set uploaded (by TK-999; author: TK-999):

[mediawiki/services/parsoid@master] Implement basic variant link resolution

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

Rebased this since it got a question about its status, just wanted to note per earlier discussions on the patch that T296023 probably needs to be resolved first to unblock this.

Change #738019 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Implement basic variant link resolution

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

Change #1032723 had a related patch set uploaded (by TK-999; author: TK-999):

[mediawiki/services/parsoid@master] Disable Chinese language conversion for variant link resolution

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

Change #1032723 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Disable Chinese language conversion for variant link resolution

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

Change #1034127 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.20.0-a5

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

Change #1034127 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.20.0-a5

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