-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port : Fix REST endpoints for adding tags #1042
Conversation
Co-Authored-By: Niklas <[email protected]>
@sahibamittal The test is failing because this condition: hyades-apiserver/src/main/java/org/dependencytrack/resources/v1/ProjectResource.java Lines 647 to 652 in 6f4ed40
can no longer happen in this location. The unique constraint violation originating from the database will only be thrown when the DB transaction commits. Because the statement in question is also wrapped in a hyades-apiserver/src/main/java/org/dependencytrack/resources/v1/ProjectResource.java Line 607 in 6f4ed40
the transaction will only commit after that call completes, so technically here. The solution is to wrap the outermost I am not sure why that behavior changed in this particular PR though... |
Thanks for checking Niklas 👍🏼 |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Description
Fixes REST endpoints for adding tags.
Addressed Issue
Ports DependencyTrack/dependency-track#4543
Port change DependencyTrack/hyades#1358
Checklist