Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution] List all policies to display integrations properly #205103

Merged
merged 9 commits into from
Jan 8, 2025

Conversation

jkelas
Copy link
Contributor

@jkelas jkelas commented Dec 23, 2024

Resolves: #200167

Summary

Increase number of fetched package policies to the maximum. Currently only the first 20 policies (the first page) are returned, which results in treating all remaining ones as disabled.
I am proposing the simplest change of increasing the limit here to the maximum. There shouldn't be too many policies there, e.g. in the reproduction I am running there are 23 instead of 20.
If that is not enough, however, the alternative would be to discover that there are more policies than the specified limit and the next page(s) would have to be collected and the results added to the final list.

#BEFORE
image

#AFTER
image

Checklist

@jkelas jkelas added bug Fixes for quality problems that affect the customer experience release_note:fix Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area backport:version Backport to applied version labels 8.18 candidate 9.0 candidate v8.16.3 v8.17.1 labels Dec 23, 2024
@jkelas jkelas self-assigned this Dec 23, 2024
@jkelas jkelas changed the title List all policies to display integrations properly [Security Solution] List all policies to display integrations properly Dec 23, 2024
@jkelas jkelas marked this pull request as ready for review December 27, 2024 09:40
@jkelas jkelas requested a review from a team as a code owner December 27, 2024 09:40
@jkelas jkelas requested a review from dplumlee December 27, 2024 09:40
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management)

Copy link
Contributor

@dplumlee dplumlee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @jkelas, pulled down and tested with a couple different scenarios including the sdh-linked repro described in the initial ticket and could not reproduce the display issue

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #9 / console app console app tabs navigation tabs should be navigable through URL
  • [job] [logs] x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group5.ts / discover/group1 discover test nested query should support querying on nested fields

Metrics [docs]

✅ unchanged

History

cc @jkelas

@jkelas jkelas merged commit 6d49348 into elastic:main Jan 8, 2025
8 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.x

https://github.com/elastic/kibana/actions/runs/12671532124

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 8, 2025
elastic#205103)

**Resolves: elastic#200167**

## Summary

Increase number of fetched package policies to the maximum. Currently
only the first 20 policies (the first page) are returned, which results
in treating all remaining ones as disabled.
I am proposing the simplest change of increasing the limit here to the
maximum. There shouldn't be too many policies there, e.g. in the
reproduction I am running there are 23 instead of 20.
If that is not enough, however, the alternative would be to discover
that there are more policies than the specified limit and the next
page(s) would have to be collected and the results added to the final
list.

#BEFORE

![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)

#AFTER

![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 6d49348)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 8, 2025
elastic#205103)

**Resolves: elastic#200167**

## Summary

Increase number of fetched package policies to the maximum. Currently
only the first 20 policies (the first page) are returned, which results
in treating all remaining ones as disabled.
I am proposing the simplest change of increasing the limit here to the
maximum. There shouldn't be too many policies there, e.g. in the
reproduction I am running there are 23 instead of 20.
If that is not enough, however, the alternative would be to discover
that there are more policies than the specified limit and the next
page(s) would have to be collected and the results added to the final
list.

#BEFORE

![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)

#AFTER

![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 6d49348)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 8, 2025
elastic#205103)

**Resolves: elastic#200167**

## Summary

Increase number of fetched package policies to the maximum. Currently
only the first 20 policies (the first page) are returned, which results
in treating all remaining ones as disabled.
I am proposing the simplest change of increasing the limit here to the
maximum. There shouldn't be too many policies there, e.g. in the
reproduction I am running there are 23 instead of 20.
If that is not enough, however, the alternative would be to discover
that there are more policies than the specified limit and the next
page(s) would have to be collected and the results added to the final
list.

#BEFORE

![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)

#AFTER

![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 6d49348)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.17
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

crespocarlos pushed a commit to crespocarlos/kibana that referenced this pull request Jan 8, 2025
elastic#205103)

**Resolves: elastic#200167**

## Summary

Increase number of fetched package policies to the maximum. Currently
only the first 20 policies (the first page) are returned, which results
in treating all remaining ones as disabled.
I am proposing the simplest change of increasing the limit here to the
maximum. There shouldn't be too many policies there, e.g. in the
reproduction I am running there are 23 instead of 20.
If that is not enough, however, the alternative would be to discover
that there are more policies than the specified limit and the next
page(s) would have to be collected and the results added to the final
list.

#BEFORE

![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)

#AFTER 

![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
kibanamachine added a commit that referenced this pull request Jan 9, 2025
…properly (#205103) (#205890)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Security Solution] List all policies to display integrations
properly (#205103)](#205103)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jacek
Kolezynski","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-08T13:26:32Z","message":"[Security
Solution] List all policies to display integrations properly
(#205103)\n\n**Resolves: #200167**\n\n## Summary\n\nIncrease number of
fetched package policies to the maximum. Currently\nonly the first 20
policies (the first page) are returned, which results\nin treating all
remaining ones as disabled.\nI am proposing the simplest change of
increasing the limit here to the\nmaximum. There shouldn't be too many
policies there, e.g. in the\nreproduction I am running there are 23
instead of 20.\nIf that is not enough, however, the alternative would be
to discover\nthat there are more policies than the specified limit and
the next\npage(s) would have to be collected and the results added to
the
final\nlist.\n\n#BEFORE\n\n![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)\n\n#AFTER
\n\n![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6d49348db89302cf658637e8e8bd9e33760a2cad","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","v9.0.0","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","Feature:Prebuilt Detection
Rules","backport:version","v8.18.0","v8.16.3","v8.17.1"],"title":"[Security
Solution] List all policies to display integrations
properly","number":205103,"url":"https://github.com/elastic/kibana/pull/205103","mergeCommit":{"message":"[Security
Solution] List all policies to display integrations properly
(#205103)\n\n**Resolves: #200167**\n\n## Summary\n\nIncrease number of
fetched package policies to the maximum. Currently\nonly the first 20
policies (the first page) are returned, which results\nin treating all
remaining ones as disabled.\nI am proposing the simplest change of
increasing the limit here to the\nmaximum. There shouldn't be too many
policies there, e.g. in the\nreproduction I am running there are 23
instead of 20.\nIf that is not enough, however, the alternative would be
to discover\nthat there are more policies than the specified limit and
the next\npage(s) would have to be collected and the results added to
the
final\nlist.\n\n#BEFORE\n\n![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)\n\n#AFTER
\n\n![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6d49348db89302cf658637e8e8bd9e33760a2cad"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205103","number":205103,"mergeCommit":{"message":"[Security
Solution] List all policies to display integrations properly
(#205103)\n\n**Resolves: #200167**\n\n## Summary\n\nIncrease number of
fetched package policies to the maximum. Currently\nonly the first 20
policies (the first page) are returned, which results\nin treating all
remaining ones as disabled.\nI am proposing the simplest change of
increasing the limit here to the\nmaximum. There shouldn't be too many
policies there, e.g. in the\nreproduction I am running there are 23
instead of 20.\nIf that is not enough, however, the alternative would be
to discover\nthat there are more policies than the specified limit and
the next\npage(s) would have to be collected and the results added to
the
final\nlist.\n\n#BEFORE\n\n![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)\n\n#AFTER
\n\n![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6d49348db89302cf658637e8e8bd9e33760a2cad"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jacek Kolezynski <[email protected]>
kibanamachine added a commit that referenced this pull request Jan 9, 2025
…roperly (#205103) (#205891)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] List all policies to display integrations
properly (#205103)](#205103)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jacek
Kolezynski","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-08T13:26:32Z","message":"[Security
Solution] List all policies to display integrations properly
(#205103)\n\n**Resolves: #200167**\n\n## Summary\n\nIncrease number of
fetched package policies to the maximum. Currently\nonly the first 20
policies (the first page) are returned, which results\nin treating all
remaining ones as disabled.\nI am proposing the simplest change of
increasing the limit here to the\nmaximum. There shouldn't be too many
policies there, e.g. in the\nreproduction I am running there are 23
instead of 20.\nIf that is not enough, however, the alternative would be
to discover\nthat there are more policies than the specified limit and
the next\npage(s) would have to be collected and the results added to
the
final\nlist.\n\n#BEFORE\n\n![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)\n\n#AFTER
\n\n![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6d49348db89302cf658637e8e8bd9e33760a2cad","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","v9.0.0","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","Feature:Prebuilt Detection
Rules","backport:version","v8.18.0","v8.16.3","v8.17.1"],"title":"[Security
Solution] List all policies to display integrations
properly","number":205103,"url":"https://github.com/elastic/kibana/pull/205103","mergeCommit":{"message":"[Security
Solution] List all policies to display integrations properly
(#205103)\n\n**Resolves: #200167**\n\n## Summary\n\nIncrease number of
fetched package policies to the maximum. Currently\nonly the first 20
policies (the first page) are returned, which results\nin treating all
remaining ones as disabled.\nI am proposing the simplest change of
increasing the limit here to the\nmaximum. There shouldn't be too many
policies there, e.g. in the\nreproduction I am running there are 23
instead of 20.\nIf that is not enough, however, the alternative would be
to discover\nthat there are more policies than the specified limit and
the next\npage(s) would have to be collected and the results added to
the
final\nlist.\n\n#BEFORE\n\n![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)\n\n#AFTER
\n\n![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6d49348db89302cf658637e8e8bd9e33760a2cad"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205103","number":205103,"mergeCommit":{"message":"[Security
Solution] List all policies to display integrations properly
(#205103)\n\n**Resolves: #200167**\n\n## Summary\n\nIncrease number of
fetched package policies to the maximum. Currently\nonly the first 20
policies (the first page) are returned, which results\nin treating all
remaining ones as disabled.\nI am proposing the simplest change of
increasing the limit here to the\nmaximum. There shouldn't be too many
policies there, e.g. in the\nreproduction I am running there are 23
instead of 20.\nIf that is not enough, however, the alternative would be
to discover\nthat there are more policies than the specified limit and
the next\npage(s) would have to be collected and the results added to
the
final\nlist.\n\n#BEFORE\n\n![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)\n\n#AFTER
\n\n![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6d49348db89302cf658637e8e8bd9e33760a2cad"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jacek Kolezynski <[email protected]>
kibanamachine added a commit that referenced this pull request Jan 9, 2025
…properly (#205103) (#205889)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Security Solution] List all policies to display integrations
properly (#205103)](#205103)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jacek
Kolezynski","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-08T13:26:32Z","message":"[Security
Solution] List all policies to display integrations properly
(#205103)\n\n**Resolves: #200167**\n\n## Summary\n\nIncrease number of
fetched package policies to the maximum. Currently\nonly the first 20
policies (the first page) are returned, which results\nin treating all
remaining ones as disabled.\nI am proposing the simplest change of
increasing the limit here to the\nmaximum. There shouldn't be too many
policies there, e.g. in the\nreproduction I am running there are 23
instead of 20.\nIf that is not enough, however, the alternative would be
to discover\nthat there are more policies than the specified limit and
the next\npage(s) would have to be collected and the results added to
the
final\nlist.\n\n#BEFORE\n\n![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)\n\n#AFTER
\n\n![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6d49348db89302cf658637e8e8bd9e33760a2cad","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","v9.0.0","Team:Detections
and Resp","Team: SecuritySolution","Team:Detection Rule
Management","Feature:Prebuilt Detection
Rules","backport:version","v8.18.0","v8.16.3","v8.17.1"],"title":"[Security
Solution] List all policies to display integrations
properly","number":205103,"url":"https://github.com/elastic/kibana/pull/205103","mergeCommit":{"message":"[Security
Solution] List all policies to display integrations properly
(#205103)\n\n**Resolves: #200167**\n\n## Summary\n\nIncrease number of
fetched package policies to the maximum. Currently\nonly the first 20
policies (the first page) are returned, which results\nin treating all
remaining ones as disabled.\nI am proposing the simplest change of
increasing the limit here to the\nmaximum. There shouldn't be too many
policies there, e.g. in the\nreproduction I am running there are 23
instead of 20.\nIf that is not enough, however, the alternative would be
to discover\nthat there are more policies than the specified limit and
the next\npage(s) would have to be collected and the results added to
the
final\nlist.\n\n#BEFORE\n\n![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)\n\n#AFTER
\n\n![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6d49348db89302cf658637e8e8bd9e33760a2cad"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16","8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/205103","number":205103,"mergeCommit":{"message":"[Security
Solution] List all policies to display integrations properly
(#205103)\n\n**Resolves: #200167**\n\n## Summary\n\nIncrease number of
fetched package policies to the maximum. Currently\nonly the first 20
policies (the first page) are returned, which results\nin treating all
remaining ones as disabled.\nI am proposing the simplest change of
increasing the limit here to the\nmaximum. There shouldn't be too many
policies there, e.g. in the\nreproduction I am running there are 23
instead of 20.\nIf that is not enough, however, the alternative would be
to discover\nthat there are more policies than the specified limit and
the next\npage(s) would have to be collected and the results added to
the
final\nlist.\n\n#BEFORE\n\n![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)\n\n#AFTER
\n\n![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)\n\n###
Checklist\n\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6d49348db89302cf658637e8e8bd9e33760a2cad"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jacek Kolezynski <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 13, 2025
elastic#205103)

**Resolves: elastic#200167**

## Summary

Increase number of fetched package policies to the maximum. Currently
only the first 20 policies (the first page) are returned, which results
in treating all remaining ones as disabled.
I am proposing the simplest change of increasing the limit here to the
maximum. There shouldn't be too many policies there, e.g. in the
reproduction I am running there are 23 instead of 20.
If that is not enough, however, the alternative would be to discover
that there are more policies than the specified limit and the next
page(s) would have to be collected and the results added to the final
list.

#BEFORE

![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)

#AFTER 

![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
elastic#205103)

**Resolves: elastic#200167**

## Summary

Increase number of fetched package policies to the maximum. Currently
only the first 20 policies (the first page) are returned, which results
in treating all remaining ones as disabled.
I am proposing the simplest change of increasing the limit here to the
maximum. There shouldn't be too many policies there, e.g. in the
reproduction I am running there are 23 instead of 20.
If that is not enough, however, the alternative would be to discover
that there are more policies than the specified limit and the next
page(s) would have to be collected and the results added to the final
list.

#BEFORE

![image](https://github.com/user-attachments/assets/c98ab5a5-e822-459e-8abc-b45a963e93d7)

#AFTER 

![image](https://github.com/user-attachments/assets/ac519ec2-5674-4d17-bea3-7b6df72078dc)

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience Feature:Prebuilt Detection Rules Security Solution Prebuilt Detection Rules area release_note:fix Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.16.3 v8.17.1 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Security Solution] Rule integrations are displayed disabled while being enabled
5 participants