Skip to content

Commit

Permalink
#1449 Add filter in aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 23, 2020
1 parent 52cb919 commit b422527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/controllers/v0/QueryCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class QueryCtrl(entrypoint: Entrypoint, @Named("with-thehive-schema") db: Databa
.map(inputFilter => filterQuery.toQuery(inputFilter))
.fold(ctrl.initialQuery)(ctrl.initialQuery.andThen)
groupAggs <- aggregationParser.sequence(field.get("stats"))
} yield groupAggs.map(a => filteredQuery andThen new AggregationQuery(publicProperties).toQuery(a))
} yield groupAggs.map(a => filteredQuery andThen new AggregationQuery(db, publicProperties, queryExecutor.filterQuery).toQuery(a))
}

val searchParser: FieldsParser[Query] = FieldsParser[Query]("search") {
Expand Down

0 comments on commit b422527

Please sign in to comment.