[SAK-22253] If there are an uneven number of students, more auto groups are created than requested Created: 07-Jun-2012  Updated: 21-Oct-2014  Resolved: 13-Aug-2012

Status: Closed
Project: Sakai
Component/s: Site Info
Affects Version/s: 2.9.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Andrea Schmidt Assignee: Zhen Qian
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

sakai-2.9.0-b05 (Kernel 1.3.0-b04)- Server qa3-us
http://qa3-us.sakaiproject.org:8086/portal/site/9d0dc38a-0a31-4339-b943-a0737d152dd8
Win7: FF9


Attachments: File AutoGroups.swf     PNG File OddStudents.png    
2.9 Status: Resolved

 Description   

If there are an uneven number of students, more auto groups are created than requested

To reproduce:
Add an odd number of students to a course site
Click on Auto Groups
On the Create New Group(s), select the Student role
Select 'Create random groups from members with selected role(s).'
Keep the default 'Split by number of groups needed'
Enter a group title
Enter 2 for 'Number of groups'
Click Update

3 groups were created, with the third group having only 1 member
The student in the third group should have been added to one of the other groups



 Comments   
Comment by Zhen Qian [ 13-Aug-2012 ]

r111276. For the "mod" number of site participant (after divide with random group number), add them randomly to the existing randomly created group numbers. So that for site with 5 participant for 3 random groups, the following two cases are both acceptable: 3-1-1, 2-2-1, etc.

Comment by Hudson CI Server [ 13-Aug-2012 ]

Integrated in site-manage trunk #370 (See http://builds.sakaiproject.org:8080/job/site-manage%20trunk/370/)
SAK-22253 deal with randome group creation where the site participant number is not of multiples of random group number (Revision 111276)

Result = SUCCESS

Comment by Andrea Schmidt [ 14-Aug-2012 ]

Verified this is working correctly on sakai/trunk on Oracle - Built: 08/14/12 08:00 - Sakai Revision: 111443 (Kernel 1.4.0-SNAPSHOT)- Server sakai-nightly.uits.iupui.edu

Comment by Neal Caidin [ 17-Aug-2012 ]

Works great in trunk, just as expected. Ready for merging.

Comment by Zhen Qian [ 17-Aug-2012 ]

r111276 has been merged into 2.9.x in r111582.

Comment by Andrea Schmidt [ 17-Aug-2012 ]

Used this feature again today, and while it is working on https://qa29.longsight.com/portal, and it was working on http://nightly2.sakaiproject.org:8082/portal (can't recheck right now - server is being rebuilt), it is not working on http://nightly2.sakaiproject.org:8087/portal/.

Generated at Sun Sep 23 11:48:50 CDT 2018 using JIRA 7.5.0#75005-sha1:fd8c849d4e278dd8bbaccc61e707a716ad697024.