Page MenuHomePhabricator

Enable Wikibase client on Wikimedia Foundation Governance Wiki
Closed, ResolvedPublic5 Estimated Story Points

Description

Problem:
Foundation wiki wants to make use of data from Wikidata but is not set up as a client wiki yet. It should be set up to be a Wikidata client wiki.

Specifically this means:

  • it can use the Wikibase Lua functions in Lua modules to get data from Wikidata
  • it is listed under "multilingual sites" in the sitelink section with the name "Foundation"

Acceptance criteria:

  • Foundation wiki is set up as a Wikidata client wiki
  • The WikimediaBadges extension is loaded on foundationwiki (this should happen automatically on every Wikibase client, just check it on Special:Version)

Notes:
See https://wikitech.wikimedia.org/wiki/WMDE/Wikidata/Enable_Client for instructions on how to enable a wikidata client

Original request:

Some Foundation teams would like to utilize Wikidata labels (which seems to be required to support things like Template:Label) on the Wikimedia Foundation Governance Wiki (https://foundation.wikimedia.org) - which as I understand it requires enabling this MediaWiki extension on that wiki:

And possibly:

Probably good to enable this one as well while we are at it:

Event Timeline

Change 850547 had a related patch set uploaded (by Varnent; author: Varnent):

[operations/mediawiki-config@master] Added Wikimedia Foundation Governance Wiki to Wikibase setup and enabled extension on wiki.

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

Reedy subscribed.

So it wants to be a Wikibase Client?

So it wants to be a Wikibase Client?

From what I can tell - that is what is required to support things like Template:Label - but please feel free to correct me if I am wrong - especially if I am overcomplicating. :)

@Reedy or @Jdforrester-WMF - any ideas who I can ping to get this processed? Thank you!

While it doesn't need a WMDE person/Wikidata developer to necessarily do the deploy, I wouldn't mind one of them weighing in on a few things.

The wbc_entity_usage table from client/sql/mysql/entity_usage.sql needs creating on foundationwiki (that's easy; a script in MediaWiki-extensions-WikimediaMaintenance helps there too), and it would look like the sites table is out of date and probably needs updating too (I think that should be trivial enough too; it's missing some rows vs say enwiki, but probably isn't a blocker). Both are basically things we do when creating a new wiki.

I don't think Wikidata is aware that foundationwiki exists either (it is in the sites table); I'm guessing it should be classed under Multilingual sites (ala meta, mediawiki and commons) if we want to allow some cross linking too. Not sure if/where this needs doing, or whether your patch already accommodates for that, or whether something else is needed for that.

Not sure offhand who is the best person in WMDE to poke for this, either for the help, or to find someone to help (ie some manager-y type) find someone to help.

Mentioned in SAL (#wikimedia-operations) [2023-02-10T01:49:28Z] <Reedy> creating wbc_entity_usage on foundationwiki - T321967

@Silvan_WMDE - so who can I beg at WMDE to review and give input on this change? :)

Varnent updated the task description. (Show Details)
Varnent updated the task description. (Show Details)

@Silvan_WMDE - so who can I beg at WMDE to review and give input on this change? :)

It'd be me who needs to give the ok.

Can you clarify what you want to do please? The descirption isn't entirely clear to me. And that would determine what needs configuring where etc.

@Silvan_WMDE - so who can I beg at WMDE to review and give input on this change? :)

It'd be me who needs to give the ok.

Can you clarify what you want to do please? The descirption isn't entirely clear to me. And that would determine what needs configuring where etc.

@Lydia_Pintscher - wonderful! Thank you!

Essentially, we would like to have ability to more easily utilize content from Wikidata within content on Foundation Governance Wiki (foundation.wikimedia.org - formerly Foundation Wiki).

Two examples that have already come up are utilizing some templates now being used on Meta-Wiki to help reduce workloads for translators:

When I attempt to set them up on Foundation Governance Wiki - I appear to get an error that as I understand it relates to needing Wikibase:

The specific error: "Lua error in Module:Wikidata_label at line 69: attempt to index field 'wikibase' (a nil value)."
Related module: https://foundation.wikimedia.org/wiki/Module:Wikidata_label
It seems to be calling to Wikibase - which is not installed on that wiki: https://foundation.wikimedia.org/wiki/Special:Version

This process is one that has not been handled by the current wikidata team in quite some time. As such, mob programming should occur with @ItamarWMDE and myself included in the mob. This is for https://phabricator.wikimedia.org/T321967 and https://phabricator.wikimedia.org/T171140

Lydia_Pintscher renamed this task from Enable Wikibase on Wikimedia Foundation Governance Wiki to Enable Wikibase client on Wikimedia Foundation Governance Wiki.Jun 28 2023, 9:02 AM

Sprint Planning Notes:

  • This task can only be performed by engineers with restricted or deployment access to production machines
  • If an engineer that has done this before picks it up, please make sure to pull both an another engineer with sufficiant access rights to do so (that has not done it before) and an engineer that doesn't necessarily have access rights, to promote knowledge sharing
  • Please update the instructions on Wikitech if any of the steps are incorrect or more information is discovered

Notes from task breakdown:

  • Follow the wikitech documentation linked in the task description
  • We can probably rebase and, if necessary, update the Gerrit change already attached to this task

The attached Gerrit change adds foundationwiki to wmgWikibaseAllowDataAccessInUserLanguage; I’m guessing this is acceptable because the {{int:lang}} hack (known from e.g. Commons) also seems to be set up there (MediaWiki:Lang, MediaWiki:Lang/de etc.), so I hope the parser cache is also being split by user language (I actually have no idea which config setting controls that).

(outreachwiki also seems to have that set up, so maybe it should be in wmgWikibaseAllowDataAccessInUserLanguage too. We didn’t do it in T171140 because nobody asked for it, I suppose.)

Change 850547 merged by jenkins-bot:

[operations/mediawiki-config@master] foundationwiki: Enable WikibaseClient

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

Mentioned in SAL (#wikimedia-operations) [2023-07-06T11:16:03Z] <lucaswerkmeister-wmde@deploy1002> Started scap: Backport for [[gerrit:850547|foundationwiki: Enable WikibaseClient (T321967)]]

Mentioned in SAL (#wikimedia-operations) [2023-07-06T11:17:23Z] <lucaswerkmeister-wmde@deploy1002> varnent and lucaswerkmeister-wmde: Backport for [[gerrit:850547|foundationwiki: Enable WikibaseClient (T321967)]] synced to the testservers: mwdebug2002.codfw.wmnet, mwdebug2001.codfw.wmnet, mwdebug1001.eqiad.wmnet, mwdebug1002.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-07-06T11:25:02Z] <lucaswerkmeister-wmde@deploy1002> Finished scap: Backport for [[gerrit:850547|foundationwiki: Enable WikibaseClient (T321967)]] (duration: 08m 58s)

Look great, validated again everything works. Thank you @Lucas_Werkmeister_WMDE

ItamarWMDE claimed this task.

Oh, I didn’t realize this was still open – someone actually found an issue with it: T342590: Missing i18n message wikibase-otherprojects-foundation