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

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

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.2
    • 2.1.1
    • Installation
    • MOODLE_21_STABLE
    • MOODLE_22_STABLE
    • 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.

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

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

            timhunt Tim Hunt
            timhunt Tim Hunt
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.