Skip to content

Commit

Permalink
#1410 Rename case user to assignee
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jun 26, 2020
1 parent aaf64c0 commit 8859768
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dto/src/main/scala/org/thp/thehive/dto/v1/Case.scala
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ case class OutputCase(
pap: Int,
status: String,
summary: Option[String] = None,
user: Option[String],
assignee: Option[String],
customFields: Set[OutputCustomFieldValue] = Set.empty
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class Properties @Inject() (
.property("pap", UniMapping.int)(_.field.updatable)
.property("status", UniMapping.string)(_.field.updatable)
.property("summary", UniMapping.string.optional)(_.field.updatable)
.property("user", UniMapping.string.optional)(_.select(_.user.login).custom { (_, login, vertex, _, graph, authContext) =>
.property("assignee", UniMapping.string.optional)(_.select(_.user.login).custom { (_, login, vertex, _, graph, authContext) =>
for {
c <- caseSrv.get(vertex)(graph).getOrFail("Case")
user <- login.map(userSrv.get(_)(graph).getOrFail("User")).flip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object TestCase {
outputCase.pap,
outputCase.status,
outputCase.summary,
outputCase.user,
outputCase.assignee,
outputCase.customFields
)
}
Expand Down

0 comments on commit 8859768

Please sign in to comment.