-
New Feature
-
Resolution: Fixed
-
Blocker
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-72112-master -
-
Moppies Kanban
As an admin
I want to load administration presets
So I can easily switch between different configurations
This feature is implemented by the third-party plugin "Admin presets": https://moodle.org/plugins/block_admin_presets, created by David Monllaó and maintained by developers from Pimenko.
This issue is about adapting this third-plugin for getting it integrated into Moodle LMS.
Acceptance criteria:
- The block should be converted from a block to an admin tool.
- A link "Site admin presets" (pointing to 3rd-party plugin main page) should be displayed in the Site administration.
- The admin tool should follow the Moodle coding style and policy rules. For instance, these are some of the things to review:
- Some classes should have a proper namespace (for instance, the ones in the lib folder). They should also probably be moved to the classes folder.
- The “Auto exclude sensitive settings” setting should be checked by default.
- The tool_admin_presets setting should be reviewed to confirm it includes all the sensitive settings that have been added recently.
- Presets should also include plugins visibility, let admins export/preview/load the list of plugins and their visibility.
- Moodle LMS should include, by default, 2 different flavours in the Admin presets tool: one for "Starter" and another for "Full" --> preinstalled_adminpresets.png:
- "Starter" will disable most of the settings and plugins in order to make it easier for users to find the most common features.
- "Full" will include settings and plugins configuration after installing a vanilla Moodle.
- For new sites, we should consider defaulting to the 'simplified' Moodle configuration. We will need some sort of notification for admins (could even be a simple msg) to let them know this and that they can 'unlock' the full feature set (with link to setting).
Technical information
- The <PLUGINS> element will be added to the XML file following this format:
<?xml version="1.0" encoding="UTF-8"?> |
<PRESET>
|
<NAME>Demo preset file</NAME>
|
<COMMENTS></COMMENTS>
|
<PRESET_DATE>1625551825</PRESET_DATE> |
<SITE_URL>http://localhost/m/stable_master-min</SITE_URL> |
<AUTHOR>Admin User</AUTHOR>
|
<MOODLE_VERSION>2021070100</MOODLE_VERSION> |
<MOODLE_RELEASE>4.0dev (Build: 20210701)</MOODLE_RELEASE> |
<ADMIN_SETTINGS>
|
[...]
|
<ENROL_MNET>
|
<SETTINGS>
|
<ROLEID roleid_adv="1">5</ROLEID> |
</SETTINGS>
|
</ENROL_MNET>
|
[...]
|
</ADMIN_SETTINGS>
|
<PLUGINS>
|
<ANTIVIRUS>
|
<CLAMAV>0</CLAMAV> |
</ANTIVIRUS>
|
<ASSIGNFEEDBACK>
|
<COMMENTS>1</COMMENTS> |
<EDITPDF>0</EDITPDF> |
<FILE>1</FILE> |
<OFFLINE>0</OFFLINE> |
</ASSIGNFEEDBACK>
|
[...]
|
<BLOCK>
|
<ACCESSREVIEW>0</ACCESSREVIEW> |
<ACTIVITY_MODULES>0</ACTIVITY_MODULES> |
[...]
|
</BLOCK>
|
<MOD>
|
<ASSIGN>1</ASSIGN> |
<ASSIGNMENT>0</ASSIGNMENT> |
<CHAT>0</CHAT> |
</MOD>
|
</PLUGINS>
|
</PRESET>
|
- The following tables should be added to store the plugins data:
-
- tool_admin_presets_plug
- tool_admin_presets_app_plug
- blocks
-
MDL-72113 Add feature to import/export plugins visibility from Admin presets tool
- Closed
-
MDL-72759 Add tree to site admin presets tool to let admins select settings and plugins to be exported or applied
- Open
-
MDL-72768 Add 'Site admin presets' new tool information at notifications page
- Open
-
MDL-73145 Add a $CFG setting to define the preset to be installed
- Closed
-
MDL-73248 Starter site admin preset improvements
- Closed
- has a non-specific relationship to
-
MDL-75984 Random "Core and custom preset settings can be downloaded" Behat failure
- Closed
-
MDL-77079 Random "Export settings with an existing name" behat failure
- Closed
- is blocked by
-
MDL-72907 Fix repository::enable_plugin function to be able to enable repository plugins
- Closed
-
MDL-72720 Add generic enable_plugin() method in plugininfo
- Closed
- Testing discovered
-
MDL-60270 Vertical scroll when expanding latest analytics model actions dropdown
- Closed