Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-18443 Moodle 4.4 QA
  3. MDLQA-18632

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. QACourseUploadFile.txt
          0.2 kB
          Simey Lameze
        2. image-2024-03-18-10-03-16-462.png
          39 kB
          Luiggi Sansonetti
        3. image-2024-03-18-10-07-27-230.png
          22 kB
          Luiggi Sansonetti
        4. image-2024-03-18-10-09-34-822.png
          18 kB
          Luiggi Sansonetti
        5. image-2024-03-18-10-10-31-344.png
          40 kB
          Luiggi Sansonetti
        6. image-2024-03-18-10-11-10-062.png
          27 kB
          Luiggi Sansonetti
        7. image-2024-03-18-10-13-07-723.png
          63 kB
          Luiggi Sansonetti
        8. image-2024-03-18-10-17-15-545.png
          17 kB
          Luiggi Sansonetti
        9. image-2024-03-18-10-22-06-929.png
          9 kB
          Luiggi Sansonetti
        10. image-2024-03-18-10-34-39-651.png
          43 kB
          Luiggi Sansonetti
        11. image-2024-03-18-10-35-21-528.png
          8 kB
          Luiggi Sansonetti
        12. image-2024-03-18-10-51-23-366.png
          28 kB
          Luiggi Sansonetti
        13. image-2024-03-18-10-53-18-840.png
          9 kB
          Luiggi Sansonetti
        14. image-2024-03-18-10-53-47-003.png
          9 kB
          Luiggi Sansonetti
        15. image-2024-03-18-10-57-37-496.png
          8 kB
          Luiggi Sansonetti
        16. image-2024-03-18-10-58-00-817.png
          8 kB
          Luiggi Sansonetti
        17. image-2024-03-18-10-58-59-143.png
          8 kB
          Luiggi Sansonetti
        18. image-2024-03-18-10-59-59-293.png
          4 kB
          Luiggi Sansonetti
        19. image-2024-03-18-11-50-48-890.png
          9 kB
          Luiggi Sansonetti
        20. image-2024-03-18-11-51-59-302.png
          8 kB
          Luiggi Sansonetti
        21. image-2024-03-18-11-56-54-010.png
          4 kB
          Luiggi Sansonetti
        22. image-2024-03-18-11-57-22-602.png
          35 kB
          Luiggi Sansonetti
        23. MDLQA-18632 error.png
          125 kB
          Simey Lameze
        24. MDLQA-18632 passed.png
          90 kB
          Simey Lameze
        25. image-2024-03-19-08-46-03-636.png
          12 kB
          Luiggi Sansonetti
        26. image-2024-03-19-08-49-57-954.png
          13 kB
          Luiggi Sansonetti
        27. QACourseUploadFile.csv
          0.2 kB
          Simey Lameze

            lsansone Luiggi Sansonetti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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