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

Add column for enrol start dates to Upload users CSV

    XMLWordPrintable

Details

    • MOODLE_38_STABLE
    • MDL-65404_master
    • Hide
      1. Create two courses with short names "Test 1" and "Test 2".
      2. Prepare a CSV file for uploading two users. (Example file: upload_users_example.csv)
        1. Enrol each user to the two previously created courses by filling the "course1" and "course2" columns with values "Test 1" and "Test 2".
        2. Specify each of their enrolment start date to a later date using columns "enroltimestart1" and "enroltimestart2" in the format YYYY-MM-DD.
        3. Specify enrolment period for one of the course enrolments: "enrolperiod2"
      3. Use the Upload users administrative tool with the prepared CSV file.
      4. Check that both users are created.
      5. Check that both users are enrolled to both courses.
      6. Check that both users' enrolment is only starting at the specified date.
      7. Check that both users' enrolment end dates are right.
      Show
      Create two courses with short names "Test 1" and "Test 2". Prepare a CSV file for uploading two users. (Example file: upload_users_example.csv ) Enrol each user to the two previously created courses by filling the "course1" and "course2" columns with values "Test 1" and "Test 2". Specify each of their enrolment start date to a later date using columns "enroltimestart1" and "enroltimestart2" in the format YYYY-MM-DD. Specify enrolment period for one of the course enrolments: "enrolperiod2" Use the Upload users administrative tool with the prepared CSV file. Check that both users are created. Check that both users are enrolled to both courses. Check that both users' enrolment is only starting at the specified date. Check that both users' enrolment end dates are right.

    Description

      Target tool : Site administration / Users / Accounts / Upload users

      It would be useful for managers to enrol users to courses through the Upload users ahead of time. In order to do so, they need to be able to specify a future enrolment start date. Right now, any enrolment made with Upload users starts right away.

      The CSV file could recognize columns named enroltimestart1, enroltimestart1, enroltimestart1… The format for the date could either be strict (eg. YYYY-MM-DD only) or flexible by being based off strtotime().

      I have provided a patch (see details above).

      Attachments

        Activity

          People

            moreauf François Moreau
            moreauf François Moreau
            Amaia Anabitarte Amaia Anabitarte
            Adrian Greeve Adrian Greeve
            Gladys Basiana Gladys Basiana
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              18/Nov/19

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 1 minute
                6h 1m