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

Add option to show only contributed plugins in uninstall script

    XMLWordPrintable

    Details

    • Testing Instructions:
      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.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_38_STABLE, MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE
    • Pull from Repository:
    • Pull 3.8 Branch:
    • Pull 3.9 Branch:
    • Pull Master Branch:
      MDL-69260_master

      Description

      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. 

       

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pead Adrian Perez
              Reporter:
              pead Adrian Perez
              Peer reviewer:
              David Mudrák (@mudrd8mz)
              Integrator:
              Jun Pataleta
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/20

                  Time Tracking

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