Limit the number of groups that can be created in an institution

Bug #1947643 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Dianne Tennent

Bug Description

When a site is used for multiple institutions, it would be good for the site administrator to limit how many groups can be created within an institution, similarly to how they can set a maximum number of accounts. That will help administer the site more easily without needing to do any manual checking.

1. Add a setting 'Maximum number of groups allowed' below the setting 'Maximum number of accounts allowed' on the institution settings page.
2. That setting shall only be visible to site administrators like 'Maximum number of accounts allowed' so that institution admins cannot change it.
3. That setting shall not be available for 'No institution'. There is no limit on how many groups can be created in 'No institution'.
4. Add two columns to the overview page for the institutions at Admin menu -> Institutions -> Settings:
  - Groups
  - Maximum number of groups
5. Change the 'Maximum' column heading to 'Maximum number of members' to differentiate it from the groups.
6. When someone tries to add a group to an institution that has reached its limit, either via manually creating a group, copying a group, or bulk uploading groups, have an error message along the lines of:

a) single group is created from Main menu -> Engage -> Groups and also when group is copied:

This group was not added because the maximum number of groups allowed in this institution has been reached. Please get in touch with your [institution administrator](/institution/index.php?institution=APPROPRIATEINSTITUTION) for next steps.

b) bulk group creation in Admin menu -> Groups -> Add groups by CSV:

The group creation failed because the maximum number of groups allowed in this institution has been reached. Please get in touch with the site administrator to discuss raising the limit.

Tags: newfeature
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "main" branch: https://reviews.mahara.org/12167

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/12167
Committed: https://git.mahara.org/mahara/mahara/commit/f958ef4705cf1232195b5c1b6aead9f2e718ead1
Submitter: Robert Lyon (<email address hidden>)
Branch: main

commit f958ef4705cf1232195b5c1b6aead9f2e718ead1
Author: Dianne Tennent <email address hidden>
Date: Wed Oct 20 17:28:01 2021 +1300

Bug #1947643 Limit groups to be created in an institution

- Site admin can set max limit for groups in an institution
- Institution admins and non-admins are
notified when attempting to create or
copy a group beyond their limit, or
associate a group with an institution that
has reached its limit.
- Currently, group max limit can be set to
zero or blank and it means no limit

Change-Id: I463ebceb8ec02df35747aba9244b938b9abbc53d

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: newfeature
Gold (gold.catalyst)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.