Commit 9f8bbb62 authored by bow's avatar bow
Browse files

Rename PipelineStats.name -> PipelineStats.pipelineName

parent 7af10190
......@@ -107,14 +107,14 @@ class StatsControllerSpec extends SentinelServletSpec {
"which" should {
"contain statistics over the first pipeline" in {
priorResponse.body must /#(0) /("name" -> "gentrap")
priorResponse.body must /#(0) /("pipelineName" -> "gentrap")
priorResponse.body must /#(0) /("nLibs" -> 10)
priorResponse.body must /#(0) /("nRuns" -> 3)
priorResponse.body must /#(0) /("nSamples" -> 6)
}
"contain statistics over the second pipeline" in {
priorResponse.body must /#(1) /("name" -> "unsupported")
priorResponse.body must /#(1) /("pipelineName" -> "unsupported")
priorResponse.body must /#(1) /("nLibs" -> 0)
priorResponse.body must /#(1) /("nRuns" -> 1)
priorResponse.body must /#(1) /("nSamples" -> 0)
......
......@@ -21,13 +21,13 @@ import com.novus.salat.annotations.Key
/**
* Container for per-pipeline statistics.
*
* @param name Pipeline name.
* @param pipelineName Pipeline name.
* @param nRuns Total number of runs of the pipeline.
* @param nSamples Total number of samples from all runs of the pipeline.
* @param nLibs Total number of libraries from all runs of the pipeline.
*/
case class PipelineStats(
@Key("_id") name: String,
@Key("_id") pipelineName: String,
nRuns: Int,
nSamples: Int,
nLibs: Int)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment