Skip to content

[Bugfix:System] Fix VCS Download and Submission#12334

Merged
bmcutler merged 3 commits intomainfrom
vcs-sub-patch
Jan 22, 2026
Merged

[Bugfix:System] Fix VCS Download and Submission#12334
bmcutler merged 3 commits intomainfrom
vcs-sub-patch

Conversation

@IDzyre
Copy link
Member

@IDzyre IDzyre commented Jan 14, 2026

Why is this Change Important & Necessary?

Currently, when you download the gradeable json, if you are using a subdirectory, it does not save it in the way that the upload is expecting.
Download saves it as
subdirectory => <subdirectory>
Upload wants it as
'vcs_subdirectory' => <subdirectory>

Also, when using self hosted VCS gradeables, the 'grade my repository' section does not show up, so students could not submit.

What is the New Behavior?

The download now saves it in the way that the upload is looking for.
Also allows self hosted vcs type to click 'grade my repository'.

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

On main, download the gradeable JSON from the vcs subdirectory homework, change the id, and upload it. You will notice the subdirectory is not copied.
Switch to this branch, and do it again, and it will be there.

For self hosted, on main create a gradeable with the 'self hosted' vcs type, and go to submit the gradeable. Notice there is no 'Grade My Repository' button.
Switch to this branch and notice the button appears.

Automated Testing & Documentation

Test has been updated to reflect the new expected values.

@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

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

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12334   +/-   ##
=========================================
  Coverage     21.69%   21.69%           
  Complexity     9617     9617           
=========================================
  Files           268      268           
  Lines         36115    36115           
  Branches        478      478           
=========================================
  Hits           7836     7836           
  Misses        27805    27805           
  Partials        474      474           
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.69% <0.00%> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

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.

@IDzyre IDzyre changed the title [Bugfix:System] Fix download of VCS subdirectory [Bugfix:System] Fix VCS download and submission Jan 15, 2026
@IDzyre IDzyre changed the title [Bugfix:System] Fix VCS download and submission [Bugfix:System] Fix VCS Download and Submission Jan 15, 2026
@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Jan 17, 2026
@bmcutler bmcutler merged commit ea63f36 into main Jan 22, 2026
50 of 51 checks passed
@bmcutler bmcutler deleted the vcs-sub-patch branch January 22, 2026 06:27
@github-project-automation github-project-automation bot moved this from Awaiting Maintainer Review to Done in Submitty Development Jan 22, 2026
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