Skip to content

[Bugfix:InstructorUI] Fixed Released Date When Uploading#12699

Merged
williamjallen merged 5 commits into
Submitty:mainfrom
elsume:fix_date
Mar 31, 2026
Merged

[Bugfix:InstructorUI] Fixed Released Date When Uploading#12699
williamjallen merged 5 commits into
Submitty:mainfrom
elsume:fix_date

Conversation

@elsume

@elsume elsume commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Downloading and uploading should be consistent with the variables named so that functionality is maintained.

What is the New Behavior?

If the downloaded json file is uploaded, the data matches.

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

Download a Gradeable that does not have release dates and reupload it onto a different course to check if it has a release date. On this PR branch, see if it correctly displays.

Automated Testing & Documentation

Added cypress tests to verify.

Other information

@codecov

codecov Bot commented Mar 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 21.64%. Comparing base (02638f6) to head (1d2bcf7).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12699   +/-   ##
=========================================
  Coverage     21.64%   21.64%           
  Complexity     9654     9654           
=========================================
  Files           268      268           
  Lines         36245    36245           
  Branches        487      487           
=========================================
  Hits           7846     7846           
  Misses        27916    27916           
  Partials        483      483           
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.04% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.66% <0.00%> (ø)
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.

@elsume elsume changed the title [Bugfix:Gradeable] Fixed Released Date When Uploading [Bugfix:InstructorUI] Fixed Released Date When Uploading Mar 30, 2026

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

Fixes (another) bug with uploading a downloaded gradeable JSON file, and adds test to ensure functionality. Tested locally manually, and with Cypress.

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.

Test looks good, moves the API downlaod test to directly after the upload, instead of after another UI upload, which increases readability.

expect(test_json.ta_grading).to.eql(true);
expect(test_json.grade_inquiries).to.eql(true);
expect(test_json.rubric).to.eql(rubric);
expect(test_json.dates.has_release_date).to.eql(false);

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.

This is the line that adds the new testing functionality. You should create an issue to add testing for the rest of the date values not present here.

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Mar 30, 2026
@IDzyre

IDzyre commented Mar 30, 2026

Copy link
Copy Markdown
Member

Failing test is the leaderboard gradeable test.

@williamjallen
williamjallen merged commit 7f44c21 into Submitty:main Mar 31, 2026
24 of 25 checks passed
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Done in Submitty Development Mar 31, 2026
bmcutler pushed a commit that referenced this pull request Jun 4, 2026
### Why is this Change Important & Necessary?
Closes #12701
Extension of the test cases mentioned in PR #12699

Date values in the gradeable JSON upload/download cycle were not being
tested.

### What is the New Behavior?
Added assertions to verify that date values are correctly preserved when
api_testing gradeable is downloaded.

### What steps should a reviewer take to reproduce or test the bug or
new feature?
1. navigate to site directory
2. run the cypress test

### Automated Testing & Documentation
This PR adds automated Cypress test coverage for date values in the
gradeable JSON upload/download cycle.

### Other information
Not a breaking change. No migrations required. No security concerns.

Co-authored-by: dagemcn <[email protected]>
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.

3 participants