Skip to content

Commit

Permalink
Enable logic for collection projects using isLatest flag
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf King <rkg@mm-software.com>
  • Loading branch information
rkg-mm committed Oct 3, 2024
1 parent 5ad555c commit 8bf4556
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ private void updateAggregateDirectChildrenWithTagCollectionMetrics(final Project
private void updateLatestVersionChildrenCollectionMetrics(final Project project, final PersistenceManager pm, final Counters counters) {
LOGGER.warn("Collection logic LATEST_VERSION_CHILDREN not yet implemented. Waiting for https://github.com/DependencyTrack/dependency-track/issues/4148");
/*
TODO: Enable and test once #4148 is implemented
TODO: Create Test case in ProjectMetricsUpdateTaskTest after implementation
TODO: Create Test case in ProjectMetricsUpdateTaskTest*/
LOGGER.debug("Fetching metrics of children of collection project " + project.getUuid() +
" using collection logic " + project.getCollectionLogic());

Expand All @@ -257,7 +256,7 @@ private void updateLatestVersionChildrenCollectionMetrics(final Project project,
// Hint: There could be multiple children with isLatest==true from different project parts, so we aggregate those.
for (ProjectMetrics metrics : childrenMetrics) {
this.addToCounters(counters, metrics);
}*/
}
}

private List<Component> fetchNextComponentsPage(final PersistenceManager pm, final Project project, final Long lastId) throws Exception {
Expand Down

0 comments on commit 8bf4556

Please sign in to comment.