-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SIEM] [Detection Engine] Changes find_statuses route HTTP method from GET to POST #63508
Conversation
Pinging @elastic/siem (Team:SIEM) |
Update the script of: x-pack/legacy/plugins/siem/server/lib/detection_engine/scripts/find_rules_statuses_by_ids.sh Optional but adding a backend e2e test for this would be really helpful to just at least test that this endpoint responds with a 200. For bodies and stuff to be consistent you can still test them but might have to post the rule as "enabled: false" first. At least one backend test would be a really nice complement but optional at this point since there's unit tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fast turn around time! 👍
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…tic#63508) * changes http method for find_statuses route from GET to POST * fix test string formatting * update sample shell script for find statuses route * adds e2e test for find statuses
…tic#63508) * changes http method for find_statuses route from GET to POST * fix test string formatting * update sample shell script for find statuses route * adds e2e test for find statuses
Pinging @elastic/security-solution (Team: SecuritySolution) |
Summary
This PR fixes #63481 . The URL query string was growing too large after around 200-ish rule ids and hapi could not parse that many items, so we changed the http method from GET to POST with a body.
Checklist
Delete any items that are not applicable to this PR.
For maintainers