-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assessment groups improvements #2120
Conversation
Correctly disband groups as necessary when kicking
WalkthroughWalkthroughThe recent updates to the group handling system introduce enhanced breadcrumb navigation, refined group management logic, and improved user feedback mechanisms. These changes streamline the process of creating, joining, and leaving groups, alongside better error handling and user guidance. Additionally, the system now supports scenarios such as group disbanding and membership status updates, ensuring a smoother experience for users managing group memberships. Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also self-assign groups is checked by default when creating a new assessment, only way to uncheck it is to do so in assessment settings. I think maybe it would be better to let instructors check/uncheck it before/while creating an assessment too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works as expected. LGTM
Description
index
,new
,show
)@grouplessCUDs
which is never shown onshow
ornew
pagesMotivation and Context
Closes #2115
How Has This Been Tested?
Create assessment with group size 3 and student self-assignment enabled
student1
, create a group withstudent2
student3
, request to join the groupstudent3
can choose to leave the groupstudent1
, cancel invite tostudent2
and then leave the group. Group will be disbanded.student3
is now without a groupstudent1
, create a new group withstudent2
instructor
, kickstudent1
- group not disbandedinstructor
, kickstudent2
- group disbandedCreate assessment with group size 3 and student self-assignment disabled
student1
, see message that you can't create or join groupsinstructor
, create group withstudent1
- observe thatstudent1
is automatically confirmed andinstructor
is not addedinstructor
, add yourself to the group successfully. Then kick yourself.student1
view group and see message that you can't add members to the group.In general, test that behavior makes sense.
Screenshots
Instructor (in group), student-assignment allowed / not allowed
Note: when student-assignment allowed, need to self-approve. If not allowed, automatically approved.
Instructor (not in group), student-assignment allowed / not allowed
Confirmed student, student-assignment allowed
Confirmed student, student-assignment not allowed
Group-confirmed student, student-assignment allowed
Group-confirmed student, student-assignment not allowed
Member-confirmed student, student-assignment allowed
Member-confirmed student, student-assignment not allowed
Types of changes
Checklist:
overcommit --install && overcommit --sign
to use pre-commit hook for linting