Skip to content

[Feature:RainbowGrades] Gradebook choose sorted table#13014

Open
dagemcn wants to merge 43 commits into
mainfrom
rainbow-grades-sorting
Open

[Feature:RainbowGrades] Gradebook choose sorted table#13014
dagemcn wants to merge 43 commits into
mainfrom
rainbow-grades-sorting

Conversation

@dagemcn

@dagemcn dagemcn commented Jul 8, 2026

Copy link
Copy Markdown
Member

Why is this Change Important & Necessary?

Closes Issue#10273.

What is the New Behavior?

Before, the instructor gradebook could only be sorted by overall due to how the table was generated and displayed. Now, whenever an instructor builds rainbow grades from the grades configuration page, the gradebook will now have a dropdown to choose which sorted table to view.
image

The CSV download will now download the CSV of whatever sorting order is selected.

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

  1. Checkout this branch and the linked RainbowGrades branch
  2. Run submitty_install
  3. In sample, make sure rainbow grades is enabled
  4. In the grades configuration tab, click build
  5. Navigate to the gradebook
  6. See new dropdown
  7. Test dropdown functionality and CSV download functionality

Automated Testing & Documentation

This feature is not tested by automated testing.

@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 95 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.12%. Comparing base (9aaa227) to head (0e81baf).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #13014      +/-   ##
============================================
- Coverage     21.16%   21.12%   -0.04%     
- Complexity    10102    10124      +22     
============================================
  Files           285      285              
  Lines         38769    38842      +73     
  Branches        596      596              
============================================
  Hits           8205     8205              
- Misses        29982    30055      +73     
  Partials        582      582              
Flag Coverage Δ
autograder 21.16% <ø> (ø)
js 1.73% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.15% <0.00%> (-0.05%) ⬇️
python_submitty_utils 79.83% <ø> (ø)
submitty_daemon_jobs 55.91% <ø> (ø)
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.

@dagemcn
dagemcn marked this pull request as ready for review July 9, 2026 14:55
@automateprojectmangement automateprojectmangement Bot moved this from Work in Progress to Seeking Reviewer in Submitty Development Jul 9, 2026
@NicholasCiuica
NicholasCiuica self-requested a review July 13, 2026 13:43
@automateprojectmangement automateprojectmangement Bot moved this from Seeking Reviewer to In Review in Submitty Development Jul 13, 2026
@NicholasCiuica

NicholasCiuica commented Jul 13, 2026

Copy link
Copy Markdown
Member

I ran into an issue while reviewing. See the Rainbow Grades Configuration build logs below. It seems the sort table button on the Gradebook page never shows up because the tables are not generated.

image

@roye2
roye2 self-requested a review July 13, 2026 18:13

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

I did a functionality and code review of this PR and overall I would say it looks good. I was able to test that all of the new tables did generate, could be selected from the dropdown menu in the Gradebook. Also, the files themselves were valid and could be viewed manually as some instructors choose to do (the .html and .csv files).

One small thing i was wondering about, would it be to our advantage here to make a new folder for the output* to go into instead? It seems like if we were to add many more different types to be output here that it would get cluttered with a lot of different output files here. However, as it is right now, I don't necessarily think this is a problem so I will be approving.

Edit, I saw Nick's error before doing a vagrant halt & up to link the changes from my Submitty/RainbowGrades folder. I think I needed to do this because I had just newly created / cloned that folder on my machine.

@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Jul 14, 2026
Comment thread sbin/auto_rainbow_grades.py Outdated
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Work in Progress in Submitty Development Jul 15, 2026
@bmcutler

Copy link
Copy Markdown
Member

@dagemcn
You need to update the PR message and close the RainbowGrades PR.

@roye2
roye2 self-requested a review July 22, 2026 16:04
@automateprojectmangement automateprojectmangement Bot moved this from Work in Progress to In Review in Submitty Development Jul 22, 2026

@roye2 roye2 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 change to move the code additions out of rainbowgrades and into here looks good. I also tested the functionality and everything seemed to work. I just have a small comment about wording.

Comment thread sbin/auto_rainbow_grades.py Outdated
@dagemcn
dagemcn requested a review from roye2 July 22, 2026 17:35

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

With the updates to the wording, I am approving this PR as I've tested it and it works well, and the code looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

Scrolling/sorting on Instructor view of Rainbow Grades

4 participants