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

Precheck for available dependencies during the plugin validation

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0
    • None
    • Administration
    • None

    Description

      During one of many discussions with stronk7 about MDL-49329, we realized that the \core\update\validator class could precheck for the dependencies of the plugin and raise a warning if the installed plugin depends on another plugin that is not available in the plugins directory.

      This is doable. We would need to add the support for parsing the $plugin->dependencies declaration and check for them (somehow) during the validation.

      It does not seem to be a crucial issue as the admin has a chance to cancel the installation/upgrade if they realize the requirements cannot be fulfilled. So leaving this open to see if there is a demand for such pre-checking.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mudrd8mz David Mudrák (@mudrd8mz)
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: