Page MenuHomePhabricator

Consider using sitematrix to populate supported languages in CX dashboard instead of hardcoded list
Closed, ResolvedPublic2 Estimated Story Points

Description

In the context of T405000: Handle failure to load languages from cx server, the list of supported languages supported by CX was transitioned from query CX Server's /list/languagepairs endpoint to using an hardcoded list in the ContentTranslation extension.

Relatedly, the recommendation api's dependency on that same CX Server endpoint was replaced by using sitematrix.

Consider using sitematrix as the source of truth for the available Wikipedia languages. It should be noted that sitematrix uses wiki codes that are not always the same as the actual language code (no vs nb) but we already do code mapping throughout the system so it shouldn't be an issue.


Derived Requirement

Ensure that the CX dashboard and ContentTranslation interface correctly populate the list of supported languages without issues, using sitematrix as the source of truth, with proper language code mappings. This is for regression testing only.

Test Steps

Test Case 1: Regression – Supported Languages Populate Correctly in CX Dashboard and ContentTranslation

  1. Access the CX dashboard on the beta wiki and observe the list of supported languages.
  2. Open the ContentTranslation interface for creating a new translation and observe the target language dropdown.
  3. ✅❓❌⬜ AC1: Confirm that all supported Wikipedia languages appear correctly in both the dashboard and ContentTranslation interface, without any errors.

QA Results - TestWiki

ACStatusDetails
1T409481#11424528

Event Timeline

Nikerabbit triaged this task as Medium priority.Thu, Nov 13, 8:49 AM
Nikerabbit moved this task from Needs Triage to Maintenance on the ContentTranslation board.
SBisson changed the task status from Open to In Progress.Mon, Nov 17, 2:00 PM
SBisson claimed this task.
SBisson moved this task from Prioritized to In-progress on the LPL Hypothesis board.
Nikerabbit set the point value for this task to 2.

Change #1206953 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] Fetch supported language via sitematrix

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

Change #1206953 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Fetch supported languages via sitematrix

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

Change #1210670 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251124

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

Change #1210670 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251124

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

@SBisson Confirmed that all supported Wikipedia languages appear correctly in both the dashboard and ContentTranslation interface, without any errors, as seen in the videos below. I will mark this as Sign-off. Thanks for all your work!

Test Result - Beta|Prod

Status: ✅ PASS
Environment: beta/meta.wikimedia.org
OS: macOS Tahoe 26.1
Browser: Chrome 142
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Regression – Supported Languages Populate Correctly in CX Dashboard and ContentTranslation

  1. Access the CX dashboard on the beta wiki and observe the list of supported languages.
  2. Open the ContentTranslation interface for creating a new translation and observe the target language dropdown.
  3. AC1: Confirm that all supported Wikipedia languages appear correctly in both the dashboard and ContentTranslation interface, without any errors.
DesktopMobile
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.
Nikerabbit subscribed.

Expecting this to complicate local testing a bit, but since I haven't seen complaints, I think it is fine.