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

Add column for enrol start dates to Upload users CSV

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: User management
    • Labels:
    • Testing Instructions:
      Hide
      1. In a Moodle 3.7 site, 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 "enrolstart1" and "enrolstart2" in the format YYYY-MM-DD.
      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.
      Show
      In a Moodle 3.7 site, 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 "enrolstart1" and "enrolstart2" in the format YYYY-MM-DD. 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.
    • Pull Master Branch:
      MDL-65404_master

      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

            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 minute
                1m