-
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
Remove deprecated 'body' key from Request interfaces #116102
Comments
Pinging @elastic/kibana-core (Team:Core) |
@elastic/clients-team do you know if removing the |
@pgayvallet I would like to include that as part of 9.0. It would significantly simplify the type definitions for each API. |
@JoshMock any updates on plans that we need to know about? |
The plan is tentative, primarily because I wanted to check back in with you all on how you're feeling about it. 🙂 What's the overall sentiment? While it does make sense to remove something that's deprecated (albeit, deprecated before my time as maintainer), automated codegen does all the work to maintain the second set of type definitions, so the effort isn't any higher. The only pain it really presents, then, is the readability of the generated API function code (e.g. In other words, it's a nice-to-have, but only for aesthetic/readability purposes. |
I'm ++ to having them removed and simplify the types. However, the hardest part for us to to identify all usages of |
@afharo When I get to some other 9.0 changes I hope to make, I can publish an alpha release to npm that drops |
@JoshMock, that sounds like a great approach. I wonder how many usages are missing tests (and implemented in cc @elastic/kibana-core, how does that sound? |
If I totally remove |
elasticsearch-js client deprecated
body
key usage in request interfaces.body
key support will be removed in the following major release.Kibana codebase should be upgraded accordingly to prepare for this breaking change.
Right now it affects DX of elasticsearch service mocks. Since consumers of the mocks have to declare a compatible interface explicitly.
The text was updated successfully, but these errors were encountered: