Page MenuHomePhabricator

[QA task] Special:Search quick preview - local vs central description
Closed, ResolvedPublic

Description

(0) My test user (Administrator, Bureaucrat user rights) cannot import wikidata items. The error message refers to the config setting being disabled: allowEntityImport . The item that I attempted to import doesn't exist in wikidata betalabs - x.
https://wikidata.beta.wmflabs.org/w/index.php?title=Special:Import&action=submit

Screen Shot 2022-12-22 at 10.35.16 AM.png (1×2 px, 226 KB)

Is it possible to enable betalabs wikidata import for certain user rights? Or there might be a script to do that?

(1) Local vs central description - it seems that only local descriptions are displayed.
The examples:
Water page information lists
Wikidata item ID None
Local description Chemical compound with formula H2O - displayed in the quick preview

Screen Shot 2022-12-22 at 10.18.16 AM.png (1×2 px, 1 MB)

Cat page information lists
Wikidata item ID x
Local description Domesticated felid species - displayed in the quick preview
Central description domesticated feline

Screen Shot 2022-12-21 at 11.26.17 AM.png (1×2 px, 874 KB)

DONE (2) The description for the wikidata item Bird dog (Q536256) was changed. The Bird dog page on enwiki betalabs lists the wikidata item and the updated description (as the central description).

Screen Shot 2022-12-22 at 10.08.49 AM.png (1×2 px, 752 KB)

Yet, Special:Search quick preview (https://en.wikipedia.beta.wmflabs.org/w/index.php?search=bird+dog&title=Special:Search&profile=advanced&fulltext=1&ns0=1&quickView=Bird+dog) doesn't display it (after 24-hour wait period):
Screen Shot 2022-12-22 at 10.11.36 AM.png (1×2 px, 1 MB)

Event Timeline

Etonkovidova renamed this task from [QA task] Special:Search quick preview - local vs central description testing to [QA task] Special:Search quick preview - local vs central description .Jan 4 2023, 4:30 PM

@SimoneThisDot - it'd be great to clarify where those local descriptions are coming from. Thx!

Hi Elena...

We are currently getting the information (description) from the PARSE API... This currently only provides 1 description entry (it does not return two and it does not provide the possibility to choose which one to return).

We previously discussed this issue, and we agreed on continuing with the current implementation, but I do not remember the actual conversation (Matthias helped cleanup our understanding if I am not mistaken).

The only way for us to change the description shown is to actually get the info from wikidata (as far as I know) and this is something that we are not doing yet (all info are currently coming from the wiki and commons currently).

@SimoneThisDot @matthiasmullie do we know where the description from the PARSE API comes from, if not from Wikidata? Is it the local description? Do all wikis and articles have this? My understanding was that we were using the Wikidata description, which made it a "structured data" feature.

It comes from the {{Short description}} template, which uses the {{SHORTDESC}} magic word. It allows (English) Wikipedia to explicitly override Wikidata descriptions everywhere. See T184000: Magic word on English WP to override display of Wikidata short description for more context.

It comes from the {{Short description}} template, which uses the {{SHORTDESC}} magic word. It allows (English) Wikipedia to explicitly override Wikidata descriptions everywhere. See T184000: Magic word on English WP to override display of Wikidata short description for more context.

Thanks! So if I understand that ticket correctly, we're using the magic word override if it exists, and if not we're using the wikidata description. I'm guessing on many wikis, that will mostly mean we're using the wikidata description, is that right?

It comes from the {{Short description}} template, which uses the {{SHORTDESC}} magic word. It allows (English) Wikipedia to explicitly override Wikidata descriptions everywhere. See T184000: Magic word on English WP to override display of Wikidata short description for more context.

Thanks, @matthiasmullie! I suspected that it'd be a no-issue for pilot wikis.
I checked ruwiki and ptwiki for hastemplate:"Short description". The template is present but, so far, I didn't see the presence of {{SHORTDESC}} and no examples of overriding the Central description. I added few examples of articles to be tested after deployment to my test cases (the examples when a description exists only in a different lang or when wikidata description uses some not-common symbols etc).

Change 875468 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/SearchVue@master] Also get central description

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

Change 875906 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/SearchVue@wmf/1.40.0-wmf.17] Also get central description

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

Change 875468 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@master] Also get central description

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

It comes from the {{Short description}} template, which uses the {{SHORTDESC}} magic word. It allows (English) Wikipedia to explicitly override Wikidata descriptions everywhere. See T184000: Magic word on English WP to override display of Wikidata short description for more context.

Thanks! So if I understand that ticket correctly, we're using the magic word override if it exists, and if not we're using the wikidata description. I'm guessing on many wikis, that will mostly mean we're using the wikidata description, is that right?

Correct.
Except that when looking into it more closely to confirm, I noticed we were *only* getting local descriptions (and not the central Wikidata description when no local description is present). Fix merged, will be backported shortly & roll out with train later today.

Change 875908 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/SearchVue@wmf/1.40.0-wmf.14] Also get central description

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

Change 875906 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@wmf/1.40.0-wmf.17] Also get central description

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

Mentioned in SAL (#wikimedia-operations) [2023-01-05T14:09:52Z] <mlitn@deploy1002> Started scap: Backport for [[gerrit:875906|Also get central description (T325831)]]

Mentioned in SAL (#wikimedia-operations) [2023-01-05T14:11:43Z] <mlitn@deploy1002> mlitn and mlitn: Backport for [[gerrit:875906|Also get central description (T325831)]] synced to the testservers: mwdebug1001.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-01-05T14:17:50Z] <mlitn@deploy1002> Finished scap: Backport for [[gerrit:875906|Also get central description (T325831)]] (duration: 07m 57s)

Change 875908 merged by jenkins-bot:

[mediawiki/extensions/SearchVue@wmf/1.40.0-wmf.14] Also get central description

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

Mentioned in SAL (#wikimedia-operations) [2023-01-05T14:21:28Z] <mlitn@deploy1002> Started scap: Backport for [[gerrit:875908|Also get central description (T325831)]]

Mentioned in SAL (#wikimedia-operations) [2023-01-05T14:23:17Z] <mlitn@deploy1002> mlitn and mlitn: Backport for [[gerrit:875908|Also get central description (T325831)]] synced to the testservers: mwdebug1002.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug2001.codfw.wmnet, mwdebug1001.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-01-05T14:30:01Z] <mlitn@deploy1002> Finished scap: Backport for [[gerrit:875908|Also get central description (T325831)]] (duration: 08m 32s)

Checked on wmf.21 - pilot wikis (ptwiki, idwiki, and ruwiki) display wikidata description for articles.