Skip to content

Commit ec6526d

Browse files
authored
Fetch only Rules matching Rule Types (#262)
Signed-off-by: Sinisa Andric <[email protected]> Signed-off-by: Sinisa Andric <[email protected]>
1 parent ee374d5 commit ec6526d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

public/pages/Rules/models/RulesViewModelActor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { load, safeDump } from 'js-yaml';
77
import { RuleInfo } from '../../../../server/models/interfaces';
88
import { BrowserServices } from '../../../models/interfaces';
99
import { RuleItemInfoBase } from './types';
10+
import { ruleTypes } from "../utils/constants";
1011

1112
export interface RulesViewModel {
1213
allRules: RuleItemInfoBase[];
@@ -45,7 +46,9 @@ export class RulesViewModelActor {
4546
nested: {
4647
path: 'rule',
4748
query: {
48-
match_all: {},
49+
terms: {
50+
"rule.category": ruleTypes,
51+
}
4952
},
5053
},
5154
},

0 commit comments

Comments
 (0)