-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
Add option to deactivate old project versions on BOM upload #4533
base: master
Are you sure you want to change the base?
Add option to deactivate old project versions on BOM upload #4533
Conversation
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 |
While not pretty this MR makes this work without any refactoring of the existing code. I can provide a refactored version of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also extend the other uploadBom
accordingly, so they're consistent functionality-wise.
src/main/java/org/dependencytrack/resources/v1/BomResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dependencytrack/resources/v1/BomResource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dependencytrack/resources/v1/BomResource.java
Outdated
Show resolved
Hide resolved
e59f655
to
4e90c94
Compare
Fixes DependencyTrack#4532 Signed-off-by: Christoffer Rumohr <[email protected]>
4e90c94
to
dfa6e6f
Compare
Done. |
Description
Fixes #4532
Addressed Issue
Current Behavior
In a continuous delivery scenario every commit to a software project creates a new version (and therefore project) in Dependency-Track. Over time there will be hundreds of "active" versions, even though they are actually not "active".
New Behavior
The
POST /v1/bom
resource has another flag in addition to the already existingisLatest
parameter:isActiveExclusively
.When both arguments are
true
all "old" versions are deactivated and do not clutter the UI anymore.Checklist