Skip to content

[Bugfix:TAGrading] Edit Rubric Empty Testcase Fields#12963

Merged
bmcutler merged 9 commits into
Submitty:mainfrom
jndlansh:bugfix/empty-fields
Jul 7, 2026
Merged

[Bugfix:TAGrading] Edit Rubric Empty Testcase Fields#12963
bmcutler merged 9 commits into
Submitty:mainfrom
jndlansh:bugfix/empty-fields

Conversation

@jndlansh

@jndlansh jndlansh commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Closes #12923
This PR fixes the issue of rubric tab of the grading panel, where clicking Edit Rubric before opening a testcase to grade causes the marks on that testcase to display as having empty values in their point and comment fields.

What is the New Behavior?

The fix is to unconditionally fetch fresh data from the server every single time a component is opened. This ensures that the rendering function always has the correct information to populate the mark fields, whether you are in edit mode or not.

empty.mp4

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

  1. Open a student's submission of a gradeable that has manual grading testcases.
  2. Click the Edit Rubric checkmark.
  3. Open a testcase; you should see that all the input fields for the point values and comments of the marks have content.
  4. Discard should also work just fine.

Automated Testing & Documentation

No tests added/modified

Other information

  • Not a breaking change
  • No migrations needed.

@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.41%. Comparing base (01f8919) to head (663c4b8).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12963      +/-   ##
============================================
+ Coverage     21.35%   21.41%   +0.05%     
- Complexity     9990    10002      +12     
============================================
  Files           275      277       +2     
  Lines         37317    37424     +107     
  Branches        505      513       +8     
============================================
+ Hits           7969     8013      +44     
- Misses        28847    28909      +62     
- Partials        501      502       +1     
Flag Coverage Δ
autograder 21.16% <ø> (ø)
js 1.98% <0.00%> (-0.01%) ⬇️
migrator 100.00% <ø> (ø)
php 20.37% <ø> (-0.04%) ⬇️
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)
vue 100.00% <ø> (?)

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.

@JManion32 JManion32 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.

Please resolve the failing tests. It looks to me like both were caused by this PR.

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Jun 29, 2026
@jndlansh
jndlansh requested a review from NicholasCiuica July 3, 2026 06:58
@automateprojectmangement automateprojectmangement Bot moved this from Work in Progress to In Review in Submitty Development Jul 3, 2026

@NicholasCiuica NicholasCiuica left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

PR looks good, I tested and the new functionality works well and consistently.

@jndlansh
jndlansh requested a review from JManion32 July 3, 2026 16:48

@JManion32 JManion32 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.

Looks good to me. I observed the bug on main and was unable to replicate it on the feature branch.

@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Jul 3, 2026
@bmcutler
bmcutler merged commit 26cdcc1 into Submitty:main Jul 7, 2026
55 of 56 checks passed
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Done in Submitty Development Jul 7, 2026
@jndlansh
jndlansh deleted the bugfix/empty-fields branch July 7, 2026 06:16
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.

[Bug:TAGrading] Edit Rubric Empty Testcase Fields

4 participants