Page MenuHomePhabricator

Wikilambda Load ZObjects: Fails to filter aliases to selected language
Closed, ResolvedPublicBUG REPORT

Description

Description

Wikilambdaload_zobjects API, if given a language as parameter, returns the ZObject with only the languages that match that language code, or their closest fallback language.

The fields filtered correctly are all the multilingual string objects under:

  • Z2K3/label
  • Z2K5/description
  • Z17K3/argument label (when function)
  • Z3K3/key label (when type)

However, the multilingual stringset objects are not filtered, so they return all the existing values. This includes:

  • Z2K4/aliases

Expected behavior (Acceptance criteria):

  • When the language parameter is present, all multilingual objects should be filtered to the requested language or closest fallback, including aliases

Completion checklist

Event Timeline

Change #1015320 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Fix language filtering for zobject fetching APIs (public and private)

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

Jdforrester-WMF changed the task status from Open to In Progress.Mar 28 2024, 2:13 PM
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF moved this task from To triage to In Progress on the Abstract Wikipedia team board.

Change #1015320 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix language filtering for zobject fetching APIs (public and private)

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

May help with T359772 (but that also mentions descriptions)