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

            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.