Skip to content

Commit

Permalink
#1799 Update elastic4play for ES7.11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Feb 19, 2021
1 parent fa4c27e commit 6799fa6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object Dependencies {

val reflections = "org.reflections" % "reflections" % "0.9.11"
val zip4j = "net.lingala.zip4j" % "zip4j" % "2.6.0"
val elastic4play = "org.thehive-project" %% "elastic4play" % "1.12.3"
val elastic4play = "org.thehive-project" %% "elastic4play" % "1.13.0"
val akkaCluster = "com.typesafe.akka" %% "akka-cluster" % play.core.PlayVersion.akkaVersion
val akkaClusterTyped = "com.typesafe.akka" %% "akka-cluster-typed" % play.core.PlayVersion.akkaVersion
val akkaClusterTools = "com.typesafe.akka" %% "akka-cluster-tools" % play.core.PlayVersion.akkaVersion
Expand Down
3 changes: 2 additions & 1 deletion thehive-backend/app/models/Migration.scala
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Migration(
renameAttribute("reportTemplate", "analyzerId", "analyzers"), // reportTemplate refers only one analyzer
renameAttribute("reportTemplate", "reportType", "flavor"), // rename flavor into reportType
removeAttribute("case", "isIncident"), // this information is now stored in resolutionStatus
mapEntity("case") { c => // add case owner
mapEntity("case") { c => // add case owner
val owner = (c \ "createdBy")
.asOpt[JsString]
.getOrElse(JsString("init"))
Expand Down Expand Up @@ -375,6 +375,7 @@ class Migration(
}
)
case DatabaseState(15) => Nil
case DatabaseState(16) => Nil
}

private def generateAlertId(alert: JsObject): String = {
Expand Down
2 changes: 1 addition & 1 deletion thehive-backend/app/models/package.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package object models {
val modelVersion = 16
val modelVersion = 17
}

0 comments on commit 6799fa6

Please sign in to comment.