Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable setting a read only setting for a wiki #301

Merged
merged 1 commit into from
Jan 10, 2022
Merged

Conversation

addshore
Copy link
Collaborator

@addshore addshore commented Jan 7, 2022

This also allows the set setting command for a wiki
to be able to set it to blank / delete the entry.
This is ONLY setable internally by the platform, and not via the API.

The command would be:
php artisan wbs-wiki:setSetting

And you can use something like the following to set readonly:
domain wiki1.wbaas.localhost wgReadOnly "Message here"

Or this to unset:
domain wiki1.wbaas.localhost wgReadOnly

This is for https://phabricator.wikimedia.org/T298759
and also has a MediaWiki PR for the config
wbstack/mediawiki#197

This also allows the set setting command for a wiki
to be able to set it to blank / delete the entry.
This is ONLY setable internally by the platform, and not via the API.

The command would be:
php artisan wbs-wiki:setSetting

And you can use something like the following to set readonly:
domain wiki1.wbaas.localhost wgReadOnly "Message here"

Or this to unset:
domain wiki1.wbaas.localhost wgReadOnly

This is for https://phabricator.wikimedia.org/T298759
and also has a MediaWiki PR for the config
addshore added a commit to wbstack/mediawiki that referenced this pull request Jan 7, 2022
For https://phabricator.wikimedia.org/T298759
The API part of this is:
wbstack/api#301

The value of this setting will be a string or null.
Copy link
Contributor

@jakobw jakobw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works beautifully 🎉

Screenshot from 2022-01-10 11-43-19

@jakobw jakobw merged commit b5b7e47 into main Jan 10, 2022
@jakobw jakobw deleted the mediawiki-readonly branch January 10, 2022 10:52
jakobw pushed a commit to wbstack/mediawiki that referenced this pull request Jan 10, 2022
For https://phabricator.wikimedia.org/T298759
The API part of this is:
wbstack/api#301

The value of this setting will be a string or null.
addshore added a commit that referenced this pull request Jan 17, 2022
This also allows the set setting command for a wiki
to be able to set it to blank / delete the entry.
This is ONLY setable internally by the platform, and not via the API.

The command would be:
php artisan wbs-wiki:setSetting

And you can use something like the following to set readonly:
domain wiki1.wbaas.localhost wgReadOnly "Message here"

Or this to unset:
domain wiki1.wbaas.localhost wgReadOnly

This is for https://phabricator.wikimedia.org/T298759
and also has a MediaWiki PR for the config
addshore added a commit to wbstack/mediawiki that referenced this pull request Jan 17, 2022
For https://phabricator.wikimedia.org/T298759
The API part of this is:
wbstack/api#301

The value of this setting will be a string or null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants