Introduce isLatest flag to mark latest version of project #4148
Labels
enhancement
New feature or request
p2
Non-critical bugs, and features that help organizations to identify and reduce risk
size/M
Medium effort
Milestone
Current Behavior
Currently, Dependency-Track has no idea which version is the latest. Version numbers follow different formats, so figuring this out automatically is difficult, as no solution will fit everyone.
Some users try to get around this, by labelling latest versions with tags. However, having this information in a standardized format would be much more beneficial:
Proposed Behavior
Based on discussion with @nscuro in #3258 there should be a flag "isLatest" introduced, which marks a project as latest version.
When this is set to TRUE on a project, the flag automatically is reset to FALSE on all other versions of this project.
This can be enforced with UNIQUE constraint on (NAME, IS_LATEST).
Hint:
If #3258 is merged already, the preparation for Collection logic LATEST_VERSION_CHILDREN in ProjectMetricsUpdateTask.updateLatestVersionChildrenCollectionMetrics() should be activated during implementation of this feature.
Checklist
The text was updated successfully, but these errors were encountered: