Skip to content

Legacy ES plugin pre-removal cleanup#75779

Merged
pgayvallet merged 13 commits intoelastic:masterfrom
pgayvallet:kbn-xxx-legacy-es-plugin-pre-removal
Aug 26, 2020
Merged

Legacy ES plugin pre-removal cleanup#75779
pgayvallet merged 13 commits intoelastic:masterfrom
pgayvallet:kbn-xxx-legacy-es-plugin-pre-removal

Conversation

@pgayvallet
Copy link
Contributor

@pgayvallet pgayvallet commented Aug 24, 2020

Summary

Related to #71927

Remove all the dead parts of the legacy ES plugin, only keeping the 'proxy' / endpoints that are still used until #73993 and #73992 are addressed.

@pgayvallet pgayvallet added Feature:Legacy Removal Issues related to removing legacy Kibana release_note:skip Skip the PR/issue when compiling release notes Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.10.0 labels Aug 25, 2020
@pgayvallet pgayvallet marked this pull request as ready for review August 25, 2020 08:51
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@pgayvallet pgayvallet requested a review from a team August 25, 2020 08:52

return new kibana.Plugin({
require: ['kibana'],
require: [],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it affect an execution order?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, the kibana legacy plugin is no longer assured to be initialized before the es one. However as the kibana plugin is an empty shell now, this shouldn't have any consequences (and is preparing the actual removal of the kibana plugin)

status: { on: (status: string, cb: () => void) => void };
getCluster(name: string): Cluster;
createCluster(name: string, config: ClusterConfig): Cluster;
waitUntilReady(): Promise<void>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove this comment as well

* waitUntilReady() waits for the kibana index to exist and then for the

@pgayvallet
Copy link
Contributor Author

retest

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

oss distributable file count

id value diff baseline
total 26354 -2 26356

distributable file count

id value diff baseline
total 53196 -2 53198

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@pgayvallet pgayvallet merged commit d2d7b0d into elastic:master Aug 26, 2020
pgayvallet added a commit to pgayvallet/kibana that referenced this pull request Aug 26, 2020
* delete integration tests

* remove legacy version healthcheck / waitUntilReady

* remove handleESError

* remove createCluster

* no longer depends on kibana plugin

* fix kbn_server

* remove deprecated comment and dead code

* revert code removal, apparently was used (?)

* Revert "revert code removal, apparently was used (?)"

This reverts commit 6948185
# Conflicts:
#	src/legacy/core_plugins/elasticsearch/index.js
#	src/legacy/core_plugins/elasticsearch/lib/__tests__/handle_es_error.js
#	src/legacy/core_plugins/elasticsearch/lib/handle_es_error.js
pgayvallet added a commit that referenced this pull request Aug 27, 2020
* delete integration tests

* remove legacy version healthcheck / waitUntilReady

* remove handleESError

* remove createCluster

* no longer depends on kibana plugin

* fix kbn_server

* remove deprecated comment and dead code

* revert code removal, apparently was used (?)

* Revert "revert code removal, apparently was used (?)"

This reverts commit 6948185
# Conflicts:
#	src/legacy/core_plugins/elasticsearch/index.js
#	src/legacy/core_plugins/elasticsearch/lib/__tests__/handle_es_error.js
#	src/legacy/core_plugins/elasticsearch/lib/handle_es_error.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Legacy Removal Issues related to removing legacy Kibana release_note:skip Skip the PR/issue when compiling release notes Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.10.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants