Page MenuHomePhabricator

Function view: Alias list for additional languages always have an empty string as first item
Closed, ResolvedPublicBUG REPORT

Description

Description

Steps to reproduce:

  1. Go to https://wikifunctions.beta.wmflabs.org/wiki/Z10014?view=function-viewer
  2. Expand "Also known as" --> "Show more languages"

Observed behavior:

  • There's two aliases for Swedish, and the first one is an empty string.

Expected behavior (Acceptance criteria):

  • According to the ZObject JSON, there should only be one Swedish alias "och":
{
    "Z1K1": "Z31",
    "Z31K1": "Z1592",
    "Z31K2": [
        "Z6",
        "och"
    ]
}

Completion checklist

Event Timeline

gengh renamed this task from <Component>: <Short one-liner describing the problem> to Function view: Alias list for additional languages always have an empty string as first item.Oct 10 2022, 10:08 AM
gengh created this task.
gengh moved this task from To triage to Phase θ – Throttling on the Abstract Wikipedia team board.

Change 840582 had a related patch set uploaded (by Dani DW; author: Dani DW):

[mediawiki/extensions/WikiLambda@master] Function view: Fix alias list for additional languages always have an empty string as first item

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

Change 840582 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Function view: Fix alias list for additional languages always have an empty string as first item

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

A unit test wouldn't really help pick this up on the page as the updated getter is mocked. I will look to include it in an integration test.

@Ddwaal-WMF can you share the state of this being included in integration tests? If it is, then I believe we can close this task.