Skip to content

[Bugfix:Submission] Fix Overridden Banner display#11809

Merged
bmcutler merged 6 commits into
mainfrom
fix-overriden-banner
Jul 1, 2025
Merged

[Bugfix:Submission] Fix Overridden Banner display#11809
bmcutler merged 6 commits into
mainfrom
fix-overriden-banner

Conversation

@williamschen23

@williamschen23 williamschen23 commented Jun 26, 2025

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Fix #10331
On the student side, they will have no indication that their grade has been overridden, unless the instructor updates rainbowgrades. Now, there will be a banner on top of the submission page to indicate a grade override.

What is the New Behavior?

Without rainbow grades:
image
With rainbow grades:
image

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

Overriden a student
notice that they will have no indication that their grade is overridden.
Test new code.
See new banner

Automated Testing & Documentation

#11811

Other information

@codecov

codecov Bot commented Jun 26, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 20.68%. Comparing base (01dde07) to head (30c7077).
Report is 16 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #11809   +/-   ##
=========================================
  Coverage     20.67%   20.68%           
- Complexity     9176     9179    +3     
=========================================
  Files           263      263           
  Lines         35222    35229    +7     
  Branches        461      461           
=========================================
+ Hits           7282     7286    +4     
- Misses        27483    27486    +3     
  Partials        457      457           
Flag Coverage Δ
autograder 21.34% <ø> (ø)
js 2.11% <ø> (ø)
migrator 100.00% <ø> (ø)
php 19.37% <ø> (+<0.01%) ⬆️
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 88.88% <ø> (ø)

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.

@bmcutler

Copy link
Copy Markdown
Member

@williamschen23

The documentation indicates this message should be visible to student:
https://submitty.org/instructor/course_management/grade_override#student-view

What is broken right now? Does no message at all appear?

The message you've typed could be confusing to students who don't know the Submitty term/feature "Overridden". Manual grading TA comments & feedback (if any) are likely still accurate and important feedback to the student.

How about:
"NOTE: The numeric score for this assignment has been overridden by your instructor.
Your numeric score for the assignment will be visible in 'Rainbow Grades'.
Please see your instructor if you have for questions about your grade for this assignment."

The image on submitty.org shoudl be updated.

@bmcutler bmcutler closed this Jun 26, 2025
@bmcutler bmcutler reopened this Jun 26, 2025
@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Done in Submitty Development Jun 26, 2025
@github-project-automation github-project-automation Bot moved this from Done to Seeking Reviewer in Submitty Development Jun 26, 2025

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

see comment above

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Jun 26, 2025
@williamschen23

Copy link
Copy Markdown
Contributor Author

"NOTE: The numeric score for this assignment has been overridden by your instructor.
Your numeric score for the assignment will be visible in 'Rainbow Grades'.
Please see your instructor if you have for questions about your grade for this assignment."

No banner appears because the boolean is set is false. I will update the rest.

<div class='content overridden-message'>
<p>NOTE: The numeric score for this assignment has been overridden by your instructor.</p>
<p>Your numeric score for the assignment will be visible in 'Rainbow Grades'.</p>
<p>Please see your instructor if you have for questions about your grade for this assignment.</p>

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.

sorry I had a garbled last sentence in my review...

"Please see your instructor if you have questions about your grade for this assignment."

@bmcutler

Copy link
Copy Markdown
Member

also I was going to say that 'Rainbow Grades' shouldn't be in quotes, but should be a link to the rainbow grades page.
(and what do we do it rainbow grades isn't enabled for this course?)

@jeffrey-cordero

Copy link
Copy Markdown
Contributor

Looks good so far, except for the final sentence, where the for should be removed for readability.

image

@williamschen23

Copy link
Copy Markdown
Contributor Author

Without rainbow grades:
image
With rainbow grades:
image

@jeffrey-cordero jeffrey-cordero 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.

The banner for overridden grades on the student view looks clear. The Rainbow Grades line correctly links to the proper endpoint, and it's not displayed at all when Rainbow Grades is disabled for a given course.

@github-project-automation github-project-automation Bot moved this from Work in Progress to Awaiting Maintainer Review in Submitty Development Jul 1, 2025
@bmcutler
bmcutler merged commit 359fbe4 into main Jul 1, 2025
24 checks passed
@bmcutler
bmcutler deleted the fix-overriden-banner branch July 1, 2025 02:06
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Done in Submitty Development Jul 1, 2025
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.

Grade Override doesn't update gradeable, only rainbow grades

3 participants