-
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.
Tasks
body
removal]@elastic/stack-monitoring
#204865body
removal]@elastic/obs-ai-assistant
#204870body
removal]@elastic/security-generative-ai
#204859body
removal]@elastic/response-ops
#204882body
removal]@elastic/search-kibana
#204876body
removal]@elastic/security-detections-response
#204879body
removal]@elastic/kibana-management
#204871body
removal]@elastic/kibana-core
#204851body
removal]@elastic/security-data-analytics
#204852body
removal]@elastic/kibana-cloud-security-posture
#204860body
removal]@elastic/fleet
#204867body
removal]@elastic/appex-sharedux
#204874body
removal]@elastic/logstash
#204866body
removal]@elastic/security-detection-rule-management
#204855body
removal]@elastic/kibana-presentation
#204875body
removal]@elastic/kibana-security
#204862body
removal]@elastic/appex-qa
#204878body
removal]@elastic/observability-ui
#204873body
removal]@elastic/security-detection-engine
#204858body
removal]@elastic/security-threat-hunting
#204861body
removal]@elastic/security-solution
#204857body
removal]@elastic/kibana-data-discovery
#204881body
removal]@elastic/ml-ui
#204872body
removal]@elastic/obs-ux-infra_services-team
#204864body
removal]@elastic/security-threat-hunting-investigations
#204854body
removal]@elastic/security-entity-analytics
#204853body
removal]@elastic/kibana-visualizations
#204880body
removal]@elastic/obs-ux-management-team
#204877body
removal]@elastic/security-threat-hunting-explore
#204856body
removal]@elastic/security-defend-workflows
#204869body
removal]@elastic/obs-ux-logs-team
#204863The text was updated successfully, but these errors were encountered: