Page MenuHomeMiraheze

Add "restore defaults"
Closed, ResolvedPublic

Description

Special:ManageWiki/permissions/user needs a "reset defaults" button for each section. (Or call it Restore defaults.)
After clicking it only the original default boxes should become checked, just like they were on day 1.
The user could then hit the submit button if he is happy with the selections.
It should be clear that hitting "reset (or restore) defaults" only changes what he sees, not other sections of the form.

Reason: it is easy for users to mess up their wiki and then have no reference as to what the original working settings were.

In fact perhaps each section of each ManageWiki page needs a "restore defaults" button.

Event Timeline

Jidanni triaged this task as Low priority.Nov 16 2019, 04:15
Jidanni created this task.

By the way, I can't remember what the defaults are too. Is there a list of them somewhere? Thanks.
Hmmm, OK I will look in
https://github.com/miraheze/ManageWiki/blob/master/maintenance/populateGroupPermissionsWithDefaults.php

OK, I found checking Meta's https://meta.miraheze.org/wiki/Special:ManageWiki/permissions etc. provides a reasonable view of what probably are the defaults.

Indeed on https://github.com/miraheze/ManageWiki/blob/master/maintenance/populateGroupPermissionsWithDefaults.php one finds

$this->addOption( 'overwrite', 'This overwrites perms to reset them back to the default.', false, false );

so maybe at one time in the past there was a way to restore defaults.

Implementing this is difficult as we have no defaults for settings or extensions known. For permissions and namespaces, these would be hard resets - the software doesn't provide the ability to update this via JS in the way described.

Jidanni claimed this task.

(A workaround for users who have messed up a setting or two would be: find a new (T5351) wiki that nobody had customized yet. Then check Special:ManageWiki/permissions etc. there to see what the defaults are.)