mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-20 00:04:59 +01:00
Lazy-load of dependency details
This commit is contained in:
@@ -274,6 +274,17 @@ class Statistics @Inject()(
|
||||
}
|
||||
}
|
||||
|
||||
def dependencyDetails(selectorOption: Option[String], depPrefix: String, depId: Hashes) = ReadAction.async { implicit req =>
|
||||
val (lastRefreshTime, resultsFuture) = projectReportsProvider.resultsForVersions(versions)
|
||||
resultsFuture flatMap { allResults =>
|
||||
println(selectorOption)
|
||||
select(allResults, selectorOption).fold(Future.successful(notFound())) { selection =>
|
||||
val dep = selection.result.groupedDependenciesByHashes(depId)
|
||||
Future.successful(Ok(views.html.dependencyDetailsInner(depPrefix = depPrefix, dep = dep, selectorOption = selectorOption)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def allFiles(selectorOption: Option[String]) = ReadAction.async { implicit req =>
|
||||
val (lastRefreshTime, resultsFuture) = projectReportsProvider.resultsForVersions(versions)
|
||||
resultsFuture flatMap { allResults =>
|
||||
|
||||
Reference in New Issue
Block a user