-
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/kibana-core
#204851
[ES body
removal] @elastic/kibana-core
#204851
Conversation
packages/kbn-es-types/src/index.ts
Outdated
import * as estypes from '@elastic/elasticsearch/lib/api/types'; | ||
// TODO: Remove when all usages have been migrated to non-body | ||
import { SearchRequest as SearchRequestWithBodyKey } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; | ||
import type { Field, QueryDslFieldAndFormat } from '@elastic/elasticsearch/lib/api/types'; |
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.
making no-body the default, and flagging the intention to remove the WithBody
one when all other PRs are merged.
Pinging @elastic/kibana-core (Team:Core) |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
@darnautov, I tried to submit one PR per code owner but unfortunately I ended up in a dead lock. The changes in this PR are as minimal as I could get to unblock this pr (that should unblock the rest). Apologies for the double ping. |
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.
LGTM, only obs-ux-infra-services files
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.
obs ux management changes LGTM
The build error is related to #206258. I'll rebase once it's merged. |
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.
logs-ux code changes LGTM, thank you!
⏳ Build in-progress
History
cc @afharo |
Starting backport for target branches: 8.x |
(cherry picked from commit 2cd882c)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…204851) (#206292) # Backport This will backport the following commits from `main` to `8.x`: - [[ES `body` removal] `@elastic/kibana-core` (#204851)](#204851) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-10T14:41:19Z","message":"[ES `body` removal] `@elastic/kibana-core` (#204851)","sha":"2cd882c50d01967a34d88463af630a8384fede9a","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services"],"title":"[ES `body` removal] `@elastic/kibana-core`","number":204851,"url":"https://github.com/elastic/kibana/pull/204851","mergeCommit":{"message":"[ES `body` removal] `@elastic/kibana-core` (#204851)","sha":"2cd882c50d01967a34d88463af630a8384fede9a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204851","number":204851,"mergeCommit":{"message":"[ES `body` removal] `@elastic/kibana-core` (#204851)","sha":"2cd882c50d01967a34d88463af630a8384fede9a"}}]}] BACKPORT--> Co-authored-by: Alejandro Fernández Haro <[email protected]>
Summary
Attempt to remove the deprecated
body
in the ES client.There are some (documented in code comments) workarounds to be able to merge. The following PRs will address the removal of other teams' code:
body
removal]@elastic/ml-ui
#204872body
removal]@elastic/obs-ux-management-team
#204877body
removal]@elastic/obs-ux-logs-team
#204863body
removal]@elastic/obs-ux-infra_services-team
#204864