Page MenuHomePhabricator

Object selector cannot select unlabeled object by ZID
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:
I cannot select that object

What should have happened instead?:
I should be able to select the object

Software version (skip for WMF-hosted wikis like Wikipedia):

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

Event Timeline

In Wikibase the ID is used as a placeholder if there are no labels defined.

Z11684 has no labels in any language, and so no entry in the labels table, so it won't show up in our search. We could special-case the event when the input looks like a ZID and check that manually in addition to the API query?

Maybe repeat the 'mul' hack we have for Z60s to also put the ZID in as a mul alias?

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

[mediawiki/extensions/WikiLambda@master] Insert fake MUL alias to the labels table to make unnamed objects searchable

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

Maybe repeat the 'mul' hack we have for Z60s to also put the ZID in as a mul alias?

I followed @Jdforrester-WMF recommendation. For each object, a fake alias for language Multilingual/Z1360 and with the Zid as label is added to the secondary labels table.
This affects search, allowing contributors to find and select objects that aren't labelled.
This also means that the issue described in T373038 is now solved.

We need to run the updateSeocondaryTables maintenance script in production for all types.

Change #1088549 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Insert fake MUL alias to the labels table to make unnamed objects searchable

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

Mentioned in SAL (#wikimedia-operations) [2024-11-14T19:20:16Z] <James_F> Running mwscript-k8s -f -- extensions/WikiLambda/maintenance/updateSecondaryTables.php --wiki=wikifunctionswiki --zType Z8 --report --verbose for T375972, T367005, T373038, T358737