Give more information when comparing commits.

This commit is contained in:
Šesták Vít
2017-12-08 15:58:08 +01:00
parent 9343619ca9
commit 644bd3b539

View File

@@ -412,7 +412,7 @@ class Statistics @Inject()(
def compare[T](f: Result => Set[T]) = new SetDiff(f(selection.result), f(adHocReports))
Ok(Json.obj(
"vulnerabilities"->showDiff(compare(extractVulnerabilities)),
"dependencies"->showDiff(compare(_.groupedDependencies.map(GroupedDependencyIdentifier.fromGroupedDependency).toSet))
"dependencies"->showDiff(compare(_.groupedDependencies.map(GroupedDependencyDetailedIdentifier.fromGroupedDependency).toSet))
))
}
}