Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34696 enrol improvements 2.4 META
  3. MDL-31437

consistent sync between cohorts and groups

    XMLWordPrintable

Details

    • Any
    • MOODLE_22_STABLE
    • MOODLE_24_STABLE
    • w40_MDL-31437_m24_cohortsync
    • Hide

      In MDL-22927 a solution statement was proposed, but i agree with Petr that this improvement would need a new column in the group table of the DB.

      Show
      In MDL-22927 a solution statement was proposed, but i agree with Petr that this improvement would need a new column in the group table of the DB.
    • Hide

      This patch affects following areas:

      • anything cohort sync enrolment plugin related
      • restore of group membership
      • restore of role assignments
      • restore of enrolments
      • group protection in enrolment UI (see MDL-31973)

      Test:

      • run phpunit tests in all supported databases
      • test all operation related to enrol_chort sync - add instances, change cohort memberships, delete cohorts, edit cohort sync insatcnes, delete use group, roles, etc.
      • test restore of course with cohort sync on the same site - exact restore expected
      • test restore on different site - restore as forced manual enrolments
      Show
      This patch affects following areas: anything cohort sync enrolment plugin related restore of group membership restore of role assignments restore of enrolments group protection in enrolment UI (see MDL-31973 ) Test: run phpunit tests in all supported databases test all operation related to enrol_chort sync - add instances, change cohort memberships, delete cohorts, edit cohort sync insatcnes, delete use group, roles, etc. test restore of course with cohort sync on the same site - exact restore expected test restore on different site - restore as forced manual enrolments

    Description

      The discussion started in MDL-22927, but there is a need to put this in an seperate issue.
      In our Moodle installation we've configured a large set of cohorts corresponding to age-group of students. These cohorts are associated with course-groups to control access within courses. I'd guess this scenario is quite common for other schools/universities.
      The groups can be created from cohorts with the "Auto-create groups" feature. But unfortunately the cohorts aren't synced to these auto-created groups and modifying a cohort doesn't change the corresponding group.
      Summing up we've got the following situation:

      cohort – synced --> enrolment – NOT synced --> group (auto-created)

      In my point of view there is a need for a consistent sync because it's a logical conclusion to the idea of cohorts.

      Thanks in advance!

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              mediamarc Marc Malik
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tim Barker Tim Barker
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              24 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3/Dec/12