Page MenuHomePhabricator

Simplify static Restbase json spec file configuration
Closed, ResolvedPublic2 Estimated Story Points

Description

Follow up cleanup for T396807.

We should remove references to www.wikimedia.org (which does not actually have APIs and has special case config). In deployment-charts, rest-gateway maps (www\.)?wikimedia\.org/v1/ to www.wikimedia.org/api/restbase_specs/rest_v1-wikimedia.json, which lies in docroot/wwwportal rather than docroot/standard-docroot with the rest of the spec files. We should:

  • Change wgRestSandboxSpecs to use https://wikimedia.org/api/rest_v1/?spec
  • Copy docroot/wwwportal/api/restbase_specs/rest_v1-wikimedia.json to docroot/standard-docroot/api/restbase_specs/rest_v1-wikimedia.json with the other json files.
  • Simplify the spec-json-wikimedia route in rest-gateway to remove the www.wikimedia.org case and set "to" to meta.wikimedia.org
  • Remove docroot/wwwportal/api/restbase_specs/rest_v1-wikimedia.json

Event Timeline

Change #1224228 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):

[operations/mediawiki-config@master] Copy rest_v1-wikimedia.json to standard-docroot

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

Change #1224253 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):

[operations/mediawiki-config@master] Switch math sandbox specs to plain wikimedia.org

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

Change #1242576 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):

[operations/deployment-charts@master] [DNM] Simplify spec-json-wikimedia route and use meta.wikimedia.org

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

Change #1224253 merged by jenkins-bot:

[operations/mediawiki-config@master] Switch math sandbox specs to plain wikimedia.org

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

Change #1224228 merged by jenkins-bot:

[operations/mediawiki-config@master] Copy rest_v1-wikimedia.json to standard-docroot

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

Mentioned in SAL (#wikimedia-operations) [2026-02-24T21:16:23Z] <aaron@deploy2002> Started scap sync-world: Backport for [[gerrit:1224253|Switch math sandbox specs to plain wikimedia.org (T418188)]], [[gerrit:1224228|Copy rest_v1-wikimedia.json to standard-docroot (T418188)]]

Mentioned in SAL (#wikimedia-operations) [2026-02-24T21:19:03Z] <aaron@deploy2002> aaron: Backport for [[gerrit:1224253|Switch math sandbox specs to plain wikimedia.org (T418188)]], [[gerrit:1224228|Copy rest_v1-wikimedia.json to standard-docroot (T418188)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-02-24T21:23:43Z] <aaron@deploy2002> Finished scap sync-world: Backport for [[gerrit:1224253|Switch math sandbox specs to plain wikimedia.org (T418188)]], [[gerrit:1224228|Copy rest_v1-wikimedia.json to standard-docroot (T418188)]] (duration: 07m 20s)

aaron triaged this task as Medium priority.Feb 24 2026, 10:56 PM
aaron set the point value for this task to 2.

Change #1242576 merged by jenkins-bot:

[operations/deployment-charts@master] Simplify spec-json-wikimedia route and use meta.wikimedia.org

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

Change #1242576 merged by jenkins-bot:

[operations/deployment-charts@master] Simplify spec-json-wikimedia route and use meta.wikimedia.org

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

Deployed this morning

Change #1249363 had a related patch set uploaded (by Aaron Schulz; author: Aaron Schulz):

[operations/mediawiki-config@master] Remove redundant math spec file from wwwportal

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

Change #1249363 merged by jenkins-bot:

[operations/mediawiki-config@master] Remove redundant math spec file from wwwportal

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

Mentioned in SAL (#wikimedia-operations) [2026-03-09T20:06:19Z] <aaron@deploy2002> Started scap sync-world: Backport for [[gerrit:1249363|Remove redundant math spec file from wwwportal (T418188)]]

Mentioned in SAL (#wikimedia-operations) [2026-03-09T20:08:11Z] <aaron@deploy2002> aaron: Backport for [[gerrit:1249363|Remove redundant math spec file from wwwportal (T418188)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-03-09T20:13:15Z] <aaron@deploy2002> Finished scap sync-world: Backport for [[gerrit:1249363|Remove redundant math spec file from wwwportal (T418188)]] (duration: 06m 56s)