Page MenuHomePhabricator

configure Wikibase REST API on Wikidata
Closed, ResolvedPublic2 Estimated Story Points

Description

As a programmer I want to access Wikidata's data via a REST API in order to build applications on top of that data.

Problem:
We have the Wikibase REST API developed now. We need to actually enable it on Wikidata.

Documentation is at https://doc.wikimedia.org/Wikibase/master/php/repo_rest-api_README.html

Acceptance criteria:

  • Wikibase REST API is enabled on test Wikidata (January 18th)
  • Stage gate meeting on january 23/24 to get the greenlight
  • T316354 closed?
  • Wikibase REST API is enabled on Wikidata (January 25th)

Event Timeline

Lydia_Pintscher changed the task status from Open to Stalled.Dec 13 2022, 9:41 AM
Lydia_Pintscher updated the task description. (Show Details)

Marking this as stalled until we are ready to flip the switch.

Lydia_Pintscher updated the task description. (Show Details)
Lydia_Pintscher set Due Date to Jan 24 2023, 1:00 PM.
karapayneWMDE set the point value for this task to 2.
karapayneWMDE moved this task from Product Backlog to Sprint-∞ on the Wikidata Dev Team board.

When deploying, I think, we should be able to verify that the rest-api works on the maintenance server by pasting the following into the console and looking at the output:

await fetch('/w/rest.php/wikibase/v0/entities/items/Q12345').then( r=>r.json() )

Task Breakdown Notes:

  • Change some configuration in operations/mediawiki-config to enable The REST API on Wikidata (setting wmgWikibaseRestApiEnabled to true for testwikidata)
  • We want to ensure team members are available for the deployment of this.

Change 878927 had a related patch set uploaded (by Michael Große; author: Michael Große):

[operations/mediawiki-config@master] Enable the API on test-wikidata

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

Lydia_Pintscher changed the task status from Stalled to Open.Jan 17 2023, 4:39 PM
Lydia_Pintscher updated the task description. (Show Details)

Moving the deployment to test wikidata to tomorrow because we can't deploy today. There is an unrelated production incident that's blocking everything.

Change 878927 merged by jenkins-bot:

[operations/mediawiki-config@master] Enable the REST API on test-wikidata

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

Mentioned in SAL (#wikimedia-operations) [2023-01-18T18:12:15Z] <lucaswerkmeister-wmde@deploy1002> Started scap: Backport for [[gerrit:878927|Enable the REST API on test-wikidata (T324999)]]

Mentioned in SAL (#wikimedia-operations) [2023-01-18T18:14:07Z] <lucaswerkmeister-wmde@deploy1002> migr and lucaswerkmeister-wmde: Backport for [[gerrit:878927|Enable the REST API on test-wikidata (T324999)]] synced to the testservers: mwdebug1001.eqiad.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug2001.codfw.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-01-18T18:21:54Z] <lucaswerkmeister-wmde@deploy1002> Finished scap: Backport for [[gerrit:878927|Enable the REST API on test-wikidata (T324999)]] (duration: 09m 38s)

https://phabricator.wikimedia.org/T327154 - will be completed by approx. end of day
https://phabricator.wikimedia.org/T316354 - final checkoffs to be done but is otherwise completed

Change 882615 had a related patch set uploaded (by Michael Große; author: Michael Große):

[operations/mediawiki-config@master] Enable the Wikibase REST API on Wikidata

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

Scheduled for deployment today during the 14:00 UTC window.

Change 882615 merged by jenkins-bot:

[operations/mediawiki-config@master] Enable the Wikibase REST API on Wikidata

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

Mentioned in SAL (#wikimedia-operations) [2023-01-25T14:55:27Z] <urbanecm@deploy1002> Started scap: Backport for [[gerrit:882615|Enable the Wikibase REST API on Wikidata (T324999)]]

Mentioned in SAL (#wikimedia-operations) [2023-01-25T14:57:22Z] <urbanecm@deploy1002> urbanecm and migr: Backport for [[gerrit:882615|Enable the Wikibase REST API on Wikidata (T324999)]] synced to the testservers: mwdebug1001.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-01-25T15:04:11Z] <urbanecm@deploy1002> Finished scap: Backport for [[gerrit:882615|Enable the Wikibase REST API on Wikidata (T324999)]] (duration: 08m 43s)