Skip to content

[Bugfix:TAGrading] Fix Team Version Conflict Handling#13036

Merged
bmcutler merged 1 commit into
mainfrom
fix-team-version-conflict-handling
Jul 15, 2026
Merged

[Bugfix:TAGrading] Fix Team Version Conflict Handling#13036
bmcutler merged 1 commit into
mainfrom
fix-team-version-conflict-handling

Conversation

@mattLif

@mattLif mattLif commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Partially Addresses #13033
Clicking Clear Version Conflicts did not work for team gradeables. This was due to the database query for changing graded versions searched by user_id, but team gradeable components go by team_id.

What is the New Behavior?

The database query for changing graded versions for components now searches by both user_id and team_id so all version conflicts are caught.

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

  • As a student, intentionally create a version conflict on a team gradeable by making a new submission (I used Grading Homework Team PDF).
  • As instructor, verify clicking Clear Version conflict on their rubric resolves conflicts

Automated Testing & Documentation

No automated testing added

Other information

Not a breaking change
No migrations
Not a security concern

@codecov

codecov Bot commented Jul 14, 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.09%. Comparing base (16b67e9) to head (ef2f560).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #13036   +/-   ##
=========================================
  Coverage     21.09%   21.09%           
  Complexity    10115    10115           
=========================================
  Files           279      279           
  Lines         38167    38167           
  Branches        585      585           
=========================================
  Hits           8051     8051           
  Misses        29544    29544           
  Partials        572      572           
Flag Coverage Δ
autograder 21.16% <ø> (ø)
js 1.76% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.19% <0.00%> (ø)
python_submitty_utils 79.83% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)
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.

@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 tested this and was able to reproduce the original error. Upon switching to the branch the error was resolved and clear version conflicts worked as intended. Additionally, I verified that the feature still works for non-team submissions. The code also looks good, so I approve.

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

@bmcutler bmcutler 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 think we discussed/agreed that a CI test will be added to this PR before this is merged

@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Work in Progress in Submitty Development Jul 15, 2026
@github-project-automation github-project-automation Bot moved this from Work in Progress to Awaiting Maintainer Review in Submitty Development Jul 15, 2026
@bmcutler
bmcutler merged commit eadc61c into main Jul 15, 2026
54 of 55 checks passed
@bmcutler
bmcutler deleted the fix-team-version-conflict-handling branch July 15, 2026 20:09
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Done in Submitty Development Jul 15, 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