Skip to content

[Bugfix:TAGrading] Student Custom Marks#12885

Merged
bmcutler merged 5 commits into
mainfrom
fix-peer-grading-custom-marks
Jun 8, 2026
Merged

[Bugfix:TAGrading] Student Custom Marks#12885
bmcutler merged 5 commits into
mainfrom
fix-peer-grading-custom-marks

Conversation

@mattLif

@mattLif mattLif commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Fixes #12859
For a gradeable with peer grading, for a component that is peer graded, the peer graders should only be able to choose from the teaching staff prepared point & message common marks. They should not have access to the custom mark feature.

What is the New Behavior?

All peer graders are no longer able to see/choose the "custom mark" option for a peer component of a peer gradeable.
image

What steps should a reviewer take to reproduce or test the bug or new feature?

As an instructor, create a gradeable that allows for peer grading.
As a student user, submit that gradeable.
As another user (any role), grade that student's submission and compare mark choices.

Automated Testing & Documentation

CI tests still need to be written for Peer Grading.
Peer grading is sufficiently documented, but peer graders not being allowed to make custom marks could be something to add.

@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.61%. Comparing base (249b9c9) to head (0d9d772).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12885      +/-   ##
============================================
- Coverage     21.62%   21.61%   -0.01%     
  Complexity     9824     9824              
============================================
  Files           268      268              
  Lines         36816    36830      +14     
  Branches        490      495       +5     
============================================
  Hits           7960     7960              
- Misses        28370    28379       +9     
- Partials        486      491       +5     
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.01% <0.00%> (-0.02%) ⬇️
migrator 100.00% <ø> (ø)
php 20.66% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@roye2
roye2 self-requested a review June 4, 2026 13:21
@automateprojectmangement automateprojectmangement Bot moved this from Seeking Reviewer to In Review in Submitty Development Jun 4, 2026

@roye2 roye2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the change and it seems to work as intended. The code makes sense for stopping students specifically from using custom marks when peer grading. I am wondering whether it would be a good idea to also restrict TA's that are also students from using custom marks on the peer grading component. It's possible this would prevent them from using custom marks when grading the TA component, which would not be ideal.

@mattLif

mattLif commented Jun 5, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the following bugs I discovered during dev:

  • Double clicking a peer component when opening would cause custom mark option to appear
  • Refreshing page while peer component was open would cause custom mark option to reappear
  • Reference errors I discovered in the twig files relating to peer_component

@roye2
roye2 self-requested a review June 5, 2026 19:25

@roye2 roye2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good. I tested for the bugs you mentioned and none of them appeared. I also tried some other things to find bugs but was unsuccessful in breaking anything. This PR looks good to me!

@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Jun 5, 2026

@jndlansh jndlansh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a code review and the implementation looks good.

@bmcutler
bmcutler merged commit 4e310f6 into main Jun 8, 2026
52 of 56 checks passed
@bmcutler
bmcutler deleted the fix-peer-grading-custom-marks branch June 8, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Peer graders should not be able to make custom point marks

4 participants