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

Automatic plugin update deployment

XMLWordPrintable

    • MOODLE_23_STABLE
    • MOODLE_24_STABLE
    • MDL-35238-deployment
    • Hide

      Testing difficulty: HARD (requires fake server response)

      1. Upload the attached fake.php into your wwwroot and add the following line into your config.php

        $CFG->alternativeupdateproviderurl = $CFG->wwwroot.'/fake.php';

        This will switch the Available updates notification feature so that it reads data from the file instead of the standard download.moodle.org REST API. You may want to modify the fake.php according the plugin you install in the next step.

      2. Install some outdated version of a plugin. This is tricky because there are no official plugins for 2.4 yet. So we use 2.3 plugins and we prepare the information in fake.php in a way that simulates an update for the 2.4. During the development, the Stamp collection module has been used. The plugin version 2.3.0 has been installed manually and the fake.php provides information about a newer version 2.3.1 available.
      3. There are three places where the new version of the plugin can be installed: 1) from the Plugins overview page, 2) from the Plugins check screen when Moodle itself is about to be upgraded and 3) from the Plugins check screen when some plugin is about to be upgraded (while the Moodle itself not). You may want to test all these three places.
      4. Press the "Check for available updates" button. That will read info from fake.php and should inform you about a new version of the plugin available.
      5. Press "Install this update" button.
      6. Make sure that a new version of the plugin is deployed and can be upgraded.

      Together with this feature, there are small usability improvements at the Plugins overview page. Plugins can be now filtered so you can see eg updateable plugins only etc. You may wish to test these improvements, too.

      Show
      Testing difficulty: HARD (requires fake server response) Upload the attached fake.php into your wwwroot and add the following line into your config.php $CFG->alternativeupdateproviderurl = $CFG->wwwroot.'/fake.php'; This will switch the Available updates notification feature so that it reads data from the file instead of the standard download.moodle.org REST API. You may want to modify the fake.php according the plugin you install in the next step. Install some outdated version of a plugin. This is tricky because there are no official plugins for 2.4 yet. So we use 2.3 plugins and we prepare the information in fake.php in a way that simulates an update for the 2.4. During the development, the Stamp collection module has been used. The plugin version 2.3.0 has been installed manually and the fake.php provides information about a newer version 2.3.1 available. There are three places where the new version of the plugin can be installed: 1) from the Plugins overview page, 2) from the Plugins check screen when Moodle itself is about to be upgraded and 3) from the Plugins check screen when some plugin is about to be upgraded (while the Moodle itself not). You may want to test all these three places. Press the "Check for available updates" button. That will read info from fake.php and should inform you about a new version of the plugin available. Press "Install this update" button. Make sure that a new version of the plugin is deployed and can be upgraded. Together with this feature, there are small usability improvements at the Plugins overview page. Plugins can be now filtered so you can see eg updateable plugins only etc. You may wish to test these improvements, too.

      Since Moodle 2.3, admins are notified of available updates for the contributed plugins installed on their sites. It is now requested that these new plugin versions can be also downloaded and deployed automatically by Moodle itself.

        1. confirmation.png
          39 kB
          David Mudrák (@mudrd8mz)
        2. fake.php
          3 kB
          David Mudrák (@mudrd8mz)
        3. notwritable.png
          28 kB
          David Mudrák (@mudrd8mz)
        4. screenshot-2.png
          47 kB
          David Mudrák (@mudrd8mz)
        5. screenshot-3.png
          27 kB
          David Mudrák (@mudrd8mz)

            mudrd8mz David Mudrák (@mudrd8mz)
            mudrd8mz David Mudrák (@mudrd8mz)
            Aparup Banerjee Aparup Banerjee
            Dan Poltawski Dan Poltawski
            David Monllaó David Monllaó
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

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