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

Add ability to suspend user enrolment on the User Upload Admin tool

    Details

    • Testing Instructions:
      Hide
      1. Bulk upload users with users2.txt (attached) and make sure you get no error
        1. student1 has active enrolment in course 1 and course 2 and suspended in course 3
        2. Student2 has active enrolment in course 1 and course 3 and suppended in course 2.
      2. Remove enrolstatus from users2.txt and upload file, make sure enrolment is not affected.
      Show
      Bulk upload users with users2.txt (attached) and make sure you get no error student1 has active enrolment in course 1 and course 2 and suspended in course 3 Student2 has active enrolment in course 1 and course 3 and suppended in course 2. Remove enrolstatus from users2.txt and upload file, make sure enrolment is not affected.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      wip-mdl-38155
    • Sprint:
      BACKEND Sprint 6

      Description

      What I would like is the ability to suspend a users enrolment in certain courses using the Upload Users Admin tool.

      Currently the only way to stop a users enrolment is to manually remove them, set the enrolment period, or suspend them. The only one that can be done through the tool is setting the enrolment period to something greater than 0.

      I know there is a suspendeded column but that is for the entire site(right? its not in the docs). I don't know if another column should be added or if we could use the enrolX column. Currently anything above 0 sets the enrolment date. 0 removes the end date of enrolment. Could we have -1 equal suspended enrolment.

      Thoughts?

        Gliffy Diagrams

          Attachments

          1. enrolstatus.patch
            2 kB
          2. users.txt
            0.2 kB
          3. users2.txt
            0.2 kB

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13