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 18, 2022
1 parent 2902bf8 commit ac90916
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 @@ -1344,7 +1344,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 @@ -212,7 +212,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 @@ -267,7 +267,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 ac90916

Please sign in to comment.