-
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
[ES body
removal] @elastic/security-detection-engine
#204858
base: main
Are you sure you want to change the base?
[ES body
removal] @elastic/security-detection-engine
#204858
Conversation
…rity-detection-engine
…rity-detection-engine
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
Removing |
…-deprecated-body/elastic/security-detection-engine
@yctercero, thanks for raising awareness! I've added the label |
…rity-detection-engine
⏳ Build in-progress, with failures
Failed CI Steps
Test Failures
History
cc @afharo |
…ion-engine' of https://github.com/afharo/kibana into esclient/remove-deprecated-body/elastic/security-detection-engine
@nkhristinin |
Summary
in preparation for 9.0, we're trying to remove the deprecated
body
param in the ES client.To make it easier to review, the changes have been split into multiple PRs, trying to group them per code owner as much as possible.
However, unfortunately, due to cross-dependencies, your team may be pinged more than once. Apologies for that additional noise.
What changes?
Nothing changes internally. The ES client already places everything where it should be when performing the request to ES (URL vs. query string vs. body params).
The main change is in the usage: when using the JS ES client, developers don't need to identify what goes in the body and what goes in the URL. All settings are provided at the root level. So, in summary, the change is:
For this reason, enabling the "Hide whitespace changes" option when reviewing is recommended.
Some exceptions to this rule:
body
array withoperations
array (direct replacement)body
array withsettings
(direct replacement)