Skip to content

[Bugfix:TAGrading] Prevent Grade Stealing#12434

Merged
bmcutler merged 2 commits intomainfrom
fix-grade-steal
Feb 20, 2026
Merged

[Bugfix:TAGrading] Prevent Grade Stealing#12434
bmcutler merged 2 commits intomainfrom
fix-grade-steal

Conversation

@williamschen23
Copy link
Contributor

@williamschen23 williamschen23 commented Feb 18, 2026

Why is this Change Important & Necessary?

fixes #12223 Fixes grade stealing on going to home page

What is the New Behavior?

No grade stealing on going to home page. Added a new window element for a temporary fix while we convert this to vue

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

I tested going to previous student, going to next student, and going to home page while not on instructor grading a component. With no changes, this keeps instructor as the sole grader. With changes, the text changes to the user on refresh.

Automated Testing & Documentation

N/A. Convert to vue first before E2e Tests

Other information

Thank you Justin for tracking the issue so clearly

@github-project-automation github-project-automation bot moved this to Seeking Reviewer in Submitty Development Feb 18, 2026
@automateprojectmangement automateprojectmangement bot moved this from Seeking Reviewer to In Review in Submitty Development Feb 18, 2026
itempool_items: Record<number, string>;
};

/**
Copy link
Contributor Author

Choose a reason for hiding this comment

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

move all the variables under the type definitions

@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.73%. Comparing base (d96c748) to head (cd3ac26).
⚠️ Report is 16 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12434      +/-   ##
============================================
+ Coverage     21.67%   21.73%   +0.06%     
  Complexity     9623     9623              
============================================
  Files           268      268              
  Lines         36171    36167       -4     
  Branches        486      486              
============================================
+ Hits           7840     7862      +22     
+ Misses        27849    27823      -26     
  Partials        482      482              
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.04% <0.00%> (ø)
migrator 100.00% <ø> (ø)
php 20.77% <ø> (+0.07%) ⬆️
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

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.

@hyeenaa hyeenaa self-requested a review February 19, 2026 00:21
Copy link
Contributor

@JManion32 JManion32 left a comment

Choose a reason for hiding this comment

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

Yay! Great work with this. I tested on main and replicated the issue when clicking next/prev and home, and could no longer replicate on this branch.

Just make sure to properly tag the issue here so it automatically closes. I understand this may not be the most optimal solution, so maybe we should make a new, non-URGENT/PRIORITY issue that documents it (or add it to an existing TA grading refactor issue).

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Feb 19, 2026
Copy link
Contributor

@Rkoester47 Rkoester47 left a comment

Choose a reason for hiding this comment

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

I was able to replicate this issue on main, but not on this branch. I tried opening and closing the grading component multiple times as a different grader, scrolling left and right through different student submissions with a grading component open, and made sure that intentional regrading is still functional. The changes made by this PR seem to have resolved the issue as I cannot steal credit from other graders in my testing.

@bmcutler bmcutler merged commit 80c72f5 into main Feb 20, 2026
27 checks passed
@bmcutler bmcutler deleted the fix-grade-steal branch February 20, 2026 16:56
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.

Visiting an already graded component results in "stealing credit" from the original grader.

4 participants