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

Add option to show only contributed plugins in uninstall script

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.10
    • 3.8.4, 3.9.1
    • Installation
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_310_STABLE
    • MDL-69260_master
    • Easy
    • 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.

      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
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 40 minutes
                1h 40m

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