-
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
[UA] Make public APIs internal #214051
[UA] Make public APIs internal #214051
Conversation
Pinging @elastic/kibana-management (Team:Kibana Management) |
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 :)
.../plugins/private/upgrade_assistant/server/routes/reindex_data_streams/reindex_data_stream.ts
Show resolved
Hide resolved
@elasticmachine merge upstream |
Starting backport for target branches: 9.0 |
💚 Build Succeeded
Metrics [docs]
History
cc @sabarasaba |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
(cherry picked from commit b190747) # Conflicts: # x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_data_streams/reindex_data_stream.ts # x-pack/platform/plugins/private/upgrade_assistant/server/routes/reindex_indices/reindex_indices.ts
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
# Backport This will backport the following commits from `main` to `9.0`: - [[UA] Make public APIs internal (#214051)](#214051) [This](https://buildkiteartifacts.com/e0f3970e-3a75-4621-919f-e6c773e2bb12/0fda5127-f57f-42fb-8e5a-146b3d535916/019594b0-1482-4846-9843-39b20cd6c147/019594ce-e625-4572-9443-038ef0595665/target/test_failures/019594ce-e625-4572-9443-038ef0595665_4535fcc590c141c7ac8ba190ac3aa7fb.html?response-content-type=text%2Fhtml&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQPCP3C7LTY4FRNQO%2F20250317%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250317T075950Z&X-Amz-Expires=600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEOb%2F%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5KtA%3D%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=714d4b9a4a9fc7f98be4e96c086676552d463e44a0f042da1a18a7418975c48a) test was failing for this backport but not on main given that [it was skipped](#209048). Now that the routes are internal instead of public, they are generating additional counters. Fixing the test proved to be harder than expected so I've decided to skip the reindexing test for now in order to get this in asap. <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Ignacio Rivas","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-03-14T09:14:27Z","message":"[UA] Make public APIs internal (#214051)","sha":"b190747260ec06e763ede631c16612bacca787b0","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:breaking","Team:Kibana Management","Feature:Upgrade Assistant","v9.0.0","backport:version","v9.1.0"],"title":"[UA] Make public APIs internal","number":214051,"url":"https://github.com/elastic/kibana/pull/214051","mergeCommit":{"message":"[UA] Make public APIs internal (#214051)","sha":"b190747260ec06e763ede631c16612bacca787b0"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214051","number":214051,"mergeCommit":{"message":"[UA] Make public APIs internal (#214051)","sha":"b190747260ec06e763ede631c16612bacca787b0"}}]}] BACKPORT--> --------- Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: kibanamachine <[email protected]>
Related: https://github.com/elastic/dev/issues/3059
Summary
This PR makes the Upgrade Assistant reindexing APIs (reindex and batch reindex) to be internal. These APIs were initially introduced for Kibana’s own reindexing needs but were always marked as experimental. By restricting their access, we ensure they are only used by the UI and encourage users to rely on Elasticsearch’s native reindexing APIs for programmatic reindexing.
Release note
Upgrade Assistant public APIs for reindexing and batch reindexing have been made internal. We encourage users to rely on Elasticsearch’s native reindexing APIs for programmatic reindexing.