Page MenuHomePhabricator

Tables utilising the {{album chart}} template render incorrectly
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
For rows utilising the template, there is an additional column created, with the leftmost column reading align="left", with a total of 3 columns for those rows

What should have happened instead?:
The align="left" column should not be displayed, and there should only be 2 columns for all rows. This is how the table is displayed on the website version of Wikipedia, both mobile and desktop.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.): Wikipedia Beta version 2.7.50449-beta-2023-07-31, Android 13

Appearance on the mobile web (Chrome):

Screenshot_2023-08-09-18-30-19-554_com.android.chrome.png (2×1 px, 313 KB)

Appearance on the Android app:

Screenshot_2023-08-09-18-29-58-492_org.wikipedia.beta.png (2×1 px, 223 KB)

Event Timeline

Dbrant renamed this task from Tables utilising the {{album chart}} template render incorrectly on the Android app to Tables utilising the {{album chart}} template render incorrectly.Aug 9 2023, 11:59 AM
Dbrant moved this task from Needs Triage to Tracking on the Wikipedia-Android-App-Backlog board.
Dbrant added a project: Content-Transform-Team.
Dbrant subscribed.

This looks like a potential Parsoid issue:
https://en.wikipedia.org/api/rest_v1/page/html/Abbey_Road

This reproduces it. It only fails when embedded in another table that comes from a template. If the "{{col-begin}} is replaced with the contents of the template, it works fine. Some edge case in the table fixup code.

{{col-begin}}
|-
|
{|
|align="left" {{album chart|Flanders|1|artist=The Beatles|album=Abbey Road|access-date=4 October 2019}}
|}
|}

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

[mediawiki/services/parsoid@master] WIP: Deal with unsupported table combining scenario

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

ssastry triaged this task as Medium priority.

Change 947484 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Deal with unsupported table combining scenario

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

Change 948642 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/vendor@master] Bump parsoid to 0.18.0-a22

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

Change 948642 merged by jenkins-bot:

[mediawiki/vendor@master] Bump parsoid to 0.18.0-a22

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

Looks like there is more things to fix. The following snippet doesn't render.

{{col-begin}}
|-
|
{|
|align="left" {{album chart|Czech|23|date=201940|rowheader=true|access-date=8 October 2019}}
|}
|}

Must be some broken regex. To be investigated.

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

[mediawiki/services/parsoid@master] TableFixups: Generalize how two adjacent cells combine

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

Change 952918 merged by jenkins-bot:

[mediawiki/services/parsoid@master] TableFixups: Generalize how two adjacent cells combine

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

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

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.18.0-v23

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

Change 956459 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.18.0-v23

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

Deployed and verified fixed.