Skip to content

Commit

Permalink
Fetch only Rules matching Rule Types (opensearch-project#262) (opense…
Browse files Browse the repository at this point in the history
…arch-project#272)

Signed-off-by: Sinisa Andric <[email protected]>

Signed-off-by: Sinisa Andric <[email protected]>
(cherry picked from commit ec6526d)

Co-authored-by: Sinisa Andric <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
2 people authored and AWSHurneyt committed Feb 22, 2023
1 parent be6d445 commit 3ffc2ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/pages/Rules/models/RulesViewModelActor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { load, safeDump } from 'js-yaml';
import { RuleInfo } from '../../../../server/models/interfaces';
import { BrowserServices } from '../../../models/interfaces';
import { RuleItemInfoBase } from './types';
import { ruleTypes } from "../utils/constants";

export interface RulesViewModel {
allRules: RuleItemInfoBase[];
Expand Down Expand Up @@ -45,7 +46,9 @@ export class RulesViewModelActor {
nested: {
path: 'rule',
query: {
match_all: {},
terms: {
"rule.category": ruleTypes,
}
},
},
},
Expand Down

0 comments on commit 3ffc2ad

Please sign in to comment.