-
Notifications
You must be signed in to change notification settings - Fork 524
[CodeReview] Automatically turns on Sharing when students are assigned to Code Review Groups #70178
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
Conversation
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.
Pull request overview
This PR automatically enables sharing for students when they are assigned to code review groups, addressing a bug where students could be in a code review group but unable to use the feature due to disabled sharing settings.
- Modifies
reset_code_review_groupsto track and enable sharing for assigned students - Adds a new helper method
enable_sharing_for_followersto update sharing settings - Includes test coverage verifying sharing is enabled for assigned students but not for unassigned ones
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| dashboard/app/models/sections/section.rb | Adds logic to track assigned follower IDs and enable sharing for students in code review groups |
| dashboard/test/models/sections/section_test.rb | Adds test case to verify sharing is automatically enabled for students assigned to code review groups |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fisher-alice
left a comment
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.
Nice! Just left a suggestion as discussed in Slack.
This automatically turns on sharing for students assigned code review groups. It fixes a bug where a student could be in a code review group but unable to utilize the feature because sharing is disabled. We believe that the assignment implicitly approves sharing.
Before:
Screen.Recording.2026-01-05.at.12.03.45.PM.mov
After:
Screen.Recording.2026-01-05.at.11.57.21.AM.mov
This is the approach we believe (see slack thread) to be the lowest lift for engineering, design, and teachers.
Links
Testing story
Deployment strategy
Follow-up work
Privacy
Security
Caching
PR Creation Checklist: