-
New Feature
-
Resolution: Fixed
-
Minor
-
2.2.2
-
MOODLE_22_STABLE
-
MOODLE_23_STABLE
-
MDL-32005-master-10 -
Moderate
-
At present several tables related to users and courses have an idnumber field allowing them to be easily created and maintained by some form of plugin (most likely enrolment). This includes:
- users
- cohorts
- courses
- course categories
It would be particularly helpful to many larger institutions if it were possible to also handle groups and groupings in this manner
Rather than creating a new capability, it would be reasonable to re-use the existing course:changeidnumber capability.
Additionally, to prevent deletion of automatically created groups, it should not be possible to delete a group if:
- it has an idnumber set; and
- the user does not have the moodle/course:changeidnumber capability.
However if a user does not have the capability but no idnumber is set, it should be possible to remove the group.
- Discovered while testing
-
MDL-33092 group and groupings can be deleted if they have an idnumber of '0' even if the user does not have course:changeidnumber
- Closed
- has a non-specific relationship to
-
MDL-31973 groups_members table should have 'component' field
- Closed
- is blocked by
-
MDL-32426 Add phpunit generators for groups and groupings
- Closed
- will help resolve
-
MDL-31437 consistent sync between cohorts and groups
- Closed