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

Implement course content download setting in bulk course upload

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Upload new courses with field

      1. Login as admin
      2. Navigate to Courses > Download course content from site administration
      3. Enable Download course content feature available
      4. Navigate to Courses > Upload courses in site administration
      5. Upload MDL-69816.csv and press Preview
      6. Press Upload courses
      7. Confirm new courses were created with expected downloadcontent field:

        SELECT fullname, shortname, downloadcontent FROM moodle.m_course WHERE id > 1;
        

        fullname shortname downloadcontent
        Course one C101 0
        Course two C102 1
        Course three C103 2

      Updating courses with default field

      1. Navigate to Courses > Upload courses in site administration
      2. Upload MDL-69816-2.csv
      3. Set Upload mode to Only update existing courses
      4. Set Update mode to Update with CSV data and defaults
      5. Press Preview
      6. Under Default course values set Enable download course content to Yes
      7. Press Upload courses
      8. Confirm courses were updated with expected downloadcontent field:

        SELECT fullname, shortname, downloadcontent FROM moodle.m_course WHERE id > 1;
        

        fullname shortname downloadcontent
        Course one C101 1
        Course two C102 1
        Course three C103 1
      Show
      Upload new courses with field Login as admin Navigate to Courses > Download course content from site administration Enable Download course content feature available Navigate to Courses > Upload courses in site administration Upload MDL-69816.csv and press Preview Press Upload courses Confirm new courses were created with expected downloadcontent field: SELECT fullname, shortname, downloadcontent FROM moodle.m_course WHERE id > 1; fullname shortname downloadcontent Course one C101 0 Course two C102 1 Course three C103 2 Updating courses with default field Navigate to Courses > Upload courses in site administration Upload MDL-69816-2.csv Set Upload mode to Only update existing courses Set Update mode to Update with CSV data and defaults Press Preview Under Default course values set Enable download course content to Yes Press Upload courses Confirm courses were updated with expected downloadcontent field: SELECT fullname, shortname, downloadcontent FROM moodle.m_course WHERE id > 1; fullname shortname downloadcontent Course one C101 1 Course two C102 1 Course three C103 1
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull 3.11 Branch:
      MDL-69816-311
    • Pull Master Branch:

      Description

      Course bulk upload should allow setting whether course content download is enabled or disabled on the course.

      This is blocked by MDL-69559, as the final course setting needs to be finalised before it can be implemented in bulk upload.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pholden Paul Holden
              Reporter:
              michaelh Michael Hawkins
              Peer reviewer:
              Simey Lameze
              Integrator:
              Víctor Déniz Falcón
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/May/21

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 21 minutes
                  4h 21m