As identified in T246945#6181774, it would be helpful to have a wiki on the beta cluster available for testing the API Portal configuration. This includes proving that the use of $wgNamespaceProtection and $wgGroupPermissions (documented at T249834 and Setting up custom namespaces with restricted write access) are not in conflict with using SUL. This will, once T246949 (the security readiness review of Chameleon/Bootstrap) is resolved, also provide a place on the Wikimedia infrastructure for testing associated with T252462 (the performance review of Chameleon/Bootstrap).
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | • eprodromou | T235270 Wikimedia API Gateway | |||
Resolved | apaskulin | T247837 Create API Portal MVP | |||
Resolved | Urbanecm | T246945 New Public Wiki for the API Portal | |||
Resolved | Reedy | T254185 Create new wiki on the beta cluster to test API Portal |
Event Timeline
I am aware of this doc for adding a wiki on beta: https://wikitech.wikimedia.org/wiki/Nova_Resource:Deployment-prep/Add_a_wiki -- I'm not sure how out of date it might be (it was updated in Feb 2020, so that gives me some hope). @Reedy was the last person to add wikis (T246511: Create beta viwiki) judging from that task, the wiki seems to mostly be correct.
Are we targetting api.wikimedia.beta.wmflabs.org in this case?
We can get the the wiki up fairly easily, and then start poking around with config
Change 601808 had a related patch set uploaded (by Reedy; owner: Reedy):
[operations/puppet@production] Add wikimedia server_alias for api.wikimedia
Change 601809 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/services/restbase/deploy@master] Add api.wikimedia.beta.wmflabs.org
Change 601817 had a related patch set uploaded (by Reedy; owner: Reedy):
[operations/mediawiki-config@master] [beta] add apiwiki
James just pointed out that while "api" is not currently a language code, it's certainly possible it might be in future. Certainly any two or three characters potentially fall under this
[19:21:12] <James_F> apa is the code for the Apache macrolanguage cluster.
[19:21:25] <James_F> So it'd be plausible for one of the Apache languages to be granted api in the future.
As such, for the dbname we shouldn't just use apiwiki (to save pain later) as the dbname.
At point of creation, dbname doesn't matter at all, as we can map it to the hostname
This obviously affects T246945 too
As such, wikimediaapiwiki or something is suggested. As long as it's something obvious (ie not labswiki == wikitech), it doesn't matter too much, so definitely not much thought needs to be put into this
We are fine with your choice of dbname. You could also consider 'apiportal', but we are OK with whatever you think is best.
Mentioned in SAL (#wikimedia-releng) [2020-06-02T21:11:34Z] <Reedy> cherry picked https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/601808/ onto deployment-puppetmaster04 T254185
Change 601817 merged by jenkins-bot:
[operations/mediawiki-config@master] [beta] add apiportalwiki
Mentioned in SAL (#wikimedia-releng) [2020-06-02T21:15:58Z] <Reedy> ran mwscript extensions/WikimediaMaintenance/addWiki.php --wiki=aawiki en wikimedia apiportalwiki api.wikimedia.beta.wmflabs.org T254185
Mentioned in SAL (#wikimedia-operations) [2020-06-02T21:17:53Z] <reedy@deploy1001> Synchronized dblists/all-labs.dblist: beta apiportalwiki T254185 (duration: 01m 06s)
Mentioned in SAL (#wikimedia-operations) [2020-06-02T21:19:11Z] <reedy@deploy1001> Synchronized wikiversions-labs.json: beta apiportalwiki T254185 (duration: 01m 05s)
Mentioned in SAL (#wikimedia-operations) [2020-06-02T21:20:36Z] <reedy@deploy1001> Synchronized wmf-config/InitialiseSettings-labs.php: beta apiportalwiki T254185 (duration: 01m 05s)
Mentioned in SAL (#wikimedia-operations) [2020-06-02T21:21:53Z] <reedy@deploy1001> Synchronized wmf-config/config/apiportalwiki.yaml: beta apiportalwiki T254185 (duration: 01m 05s)
Mentioned in SAL (#wikimedia-operations) [2020-06-02T21:23:53Z] <reedy@deploy1001> Synchronized multiversion/MWMultiVersion.php: beta apiportalwiki T254185 (duration: 01m 06s)
Wiki created and working fine - https://api.wikimedia.beta.wmflabs.org/wiki/Main_Page (note https://api.wikimedia.beta.wmflabs.org doesn't work due to caching. That should fix itself)
Permissions and restrictions as per T249834: Configure permissions not done yet, pending some further clarification
Change 601920 had a related patch set uploaded (by Reedy; owner: Reedy):
[operations/mediawiki-config@master] Add apiportalwiki to wgLocalVirtualHosts
Change 601920 merged by jenkins-bot:
[operations/mediawiki-config@master] Add apiportalwiki to wgLocalVirtualHosts
Change 601924 had a related patch set uploaded (by Reedy; owner: Reedy):
[operations/puppet@production] Make api.wikimedia redirect to mobile site
Change 601808 merged by Ema:
[operations/puppet@production] Add wikimedia server_alias for api.wikimedia
Per my comment on T246945, the mobile view in the screenshot works for us. We don't need the site to redirect to m.api.wikimedia.org. Thanks for checking!
Change 601809 merged by Ppchelko:
[mediawiki/services/restbase/deploy@master] Add api.wikimedia.beta.wmflabs.org