[Feature:RainbowGrades] Add warning for Grade Summary last run#12206
[Feature:RainbowGrades] Add warning for Grade Summary last run#12206
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12206 +/- ##
============================================
- Coverage 21.72% 21.71% -0.01%
- Complexity 9609 9611 +2
============================================
Files 268 268
Lines 36056 36068 +12
Branches 475 475
============================================
Hits 7832 7832
- Misses 27753 27765 +12
Partials 471 471
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
JManion32
left a comment
There was a problem hiding this comment.
Code looks good and new functionality works well. This is a necessary quality of life improvement for the grades configuration page.
For anyone who hasn't generated grade summaries on this instance of their VM, you can change your server time with the following in order to view the warning message:
Disable the time from automatically synching:
sudo systemctl stop vboxadd-service
Change the date / time:
sudo date -s "2025-12-07 10:00:00", where the date can be whatever you want as long as it is 7 days from today.
When you are done, reenable:
sudo systemctl start vboxadd-service
Why is this Change Important & Necessary?
Currently, there is no indication that it has been a long time since the grade summaries were generated. If Nightly Builds are not enabled, this can cause problems. So, to compliment PR#12139 which added a warning for Nightly Builds, this PR will let give instructors an indication that potentially too much time as passed.
What is the New Behavior?
Now, if it has been more than 7 days since Grade Summaries have been generated, a warning next to "Last Ran:..." will be displayed with the number of days since last run.
(Firefox - Light Mode)

(Firefox - Dark Mode)

What steps should a reviewer take to reproduce or test the bug or new feature?
Other information
This is not a breaking change.