Skip to content

Commit

Permalink
[7.x] [Logs UI] Correctly filter for log rate anomaly examples with m…
Browse files Browse the repository at this point in the history
…issing dataset (#76775) (#78184)

Backports the following commits to 7.x:
 - [Logs UI] Correctly filter for log rate anomaly examples with missing dataset (#76775)
  • Loading branch information
weltenwort committed Sep 22, 2020
1 parent cb3fca3 commit 1542029
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,27 @@ export const createLogEntryExamplesQuery = (
},
},
},
...(!!dataset
...(dataset !== ''
? [
{
term: {
[partitionField]: dataset,
},
},
]
: []),
: [
{
bool: {
must_not: [
{
exists: {
field: partitionField,
},
},
],
},
},
]),
...(categoryQuery
? [
{
Expand Down

0 comments on commit 1542029

Please sign in to comment.