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

Implement new admin tool for installing add-ons

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Future Dev
    • Fix Version/s: 2.5
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      Testing difficulty: medium (may require shell access to tweak permissions)

      1. TEST: Make sure that the new "Add-on installer" admin tool is installed and available via Site administration ► Plugins ► Install add-ons.
      2. Clicking the "Install add-ons from Moodle plugins directory" does not fully work yet because the server side of that feature is not implemented yet (see 4. below for work around).
      3. TEST: Get some ZIP package from Moodle Plugins directory (download them manually to your computer) and try to install it via the new tool.
      4. TEST: To test the "remote" installation mode, we need to mimic the redirection from Moodle Plugins repository back to our machine. You can use the following script to generate a request that simulates what Moodle plugins directory will do:

      <?php
       
      $moodleurl = 'http://localhost/moodle25'; // Replace with your 2.5dev URL
       
      $request = base64_encode(json_encode(array(
          'name'      => 'Stamp collection',
          'component' => 'mod_stampcoll',
          'version'   => 2012062201,
      )));
       
      echo $moodleurl.'/admin/index.php?installaddonrequest='.rawurlencode($request).PHP_EOL;
      

      The script will generate URL like:

      http://localhost/moodle25/admin/index.php?installaddonrequest=eyJuYW1lIjoiU3RhbXAgY29sbGVjdGlvbiIsImNvbXBvbmVudCI6Im1vZF9zdGFtcGNvbGwiLCJ2ZXJzaW9uIjoyMDEyMDYyMjAxfQ%3D%3D
      

      that should lead to installing the described add-on version.

      Show
      Testing difficulty: medium (may require shell access to tweak permissions) 1. TEST: Make sure that the new "Add-on installer" admin tool is installed and available via Site administration ► Plugins ► Install add-ons. 2. Clicking the "Install add-ons from Moodle plugins directory" does not fully work yet because the server side of that feature is not implemented yet (see 4. below for work around). 3. TEST: Get some ZIP package from Moodle Plugins directory (download them manually to your computer) and try to install it via the new tool. 4. TEST: To test the "remote" installation mode, we need to mimic the redirection from Moodle Plugins repository back to our machine. You can use the following script to generate a request that simulates what Moodle plugins directory will do: <?php   $moodleurl = 'http://localhost/moodle25'; // Replace with your 2.5dev URL   $request = base64_encode(json_encode(array( 'name' => 'Stamp collection', 'component' => 'mod_stampcoll', 'version' => 2012062201, )));   echo $moodleurl.'/admin/index.php?installaddonrequest='.rawurlencode($request).PHP_EOL; The script will generate URL like: http://localhost/moodle25/admin/index.php?installaddonrequest=eyJuYW1lIjoiU3RhbXAgY29sbGVjdGlvbiIsImNvbXBvbmVudCI6Im1vZF9zdGFtcGNvbGwiLCJ2ZXJzaW9uIjoyMDEyMDYyMjAxfQ%3D%3D that should lead to installing the described add-on version.
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-38509-tool-installaddon

      Description

      We will need the admin interface for installing add-ons. The plugins is supposed:

      1. To serve as a departure and arrival point for communication with moodle.org/plugins
      2. To provide a way for installing add-ons from manually uploaded ZIP file.
      3. To perform some ZIP validation checks (similar to what local_plugins does but not to that extend)

        Gliffy Diagrams

          Attachments

          1. remoteconfirm.png
            remoteconfirm.png
            16 kB
          2. ui-01.png
            ui-01.png
            74 kB
          3. validator1.png
            validator1.png
            28 kB
          4. validator2.png
            validator2.png
            22 kB
          5. validator3.png
            validator3.png
            45 kB

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/May/13