Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64777

Allow default models to be restored

    XMLWordPrintable

    Details

      Description

      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:

      1. Add a 'restore default model' button that allows users to restore a model with its default setup.
      2. To block some models from being deleted by users
      3. 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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 45 minutes
                  2h 45m