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

Add option to show only contributed plugins in uninstall script (backport of MDL-69260)

XMLWordPrintable

    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • Hide

      Requirements

      • Ability to install an additional plugin and execute CLI scripts in the Moodle installation.
      1. Log in as admin.
      2. Go to > Site administration > Plugins > Install plugins
      3. Install some additional plugin into your Moodle installation
      4. Execute the following CLI command

        php admin/cli/uninstall_plugins.php -h
        

      5. Check that the information about the --show-contrib argument is displayed
      6. Execute the following CLI command

        php admin/cli/uninstall_plugins.php --show-all
        

      7. Execute the following CLI command
      8. Check that the list of all installed plugins (the core one and the additional ones) is displayed
      9. Execute the following CLI command

        php admin/cli/uninstall_plugins.php --show-contrib
        

      10. Check that only the additional (non-standard) plugins are displayed this time.
      Show
      Requirements Ability to install an additional plugin and execute CLI scripts in the Moodle installation. Log in as admin. Go to > Site administration > Plugins > Install plugins Install some additional plugin into your Moodle installation Execute the following CLI command php admin/cli/uninstall_plugins.php -h Check that the information about the --show-contrib argument is displayed Execute the following CLI command php admin/cli/uninstall_plugins.php --show-all Execute the following CLI command Check that the list of all installed plugins (the core one and the additional ones) is displayed Execute the following CLI command php admin/cli/uninstall_plugins.php --show-contrib Check that only the additional (non-standard) plugins are displayed this time.

      Backport MDL-69260

      This will add a new option to the uninstall_plugins.php script located in admin/cli.

      • --show-contrib will display all installed third party plugins

      Based on the idea of my contributed plugin https://moodle.org/plugins/local_pluginsfetcher, this would help users to get only the contributed plugins. This data can then be used for example to parse the list to the .git/info/exclude file or somewhere else. 

            pead Adrian Perez
            pead Adrian Perez
            Paul Holden Paul Holden
            Adrian Greeve Adrian Greeve
            Janelle Barcega Janelle Barcega
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h

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