Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-18925 Moodle 4.5 QA
  3. MDLQA-19097

CLONE - An administrator can bulk create and delete courses via csv

XMLWordPrintable

      Prerequisites

      • As admin visit Site administration > Manage courses and categories and create two new categories.
        • Take note of the id for each category, to find out click in the category name, the id will be displayed in the url: ?categoryid=X
      • A CSV file with fields: shortname, fullname, summary, category (containing category ID).
        • A sample CSV file QACourseUploadFile.csv is attached for testing.
        • Edit the CSV file and update the category value for each row with the ids you have noted above.

      Testing upload of courses

      1. As admin navigate to Site administration > Courses > Upload courses.
      2. Upload the CSV file, leaving all other settings as default and click the Preview button.
      3. Under "Default course values" section set the format to "Social" format and finish uploading the courses.
      4. Verify the message says the correct number of courses were created and click "Continue".
      5. Navigate to Site administration > Courses > Manage courses and categories, click on each category and verify the courses have been added to the correct category.
      6. For each course verify the description is correct and the format has been set to "Social".

      Testing upload of courses with delete option

      1. Edit the CSV file and include the "delete" column and enter 1 next to one course of each category.
      2. Upload the updated CSV file but this time changing the import options to:
        • Upload mode field to 'Only update exisiting courses'
        • Update mode field to 'Update with CSV data only'
        • Allow deletes field to 'Yes'
      3. Proceed with the upload and verify in the "Upload courses results" that two of the courses have been deleted.

        1. 02-09-2024_09-05-33.png
          02-09-2024_09-05-33.png
          117 kB
        2. 02-09-2024_09-05-45.png
          02-09-2024_09-05-45.png
          102 kB
        3. 02-09-2024_09-06-28.png
          02-09-2024_09-06-28.png
          158 kB
        4. 02-09-2024_09-06-37.png
          02-09-2024_09-06-37.png
          135 kB
        5. 02-09-2024_09-07-33.png
          02-09-2024_09-07-33.png
          102 kB
        6. 02-09-2024_09-09-07.png
          02-09-2024_09-09-07.png
          109 kB
        7. 02-09-2024_09-09-28.png
          02-09-2024_09-09-28.png
          81 kB
        8. 02-09-2024_09-10-30.png
          02-09-2024_09-10-30.png
          54 kB
        9. 02-09-2024_09-15-41.png
          02-09-2024_09-15-41.png
          100 kB
        10. 02-09-2024_09-16-10.png
          02-09-2024_09-16-10.png
          108 kB
        11. 02-09-2024_09-19-26.png
          02-09-2024_09-19-26.png
          111 kB
        12. 02-09-2024_09-19-38.png
          02-09-2024_09-19-38.png
          109 kB
        13. 02-09-2024_09-19-56.png
          02-09-2024_09-19-56.png
          80 kB
        14. 02-09-2024_09-20-13.png
          02-09-2024_09-20-13.png
          111 kB
        15. 03-09-2024_08-43-55.png
          03-09-2024_08-43-55.png
          42 kB
        16. QACourseUploadFile.csv
          0.2 kB

            dag Dag Klimas
            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.