Skip to content

Commit

Permalink
Fetch only Rules matching Rule Types (#262) (#272)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
1 parent 92949c7 commit 286ced2
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 286ced2

Please sign in to comment.