mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
# Backport This will backport the following commits from `main` to `8.6`: - [[Security Solution][List details page]: Fix number of linked rules count (#145976)](https://github.com/elastic/kibana/pull/145976) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Wafaa Nasr","email":"wafaa.nasr@elastic.co"},"sourceCommit":{"committedDate":"2022-11-22T14:33:44Z","message":"[Security Solution][List details page]: Fix number of linked rules count (#145976)\n\n## Summary\r\n\r\n- Addresses https://github.com/elastic/kibana/issues/145807\r\n- Getting all Rules by passing all the pagination object as in the Rule\r\nExceptions page","sha":"cd8dc111fa252d15a7971f38935301cdf60b2a68","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team: SecuritySolution","Team:Security Solution Platform","ci:cloud-deploy","v8.6.0","v8.7.0"],"number":145976,"url":"https://github.com/elastic/kibana/pull/145976","mergeCommit":{"message":"[Security Solution][List details page]: Fix number of linked rules count (#145976)\n\n## Summary\r\n\r\n- Addresses https://github.com/elastic/kibana/issues/145807\r\n- Getting all Rules by passing all the pagination object as in the Rule\r\nExceptions page","sha":"cd8dc111fa252d15a7971f38935301cdf60b2a68"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145976","number":145976,"mergeCommit":{"message":"[Security Solution][List details page]: Fix number of linked rules count (#145976)\n\n## Summary\r\n\r\n- Addresses https://github.com/elastic/kibana/issues/145807\r\n- Getting all Rules by passing all the pagination object as in the Rule\r\nExceptions page","sha":"cd8dc111fa252d15a7971f38935301cdf60b2a68"}}]}] BACKPORT--> Co-authored-by: Wafaa Nasr <wafaa.nasr@elastic.co>
This commit is contained in:
parent
b58576010d
commit
07884bf0a1
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ export const getListRules = async (listId: string) => {
|
|||
const abortCtrl = new AbortController();
|
||||
const { data: rules } = await fetchRules({
|
||||
signal: abortCtrl.signal,
|
||||
pagination: {
|
||||
page: 1,
|
||||
perPage: 10000,
|
||||
},
|
||||
});
|
||||
abortCtrl.abort();
|
||||
return rules.reduce((acc: Rule[], rule, index) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue