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

Precheck for available dependencies during the plugin validation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None

      Description

      During one of many discussions with Eloy Lafuente (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

              Assignee:
              Unassigned
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: