Give 1 option if new group name not unique

Bug #1881677 reported by Rangi Daymond
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cecilia Vela Gurovic

Bug Description

As a member of a Mahara site
I want assistance when the name I have chosen for my new group is not unique
So that I can quickly choose one that is meaningful.

Person1 has a group named 'MyGroup'.

1. Person2 has logged in and navigated to 'Main menu' > 'Engage' > 'Groups'
2. Person2 selects 'Create group'
3. Person2 enters the value 'MyGroup' in the field 'Group name'
4. Person2 selects to 'Save group'

Actual result: (see attached screen shot) the error message 'A group by this name already exists.' is displayed underneath the field.

Discussion (Tue 27 May 2020):
Question: If I am a student in an organisation/site that has 10,000+ other students. How am I going to know what I can meaningfully name my group? It could take ages trying things until I find one ?
Response: This scenario is no different to signing up to a site with lots of users and trying to supply a username.
We could add some code to give suggestions based on what they tried. If group name is already taken give 3 options in the error message returned.

Alternatively, we could append a number to the clean URL of the group, e.g. instead of https://.../mygroup it'll be https://.../mygroup-1 etc. if others already exist.

Not everyone may want to change their group name significantly to make it very unique, esp. if the URL could handle that. When people search for groups, they'll always see who created it or is the admin and then choose the correct group.

Revision history for this message
Rangi Daymond (rangid) wrote :
Changed in mahara:
importance: Undecided → Wishlist
status: New → Confirmed
Changed in mahara:
assignee: nobody → Cecilia Vela Gurovic (ceciliavg)
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch:

Changed in mahara:
milestone: none → 20.10.0
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 63f24ff2fa84e49a2dba5a0dd96d1c36809ed387
Author: Cecilia Vela Gurovic <email address hidden>
Date: Thu Jun 4 16:56:41 2020 +1200

Bug 1881677: Suggest group name if already taken

If we're going to add just a character at the end
of the name, it sould be enough with only one
suggestion instead of three


Change-Id: I60e37e228b2e4ae3dbda29d5fd063a648a91cae4

Revision history for this message
Robert Lyon (robertl-9) wrote : Re: Give 3 options if new group name not unique

We've gone for the one alternative as that is easier to do and can be shown easily in an error message on the field

Changed in mahara:
status: In Progress → Fix Committed
tags: added: newfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
summary: - Give 3 options if new group name not unique
+ Give 1 option if new group name not unique
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers