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

It is not possible to uninstall repositories

XMLWordPrintable

    • Any
    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MDL_45619_m29v5
    • Hide

      Test #1: Uninstalling a repository that uses file references
      1. Create a filesystem repository in the site, course, and user context each containing at least 1 image file.
      2. In a course, create a page resource and add a image from each of the three file system repository instances.
      3. Using a tool like PHPmyadmin, explore the DB and record the IDs of the repository instances (mdl_repository, mdl_repository_instances, mdl_repository_instance_config)
      4. Using a tool like PHPmyadmin, explore the DB and record the IDs of the 3 pictures you added to the page resource (mdl_files_reference)
      6. Navigate to Site Administration > Plugins> plugin overview
      7. Click on the uninstall link
      8. Verify that the plugin is uninstalled successfully (Check to make sure that records have been removed from the database. this can be checked by making sure that the ID's you recorded above are no longer present in the database)
      9. Delete the image files from $CFG->dataroot/Repository.
      10. Navigate back to the course and view the page resource. Make sure that all images are displayed properly.

      Test #2 Uninstalling a third-party repository:
      1. In a course, create a page resource and add a image from the wikimedia repository
      2. Navigate to Site Administration > Plugins> plugin overview
      3. Uninstall the wikimedia repository
      4. Verify that the plugin is uninstalled successfully.
      5. Navigate back to the course and verify that the image is still displayed

      Show
      Test #1: Uninstalling a repository that uses file references 1. Create a filesystem repository in the site, course, and user context each containing at least 1 image file. 2. In a course, create a page resource and add a image from each of the three file system repository instances. 3. Using a tool like PHPmyadmin, explore the DB and record the IDs of the repository instances (mdl_repository, mdl_repository_instances, mdl_repository_instance_config) 4. Using a tool like PHPmyadmin, explore the DB and record the IDs of the 3 pictures you added to the page resource (mdl_files_reference) 6. Navigate to Site Administration > Plugins> plugin overview 7. Click on the uninstall link 8. Verify that the plugin is uninstalled successfully (Check to make sure that records have been removed from the database. this can be checked by making sure that the ID's you recorded above are no longer present in the database) 9. Delete the image files from $CFG->dataroot/Repository. 10. Navigate back to the course and view the page resource. Make sure that all images are displayed properly. Test #2 Uninstalling a third-party repository: 1. In a course, create a page resource and add a image from the wikimedia repository 2. Navigate to Site Administration > Plugins> plugin overview 3. Uninstall the wikimedia repository 4. Verify that the plugin is uninstalled successfully. 5. Navigate back to the course and verify that the image is still displayed

      Repositories cannot be uninstalled from Moodle using the Manage Plugins UI. If you install one from the plugins DB, there is no way to uninstall it.

      To reproduce install any repository plugin (For example https://moodle.org/plugins/view.php?plugin=repository_recordaudio) and then navigate to Site Administration > Plugins> plugin overview and there will not be an uninstall link.

            sbourget Stephen Bourget
            sbourget Stephen Bourget
            John Okely John Okely
            David Monllaó David Monllaó
            Rajesh Taneja Rajesh Taneja
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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