-
New Feature
-
Resolution: Fixed
-
Major
-
3.7
-
MOODLE_37_STABLE
-
MOODLE_37_STABLE
-
MDL-64777-master-modelsrestore -
With MDL-60944 we allow users to create, delete, import and export models. Each moodle component can add models and these models will be added on install or upgrade. If we allow users to delete models we should also allow them to restore the default models. We have different options:
- Add a 'restore default model' button that allows users to restore a model with its default setup.
- To block some models from being deleted by users
- A combination of the two options above
I would vote for #3 although it is a bit of extra work although there is something we should clarify before deciding which option is the best: The API was designed considering models to be something similar to what scheduled tasks are. Moodle components can rely on them being available, there is no option to disable analytics models in general. Analytics models is a core API moodle components use so it is always up to the component to use analytics or not. Some people would prefer to disable analytics completely (https://moodle.org/mod/forum/discuss.php?d=366393) so we should decide if we want to stick to this premise or not.
- If we do I would vote for #1 or #3
- If we do not I would vote for #2 or #3
This issue is related to MDL-61667 as moodle components need to specify their default models somehow. They are currently adding models through install.php
- has a non-specific relationship to
-
MDL-61043 Provide a more consistent and better way of selecting and deselecting all items in a list
- Closed