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

A way for plugins to declare that they depend on other plugins

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.2
    • Component/s: Installation
    • Labels:
    • Testing Instructions:
      Hide

      For all these tests, repeat with CLI upgrade and upgrade through the web-browser.

      1. Upgrade your Moodle. Make sure the dependency info appears on the plugin-check page, and that then the upgrade works.

      2. Test a clean install to ensure there are no regressions.

      3. Test an upgrade from a Moodle 2.1 install to make sure there are no regressions.

      4. Check that admin/plugins.php and admin/environment.php pages still work.

      5. Edit some version.php files to test upgrades with problems. For example,
      a. try making mod/forum require a non-existant filter_frog, or something
      b. or make a plugin depend on a Moodle version or another plugin version in the future.
      Make sure that the plugin-check page shows the problem and refuses to let you upgrade.

      Show
      For all these tests, repeat with CLI upgrade and upgrade through the web-browser. 1. Upgrade your Moodle. Make sure the dependency info appears on the plugin-check page, and that then the upgrade works. 2. Test a clean install to ensure there are no regressions. 3. Test an upgrade from a Moodle 2.1 install to make sure there are no regressions. 4. Check that admin/plugins.php and admin/environment.php pages still work. 5. Edit some version.php files to test upgrades with problems. For example, a. try making mod/forum require a non-existant filter_frog, or something b. or make a plugin depend on a Moodle version or another plugin version in the future. Make sure that the plugin-check page shows the problem and refuses to let you upgrade.
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      The plan is to add a new option in version.php:

      $plugin->dependencies = array(
          'mod_quiz' => 2011090100,
          'qtype_pmatch' => ANY_VERSION,
      );
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    5/Dec/11