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

Implement new admin tool for installing add-ons

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 2.5
    • Future Dev
    • Administration
    • MOODLE_25_STABLE
    • MDL-38509-tool-installaddon
    • 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.

      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)

        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

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

              Created:
              Updated:
              Resolved:

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