Skip to content
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

Merged
merged 10 commits into from
Jan 10, 2025

Conversation

afharo
Copy link
Member

@afharo afharo commented Dec 19, 2024

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:

@afharo afharo self-assigned this Dec 19, 2024
@afharo afharo added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Dec 19, 2024
Comment on lines 10 to 13
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';
Copy link
Member Author

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.

@afharo afharo marked this pull request as ready for review December 20, 2024 12:53
@afharo afharo requested review from a team as code owners December 20, 2024 12:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@afharo afharo enabled auto-merge (squash) December 20, 2024 12:53
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Dec 20, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@darnautov
Copy link
Contributor

@afharo is it worth consolidating all ml-ui related changes into #204872?

@afharo
Copy link
Member Author

afharo commented Dec 24, 2024

@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.

Copy link
Contributor

@rmyz rmyz left a 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

Copy link
Contributor

@dominiqueclarke dominiqueclarke left a 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

@afharo
Copy link
Member Author

afharo commented Jan 10, 2025

The build error is related to #206258. I'll rebase once it's merged.

Copy link
Member

@weltenwort weltenwort left a 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!

@elasticmachine
Copy link
Contributor

⏳ Build in-progress

  • Buildkite Build
  • Commit: bf5a9cd
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-204851-bf5a9cdfbd66

History

cc @afharo

@afharo afharo merged commit 2cd882c into elastic:main Jan 10, 2025
9 checks passed
@afharo afharo deleted the esclient/remove-deprecated-body/core branch January 10, 2025 14:41
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12711606245

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jan 10, 2025
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 10, 2025
…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]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 13, 2025
viduni94 pushed a commit to viduni94/kibana that referenced this pull request Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) ci:project-deploy-observability Create an Observability project elasticsearch-js-9 release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants