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

Add suspend only unenrolaction to enrol_cohort

XMLWordPrintable

    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_400_STABLE
    • Hide

      Scenario: Remove cohort member

      1. Go to Site administration > Plugins > Enrolments > Cohort sync
      2. Set the External unenrol action to "Disable course enrolment"
      3. Create a test course
      4. Go to Site administration > Users > Accounts > Cohorts  and Create a new test cohort
      5. Add 1 or more cohort members
      6. Go to your test course and add cohort sync enrolment method
      7. Enrol your test cohort
      8. Verify that the cohort members are enrolled in the course
      9. Go to Site administration > Users > Accounts > Cohorts and find your test cohort
      10. Remove 1 or more cohort members
      11. Go back to your test course and verify that the status is now suspended for the cohort member/s that was removed
      12. Verify that the cohort member/s still have a role assigned to them
      13. Run the scheduled task  \enrol_cohort\task\enrol_cohort_sync
      14. Go back to your test course and verify that the cohort member/s are still suspended and still have a role assigned to them 

      Scenario: Delete non-empty cohort

      1. Go to Site administration > Plugins > Enrolments > Cohort sync
      2. Set the External unenrol action to "Disable course enrolment"
      3. Create a test course
      4. Go to Site administration > Users > Accounts > Cohorts  and Create a new test cohort
      5. Add 1 or more cohort members
      6. Go to your test course and add cohort sync enrolment method
      7. Enrol your test cohort
      8. Verify that the cohort members are enrolled in the course
      9. Go to Site administration > Users > Accounts > Cohorts and delete your test cohort
      10. Go back to your test course and verify that the status is now suspended for the cohort member/s of the test cohort that was deleted
      11. Verify that the cohort member/s still have a role assigned to them
      12. Run the scheduled task  \enrol_cohort\task\enrol_cohort_sync
      13. Go back to your test course and verify that the cohort member/s are still suspended and still have a role assigned to them 

       

      Show
      Scenario: Remove cohort member Go to Site administration > Plugins > Enrolments > Cohort sync Set the  External unenrol action  to  "Disable course enrolment" Create a test course Go to Site administration > Users > Accounts > Cohorts  and Create a new test cohort Add 1 or more cohort members Go to your test course and add cohort sync enrolment method Enrol your test cohort Verify that the cohort members are enrolled in the course Go to Site administration > Users > Accounts > Cohorts and find your test cohort Remove 1 or more cohort members Go back to your test course and verify that the status is now suspended for the cohort member/s that was removed Verify that the cohort member/s still have a role assigned to them Run the scheduled task   \enrol_cohort\task\enrol_cohort_sync Go back to your test course and verify that the cohort member/s are still suspended and still have a role assigned to them  Scenario: Delete non-empty cohort Go to Site administration > Plugins > Enrolments > Cohort sync Set the  External unenrol action  to  "Disable course enrolment" Create a test course Go to Site administration > Users > Accounts > Cohorts  and Create a new test cohort Add 1 or more cohort members Go to your test course and add cohort sync enrolment method Enrol your test cohort Verify that the cohort members are enrolled in the course Go to Site administration > Users > Accounts > Cohorts and delete your test cohort Go back to your test course and verify that the status is now suspended for the cohort member/s of the test cohort that was deleted Verify that the cohort member/s still have a role assigned to them Run the scheduled task   \enrol_cohort\task\enrol_cohort_sync Go back to your test course and verify that the cohort member/s are still suspended and still have a role assigned to them   

      In 2.3 (MDL-30944) Petr added the unenrolaction to enrol_cohort. This proposed improvement is to add the ENROL_EXT_REMOVED_SUSPEND action to that list so that it's possible for users to merely be suspended but not lose their roles.

      This is necessary for the scenario in where it's be desirable for users to remain in the course and suspended, but you still want to be able to see them in the gradebook. If they're stripped of all their roles, then the gradebook won't show them.

            trishamilan Trisha Milan
            aolley Adam Olley
            Dmitrii Metelkin Dmitrii Metelkin
            Andrew Lyons Andrew Lyons
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.