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

Add "Export" preset feature to presets list

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_401_STABLE
    • MDL-75186-master
    • Hide

      Setup

      1. Login as admin
      2. Create a course.
      3. Add a database activity (with the default configuration).
      4. Create one field (it can be from any type and have any name).
      5. Access the database activity and go to the "Fields" tab.
      6. Click the "Save as preset" button.
      7. Give a valid name and a description and save the new preset.
      8. Click the "Save as preset" button again.
      9. Give it a valid name (different from the previous one), leave the description empty and save the new preset.

      Testing scenario 1. Export saved preset with description

      1. Access the database activity and go to the "Presets" tab.
      2. Open the Action menu for the Saved preset with description and select "Export".
      3. Check a .zip file is downloaded.
      4. Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...). 
      5. Open preset.xml.
      6. Check it contains a description element which should contain the preset description.

      Testing scenario 2. Export saved preset without description

      1. Access the database activity and go to the "Presets" tab.
      2. Open the Action menu for the Saved preset without description and select "Export".
      3. Check a .zip file is downloaded.
      4. Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...). 
      5. Open preset.xml.
      6. Check it contains a description element (which should be empty).

      Testing scenario 3. Export preset keeps working as expected

      1. Access the database activity and go to the "Templates" tab.
      2. Click the "Export preset" button.
      3. Check a .zip file is downloaded.
      4. Extract the .zip file and check it contains several files (a few template HTMLs, CSS, JS...). 
      5. Open preset.xml.
      6. Check it contains a description element (which should be empty).
      Show
      Setup Login as admin Create a course. Add a database activity (with the default configuration). Create one field (it can be from any type and have any name). Access the database activity and go to the "Fields" tab. Click the "Save as preset" button. Give a valid name and a description and save the new preset. Click the "Save as preset" button again. Give it a valid name (different from the previous one), leave the description empty and save the new preset. Testing scenario 1. Export saved preset with description Access the database activity and go to the "Presets" tab. Open the Action menu for the Saved preset with description and select "Export". Check  a .zip file is downloaded. Extract the .zip file and  check it contains several files (a few template HTMLs, CSS, JS...).  Open preset.xml. Check it contains a description element which should contain the preset description. Testing scenario 2. Export saved preset without description Access the database activity and go to the "Presets" tab. Open the Action menu for the Saved preset without description and select "Export". Check  a .zip file is downloaded. Extract the .zip file and  check it contains several files (a few template HTMLs, CSS, JS...).  Open preset.xml. Check  it contains a description element (which should be empty). Testing scenario 3. Export preset keeps working as expected Access the database activity and go to the "Templates" tab. Click the "Export preset" button. Check  a .zip file is downloaded. Extract the .zip file and  check it contains several files (a few template HTMLs, CSS, JS...).  Open preset.xml. Check  it contains a description element (which should be empty).
    • 2
    • HQ Sprint 0.2 Database

      A new option to Export presets from the presets list page has been added to the Figma prototype:

      Currently, only the current activity configuration can be exported as a preset (so presets can't be exported).

      This issue is to add support for the "Export" preset feature and should implement the "Export" action to any of the saved presets in the list (plugin presets will be ignored, at least for now).

        1. 1_MDL-75186_master.png
          1_MDL-75186_master.png
          51 kB
        2. 2_MDL-75186_master.png
          2_MDL-75186_master.png
          52 kB
        3. 3_MDL-75186_master.png
          3_MDL-75186_master.png
          55 kB
        4. prototype_export.png
          prototype_export.png
          25 kB

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Raquel Ortega Raquel Ortega
            Amaia Anabitarte Amaia Anabitarte
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 47 minutes
                5h 47m

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