Skip to content

Commit

Permalink
[RAM] Allow more tags in the filter for rule list table (#145413)
Browse files Browse the repository at this point in the history
## Summary

Allow more tags in the filter for the rule list table. This an easy win
before creating a specific API to get more tags for the filter an dit
will help this [SDH](elastic/sdh-kibana#3281)

To make sure that this change won't impact performance we test it the
aggregation with GB of data and we did not see any reason to worry about
it.

(cherry picked from commit b536a16)
  • Loading branch information
XavierM committed Nov 16, 2022
1 parent b05e54b commit 62e1d0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ export class RulesClient {
terms: { field: 'alert.attributes.muteAll' },
},
tags: {
terms: { field: 'alert.attributes.tags', order: { _key: 'asc' } },
terms: { field: 'alert.attributes.tags', order: { _key: 'asc' }, size: 50 },
},
snoozed: {
nested: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ describe('aggregate()', () => {
},
},
tags: {
terms: { field: 'alert.attributes.tags', order: { _key: 'asc' } },
terms: { field: 'alert.attributes.tags', order: { _key: 'asc' }, size: 50 },
},
},
},
Expand Down Expand Up @@ -285,7 +285,7 @@ describe('aggregate()', () => {
},
},
tags: {
terms: { field: 'alert.attributes.tags', order: { _key: 'asc' } },
terms: { field: 'alert.attributes.tags', order: { _key: 'asc' }, size: 50 },
},
},
},
Expand Down

0 comments on commit 62e1d0b

Please sign in to comment.