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

Add feature to import/export plugins visibility from Admin presets tool

XMLWordPrintable

      As an admin
      I want to import/export plugins visibility
      So I can easily switch between different configurations

       

      Acceptance criteria

      • A new section, “Modules”, should be added to the form to let admins export/preview/load the list of plugins and their visibility.
      • Admins should be able to choose the plugins they want to import/export plugins visibility (the similar as they can do right now with "Admin presets" settings).

       

      Technical information

      • The <PLUGINS> element will be added to the XML file following this format:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <PRESET>
       <NAME>Demo preset file</NAME>
       <COMMENTS></COMMENTS>
       <PRESET_DATE>1625551825</PRESET_DATE>
       <SITE_URL>http://localhost/m/stable_master-min</SITE_URL>
       <AUTHOR>Admin User</AUTHOR>
       <MOODLE_VERSION>2021070100</MOODLE_VERSION>
       <MOODLE_RELEASE>4.0dev (Build: 20210701)</MOODLE_RELEASE>
       <ADMIN_SETTINGS>
       [...]
       <ENROL_MNET>
       <SETTINGS>
       <ROLEID roleid_adv="1">5</ROLEID>
       </SETTINGS>
       </ENROL_MNET>
       [...]
       </ADMIN_SETTINGS>
      <PLUGINS>
       <ANTIVIRUS>
       <CLAMAV>0</CLAMAV>
       </ANTIVIRUS>
       <ASSIGNFEEDBACK>
       <COMMENTS>1</COMMENTS>
       <EDITPDF>0</EDITPDF>
       <FILE>1</FILE>
       <OFFLINE>0</OFFLINE>
       </ASSIGNFEEDBACK>
       [...]
       <BLOCK>
       <ACCESSREVIEW>0</ACCESSREVIEW>
       <ACTIVITY_MODULES>0</ACTIVITY_MODULES>
       [...]
       </BLOCK>
       <MOD>
       <ASSIGN>1</ASSIGN>
       <ASSIGNMENT>0</ASSIGNMENT>
       <CHAT>0</CHAT>
       </MOD>
       </PLUGINS>
      </PRESET>
      

       

      • The following tables should be added to store the plugins data:
        • tool_admin_presets_plug
        • tool_admin_presets_app_plug

       

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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