Page MenuHomePhabricator

Display of a Test/Implementation whose label is a ZID is a stringified JSON object, not the raw label
Closed, ResolvedPublicBUG REPORT

Description

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

(or Z40256)

What happens?:
The label of the first test is displayed as a normal-form interpretation of the string Z10000 (i.e. { "Z1K1": "Z6", "Z6K1": "Z10000" }).

What should have happened instead?:
The label is just "Z10000", and should be displayed as such.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Jdforrester-WMF renamed this task from When the Test name is a ZID it is displayed as normal JSON object to Display of a Test/Implementation whose label is a ZID is a stringified JSON object, not the raw label.Sep 8 2026, 6:56 PM
Jdforrester-WMF updated the task description. (Show Details)

Root cause is I think: in canonical form, a string that matches the reference pattern (Z\d+) is wrapped as a Z6 object so it is not read as a Z9 reference. Z40978's label is stored as:

{ "Z1K1": "Z11", "Z11K1": "Z1002", "Z11K2": { "Z1K1": "Z6", "Z6K1": "Z10001" } }

Is that ok? then we would need to change frontend and use getZMonolingualTextValue or so. But then probably in more places?

Change #1352458 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] library.js: Unwrap ZID-like labels when building LabelData

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

DSmit-WMF changed the task status from Open to In Progress.Oct 7 2026, 9:38 AM
DSmit-WMF claimed this task.

Change #1352458 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] library.js: Unwrap ZID-like labels when building LabelData

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

Jdforrester-WMF subscribed.

Confirmed fixed in production now that the wmf.24 train has rolled forward.