Page MenuHomePhabricator

Update Query Service language selector database
Closed, ResolvedPublicBUG REPORT

Description

The Problem
The language selector for the query service interface is using very old data, which means some of the translations for the query service UI can't be selected, because the language switcher does not find the language.

For example, when entering ms-arab in the language selector on https://query.wikidata.org/, it doesn't find any results.

queryservice-ms-arab.png (325×714 px, 16 KB)

The language code was added to langdb 6 years ago. There are translations for it.

It also means some languages have bad autonyms, e.g. enter "ryu" and it shows "ʔucināguci".

queryservice-ryu.png (323×712 px, 3 KB)

This was changed in langdb 2 years ago.

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

What happens?:
No result is shown

What should have happened instead?:

  • The language should be shown as it is when typing ms-arab on the Query Builder language selector

image.png (361×424 px, 9 KB)

Event Timeline

Thanks for picking up on that Nikki!

Let's check to see if this is solved once this patch is merged: T353729

Arian_Bozorg renamed this task from Query service language selector uses very old data, some translations can't be selected to Update Query Service language selector database.Mar 4 2024, 2:50 PM
Arian_Bozorg updated the task description. (Show Details)
Arian_Bozorg updated the task description. (Show Details)

Thanks for picking up on that Nikki!

Let's check to see if this is solved once this patch is merged: T353729

It isn't solved, by the way.

It looks like the query service is fetching jquery.uls from npm instead of git (according to package.json). https://www.npmjs.com/package/jquery.uls seems to be abandoned, it hasn't been updated in the 6 years since it was created.

Maybe changing the dependency to "github:wikimedia/jquery.uls" would work?

Is there any possibility of getting this fixed asap? It's quite embarrassing to be demoing the query service to people when the name of their language is misspelled in the upper righthand corner.

Change #1082442 had a related patch set uploaded (by Itamar Givon; author: Itamar Givon):

[wikidata/query/gui@master] Update jquery.uls package source to github

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

Change #1082442 merged by jenkins-bot:

[wikidata/query/gui@master] Update jquery.uls package source to github

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

What still needs to happen for it to work in production?

It needs to be deployed. Will take care of it now.