Page MenuHomePhabricator

Add wikidata support for wikifunctionswiki
Closed, ResolvedPublic3 Estimated Story Points

Description

  • Allow adding sitelink to Wikifunctions
  • Allow Wikidata arbitrary access in Wikifunctions

Event Timeline

Note that data access already seems to work – it’s a bit tricky to test without edit rights, but you can parse {{#property:P31|from=Q42}} via the API and get “human” back. But sitelinks don’t work yet AFAICT (Wikidata doesn’t know about wikifunctionswiki yet).

Yeah, I looked at the config for adding WF to Wikidata's list of sitelink suppliers and gave up, sorry. :-( Happy to do this myself if there's docs, or review/+1 if you'd prefer to do it yourself!

Our documentation is at wikitech:WMDE/Wikidata/Enable Client, but I think Add a wiki § Wikidata is the part that’s still missing – wikifunctionswiki doesn’t seem to be in Wikidata’s sites table yet AFAICT.

Jdforrester-WMF moved this task from To triage to Backlog on the Abstract Wikipedia team board.

@Jdforrester-WMF doing some house cleaning here, I understand that this was already done according to T342857#9050660 & T343489#9105907?

Jdforrester-WMF renamed this task from Make Wikifunctions a Wikidata client to dd wikidata support for wikifunctionswiki.Aug 29 2023, 3:32 PM
Jdforrester-WMF renamed this task from dd wikidata support for wikifunctionswiki to Add wikidata support for wikifunctionswiki.

@Jdforrester-WMF doing some house cleaning here, I understand that this was already done according to T342857#9050660 & T343489#9105907?

As messily confirmed on that task, no, only the scary database bit was done, the rest of the steps are outstanding.

Prio Notes:

  • Affects end users / production
  • Does not affect monitoring
  • Does not affect development efforts
  • Does not affect onboarding efforts
  • Affects additional stakeholders (Abstract Wikipedia team)
karapayneWMDE changed the point value for this task from 5 to 3.

Change 960065 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/WikimediaMessages@master] Add label for Wikifunctions in “other projects” sidebar section

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

Change 960066 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[operations/mediawiki-config@master] Make wikifunctionswiki a multilingual Wikidata client

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

Change 960065 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMessages@master] Add label for Wikifunctions in “other projects” sidebar section

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

@Lucas_Werkmeister_WMDE shouldn't the /qqq be 'Label for Wikifunctions' rather than 'Label for Wikidata'? (probably copied from the one above)

You’re right, I guess I didn’t look closely enough and assumed they all said “Label for Wikidata” (as in “to be used related to Wikidata”). Thanks for fixing it already.

Change 960066 merged by jenkins-bot:

[operations/mediawiki-config@master] Make wikifunctionswiki a multilingual Wikidata client

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

Mentioned in SAL (#wikimedia-operations) [2023-09-26T13:11:53Z] <lucaswerkmeister-wmde@deploy2002> Started scap: Backport for [[gerrit:960066|Make wikifunctionswiki a multilingual Wikidata client (T342857)]]

Mentioned in SAL (#wikimedia-operations) [2023-09-26T13:13:20Z] <lucaswerkmeister-wmde@deploy2002> lucaswerkmeister-wmde: Backport for [[gerrit:960066|Make wikifunctionswiki a multilingual Wikidata client (T342857)]] synced to the testservers mwdebug2001.codfw.wmnet, mwdebug1001.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug1002.eqiad.wmnet, and mw-debug kubernetes deployment (accessible via k8s-experimental XWD option)

Tested on mwdebug with this edit linking the main page to the item for main pages.

Mentioned in SAL (#wikimedia-operations) [2023-09-26T13:21:38Z] <lucaswerkmeister-wmde@deploy2002> Finished scap: Backport for [[gerrit:960066|Make wikifunctionswiki a multilingual Wikidata client (T342857)]] (duration: 09m 44s)

Note: Sidebar links might temporarily look like ⧼wikibase-otherprojects-wikifunctions⧽ until the train rolls out; if it’s a big enough issue, we can backport the change adding the message.

Change 961217 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/WikimediaMessages@wmf/1.41.0-wmf.27] Add label for Wikifunctions in “other projects” sidebar section

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

Note: Sidebar links might temporarily look like ⧼wikibase-otherprojects-wikifunctions⧽ until the train rolls out; if it’s a big enough issue, we can backport the change adding the message.

Eh, let’s do the backport after all, given that the broken message appears on the enwiki main page above the fold:

image.png (926×1 px, 511 KB)

(I’m surprised search doesn’t find any complaints about it tbh.)

Change 961217 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMessages@wmf/1.41.0-wmf.27] Add label for Wikifunctions in “other projects” sidebar section

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

Mentioned in SAL (#wikimedia-operations) [2023-09-27T13:19:29Z] <lucaswerkmeister-wmde@deploy2002> Started scap: Backport for [[gerrit:961217|Add label for Wikifunctions in “other projects” sidebar section (T342857)]]

Mentioned in SAL (#wikimedia-operations) [2023-09-27T13:37:47Z] <lucaswerkmeister-wmde@deploy2002> lucaswerkmeister-wmde: Backport for [[gerrit:961217|Add label for Wikifunctions in “other projects” sidebar section (T342857)]] synced to the testservers mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug1001.eqiad.wmnet, and mw-debug kubernetes deployment (accessible via k8s-experimental XWD option)

Mentioned in SAL (#wikimedia-operations) [2023-09-27T13:49:26Z] <lucaswerkmeister-wmde@deploy2002> Finished scap: Backport for [[gerrit:961217|Add label for Wikifunctions in “other projects” sidebar section (T342857)]] (duration: 29m 56s)

Alright, should be done now. (The backported message doesn’t have translations yet, but at least it’s better than nothing.)

Thanks all! Confirmed that it works. Awesome!