Skip to content

[Bugfix:InstructorUI] Fix Withdrawn Students Filter in Grading#12268

Merged
bmcutler merged 9 commits intomainfrom
checkout-gradeable-rendering
Jan 22, 2026
Merged

[Bugfix:InstructorUI] Fix Withdrawn Students Filter in Grading#12268
bmcutler merged 9 commits intomainfrom
checkout-gradeable-rendering

Conversation

@RyanStyron
Copy link
Contributor

Why is this Change Important & Necessary?

Fixes #12210.
As detailed by the issue, the Grading interface (for both "simple" (typically for labs) and "electronic" (typically for assignments, exams, etc.) grading) has a display bug where hiding withdrawn students does not update the index and the shading of the given row to match the color alternation scheme.

What is the New Behavior?

Tested with two students withdrawn from sample course, specifically students aphacker and farred.

With the changes applied to "simple" grading:
image
image

With the changes applied to "electronic" grading:
image
image

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

Follow the instructions in the linked issue. I would further recommend testing both "simple" and "electronic" grading, separately with an even and odd amount of students withdrawn from the course. Also ensure that this works for graders with full and limited access.

@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

❌ Patch coverage is 0% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.67%. Comparing base (e5a4d01) to head (2a2688c).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12268      +/-   ##
============================================
- Coverage     21.69%   21.67%   -0.03%     
  Complexity     9617     9617              
============================================
  Files           268      268              
  Lines         36115    36153      +38     
  Branches        478      486       +8     
============================================
  Hits           7836     7836              
- Misses        27805    27835      +30     
- Partials        474      482       +8     
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.04% <0.00%> (-0.03%) ⬇️
migrator 100.00% <ø> (ø)
php 20.69% <ø> (ø)
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.

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 tested these changes and can confirm that the issue has been resolved. I made sure to check that it works properly with an odd and even number of graders and in both electronic and simple gradeables. I also made sure that the above worked with both a full permission grader as well as a limited permission one. In all cases, the students' numbering was updated dynamically as the withdrawn students were hidden and un-hidden.

@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Dec 4, 2025
@RyanStyron RyanStyron moved this from Awaiting Maintainer Review to Ready to Merge in Submitty Development Dec 8, 2025
Copy link
Contributor

@williamschen23 williamschen23 left a comment

Choose a reason for hiding this comment

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

Overall, i see a lot of repeating code. I know that simple and electronic both uses different files, but is it not possible to combine them? Also, this looks like a very messy way to do it. Is there no better way?

@github-project-automation github-project-automation bot moved this from Ready to Merge to Work in Progress in Submitty Development Dec 8, 2025
@RyanStyron
Copy link
Contributor Author

@williamschen23 - I pushed changes to reduce duplicate logic and make other small abstractions.

@automateprojectmangement automateprojectmangement bot moved this from Work in Progress to In Review in Submitty Development Dec 11, 2025
Copy link
Contributor

@williamschen23 williamschen23 left a comment

Choose a reason for hiding this comment

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

Almost!

@github-project-automation github-project-automation bot moved this from In Review to Work in Progress in Submitty Development Dec 15, 2025
@williamschen23
Copy link
Contributor

Theres a mismatch between colors:
image
image

@github-actions github-actions bot added the Abandoned PR - Needs New Owner No activity on PR for more than 2 weeks -- seeking new owner to complete label Dec 30, 2025
@automateprojectmangement automateprojectmangement bot moved this from Work in Progress to In Review in Submitty Development Jan 11, 2026
Copy link
Contributor

@williamschen23 williamschen23 left a comment

Choose a reason for hiding this comment

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

Please change the functionality to "omit" withdrawn students automatically

@github-project-automation github-project-automation bot moved this from In Review to Work in Progress in Submitty Development Jan 16, 2026
@williamschen23
Copy link
Contributor

Screen.Recording.2026-01-16.at.12.59.45.PM.mov

clicking the checkpoint cell doesn't update, but updates after a refresh. Other functionality works good

…le grading checkpoint display logic for proper visualization.
@RyanStyron
Copy link
Contributor Author

Screen.Recording.2026-01-16.at.12.59.45.PM.mov
clicking the checkpoint cell doesn't update, but updates after a refresh. Other functionality works good

@williamschen23
Addressed this concern and the others re default status. Should be corrected. Thank you for the feedback throughout.

@JManion32 JManion32 removed the Abandoned PR - Needs New Owner No activity on PR for more than 2 weeks -- seeking new owner to complete label Jan 16, 2026
Copy link
Contributor

@williamschen23 williamschen23 left a comment

Choose a reason for hiding this comment

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

The toggle for withdrawn students work well.
But now the checkmarks for the other 4 checkboxes are broken. If you go to an electronic gradeables grading, you can click a checkbox and it wont appear as checked but the page appears as checked

Copy link
Contributor

@williamschen23 williamschen23 left a comment

Choose a reason for hiding this comment

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

I think that you should revert your last PR and apply the changes in the comments here

Copy link
Contributor

@williamschen23 williamschen23 left a comment

Choose a reason for hiding this comment

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

Thanks for the changes!

@github-project-automation github-project-automation bot moved this from Work in Progress to Awaiting Maintainer Review in Submitty Development Jan 18, 2026
@RyanStyron RyanStyron moved this from Awaiting Maintainer Review to Ready to Merge in Submitty Development Jan 19, 2026
@bmcutler bmcutler merged commit bb91712 into main Jan 22, 2026
25 checks passed
@bmcutler bmcutler deleted the checkout-gradeable-rendering branch January 22, 2026 06:25
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.

withdrawn students & checkpoint gradeable rendering

5 participants