Skip to content

[Bugfix:InstructorUI] Histogram bucket fix#12974

Merged
bmcutler merged 3 commits into
mainfrom
histogram-bucket-fix
Jul 3, 2026
Merged

[Bugfix:InstructorUI] Histogram bucket fix#12974
bmcutler merged 3 commits into
mainfrom
histogram-bucket-fix

Conversation

@dagemcn

@dagemcn dagemcn commented Jul 1, 2026

Copy link
Copy Markdown
Member

Why is this Change Important & Necessary?

Closes Issue#12410

What is the New Behavior?

Prior, when using the histogram buckets, entries would commonly be lost due to how the previous increment sorting worked. The way the increments are determined and compared against was updated so that entries will no longer be lost.
For screenshots of the prior behavior, refer to to the linked issue above.
The new behavior is displayed here:
image
Notice how the total number of entries is 60.
image
Changing the bucket to include all entries in one column, the number of entries should stay the same.

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

  1. Run submitty_install_site
  2. Log in as instructor
  3. Go to any gradeable with a decent amount of submissions, the C System Calls and C++ Hidden Tests work best as they have manual and autograding results with many sample submissions.
  4. Click the grade or regrade button
  5. Click Statistics and Charts
  6. Within any of the histogram tabs test different bucket sizes and verify no entries are lost.

Automated Testing & Documentation

This feature is not tested by E2E testing.

@dagemcn dagemcn changed the title Histogram bucket fix [Bugfix:InstructorUI]Histogram bucket fix Jul 1, 2026
@dagemcn dagemcn changed the title [Bugfix:InstructorUI]Histogram bucket fix [Bugfix:InstructorUI] Histogram bucket fix Jul 1, 2026
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.35%. Comparing base (d96835d) to head (cabfa18).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12974   +/-   ##
=========================================
  Coverage     21.35%   21.35%           
  Complexity     9990     9990           
=========================================
  Files           275      275           
  Lines         37317    37317           
  Branches        505      505           
=========================================
  Hits           7969     7969           
  Misses        28847    28847           
  Partials        501      501           
Flag Coverage Δ
autograder 21.16% <ø> (ø)
js 1.98% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.41% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)

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.

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

I tested multiple bucket sizes on C++ Hidden Tests and counted the same number of students represented in the histogram. Looks good to me!

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Jul 1, 2026
@bmcutler
bmcutler merged commit 1260cf7 into main Jul 3, 2026
45 of 54 checks passed
@bmcutler
bmcutler deleted the histogram-bucket-fix branch July 3, 2026 04:46
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.

Histogram Buckets Do Not Work Correctly

3 participants