Added notice when there are some failed projects. This required some refactorings and fixes, that are also included in this commit.

This commit is contained in:
Šesták Vít
2016-05-13 19:31:47 +02:00
parent 604fc56d76
commit 6c8b2cf859
14 changed files with 104 additions and 51 deletions
+7 -2
View File
@@ -1,6 +1,6 @@
package controllers
final case class ReportInfo(
final case class ReportInfo private[controllers] (
projectId: String,
projectName: String,
fullId: String,
@@ -22,7 +22,12 @@ final case class ReportInfo(
override def hashCode(): Int = 517+fullId.hashCode
def bare = copy(subprojectNameOption = None, fullId = fullId.takeWhile(_ != '/'))
def bare = ReportInfo(
fullId = fullId.takeWhile(_ != '/'),
projectId = projectId,
projectName = projectName,
subprojectNameOption = None
)
def isBare = subprojectNameOption.isEmpty
def isNotBare = !isBare