Page MenuHomePhabricator

Add READONLY ($wgReadOnly) mode for wikis
Closed, ResolvedPublic

Description

We suspect we'll need this feature for importing and migrating wikis and it will also make the process of updating wikis more assured.

A possible implementation of this is adding a flag to wiki entities in the platofrm api and then exposing this using https://github.com/wbstack/api/blob/main/app/Http/Controllers/WikiSettingController.php. This could then be acted upon by tweaks to the mediawiki images

See: https://www.mediawiki.org/wiki/Manual:$wgReadOnly

Acceptance Criteria:

  • It should be possible, via the platform to place wikis into readonly mode
  • it should be possible both on wikibase.dev, wikibase.cloud, but also on wbstack.com since we'll need this for the migration

Event Timeline

chrome_Dez2AXTIOH.png (633×2 px, 138 KB)

API part: https://github.com/wbstack/api/pull/301
MW part: https://github.com/wbstack/mediawiki/pull/197

You can try this out in the API using

php artisan wbs-wiki:setSetting domain wiki1.wbaas.localhost wgReadOnly "Message here"

or similar

php artisan wbs-wiki:setSetting domain wiki1.wbaas.localhost wgReadOnly

to allow writes again

Addshore triaged this task as Medium priority.Jan 13 2022, 12:27 PM
Tarrow removed Tarrow as the assignee of this task.
Addshore moved this task from Done to To Release on the Wikibase Cloud (Launch Sprint 1 (2022)) board.
Addshore added a subscriber: Ollie.Shotton_WMDE.

Mediawiki done, still the API to release!