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

Auto-Create Groups: Populate groups from Child Courses in META courses

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.3, 2.0.8, 2.1, 2.2, 2.3.2, 2.4, 2.5, 2.6, 2.7, 2.8
    • Fix Version/s: 2.9
    • Component/s: Authentication, Groups
    • Labels:
    • Environment:
      group/autogroup.php?
    • Testing Instructions:
      Hide
      • Create a course A, enrol some users
      • Create another course B
      • Create a group called "group a" on course b
      • On course B, add a meta enrol method, selecting "course A" as the link and "group a" as the group
      • Make sure all users from course A are enroled on course B and are groups members for "group a"
      • Go to course A, unenrol some users, go back to course B and see that they not belong to the "group a" anymore (see NOTE)
      • Go to course A, enrol some users, go back to course B and see that they now belong to the "group a"
      • Remove the meta enrol method from course B and see that everyone was removed from the group (see NOTE)
      • On course B, add another meta enrol method, selecting same course A as link but selecting "none" as group. See that users are enrolled but not added to any group.

      NOTE Users will be removed from the group only if setting "External unenrol action" is set to "Unenrol users from course"

      Also play around with "Create new group" option. Try editing the meta enrolment and changing the group. Be creative

      Do a quick regression check in the enrol_cohort:

      • Create cohort
      • Add cohort sync enrolment method into the course, select "Create new group"
      • Make sure the group is created
      • Edit method and again select "Create new group"
      • Make sure the group with increment is created
      Show
      Create a course A, enrol some users Create another course B Create a group called "group a" on course b On course B, add a meta enrol method, selecting "course A" as the link and "group a" as the group Make sure all users from course A are enroled on course B and are groups members for "group a" Go to course A, unenrol some users, go back to course B and see that they not belong to the "group a" anymore (see NOTE) Go to course A, enrol some users, go back to course B and see that they now belong to the "group a" Remove the meta enrol method from course B and see that everyone was removed from the group (see NOTE) On course B, add another meta enrol method, selecting same course A as link but selecting "none" as group. See that users are enrolled but not added to any group. NOTE Users will be removed from the group only if setting "External unenrol action" is set to "Unenrol users from course" Also play around with "Create new group" option. Try editing the meta enrolment and changing the group. Be creative Do a quick regression check in the enrol_cohort: Create cohort Add cohort sync enrolment method into the course, select "Create new group" Make sure the group is created Edit method and again select "Create new group" Make sure the group with increment is created
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      wip-MDL-17929-master

      Description

      Note: during the following disucssion the scope has been changed to:

      Allow to automatically sync (add and remove) users from the child course to the group in the meta course as part of Meta enrolment method

      Original description:

      It doesn't appear that one can auto-create Groups from the child courses in META courses. On the auto-create page in Groups, (group/autogroup.php?) it would be an excellent improvement if users could select to "create groups from Child Courses" so that groups could automatically be created if there are several child courses in a meta course.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/May/15