Skip to content

Conversation

@hannahbergam
Copy link
Contributor

@hannahbergam hannahbergam commented Jan 5, 2026

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
Screenshot 2026-01-05 at 2 09 38 PM

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:

  • Tests provide adequate coverage
  • Privacy impacts have been documented
  • Security impacts have been documented
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Follow-up work items (including potential tech debt) are tracked and linked

@hannahbergam hannahbergam requested a review from Copilot January 5, 2026 20:33
Copy link
Contributor

Copilot AI left a 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_groups to track and enable sharing for assigned students
  • Adds a new helper method enable_sharing_for_followers to 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.

@hannahbergam hannahbergam requested a review from a team January 5, 2026 20:46
Copy link
Contributor

@fisher-alice fisher-alice left a 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.

@hannahbergam hannahbergam merged commit c2abad0 into staging Jan 8, 2026
7 checks passed
@hannahbergam hannahbergam deleted the hbergam/sharing-and-code-review branch January 8, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants