mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-20 08:15:19 +01:00
Added a standalone page for library
This commit is contained in:
@@ -312,6 +312,18 @@ class Statistics @Inject()(
|
||||
}
|
||||
}
|
||||
|
||||
def library(selectorOption: Option[String], depId: Hashes) = ReadAction.async { implicit req =>
|
||||
val (lastRefreshTime, resultsFuture) = projectReportsProvider.resultsForVersions(versions)
|
||||
resultsFuture flatMap { allResults =>
|
||||
select(allResults, selectorOption).fold(Future.successful(notFound())) { selection =>
|
||||
Future.successful(Ok(views.html.library(
|
||||
dep = selection.result.groupedDependenciesByHashes(depId),
|
||||
selectorOption = selectorOption
|
||||
)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def affectedProjects(depId: Hashes) = ReadAction.async { implicit req =>
|
||||
val (lastRefreshTime, resultsFuture) = projectReportsProvider.resultsForVersions(versions)
|
||||
resultsFuture flatMap { case (successfulResults, failedResults) =>
|
||||
|
||||
Reference in New Issue
Block a user