[ES body
removal] @elastic/security-defend-workflows
#204869
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)