Skip to content

Fix ClusterManager call parameters#53263

Merged
pgayvallet merged 4 commits intoelastic:masterfrom
pgayvallet:kbn-52860-legacy-cluster-config
Dec 18, 2019
Merged

Fix ClusterManager call parameters#53263
pgayvallet merged 4 commits intoelastic:masterfrom
pgayvallet:kbn-52860-legacy-cluster-config

Conversation

@pgayvallet
Copy link
Copy Markdown
Contributor

Summary

Fix #52860

Checklist

@pgayvallet pgayvallet added Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Feature:New Platform v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.6.0 labels Dec 17, 2019
@pgayvallet pgayvallet requested a review from a team as a code owner December 17, 2019 08:54
@elasticmachine
Copy link
Copy Markdown
Contributor

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

Comment on lines -256 to +258
require('../../../cli/cluster/cluster_manager').create(
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ClusterManager = require('../../../cli/cluster/cluster_manager');
return new ClusterManager(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Using the public constructor instead of the static create, as we already have the legacy-plugin-mutated config and want to use this one.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does that mean we can remove the static factory function create or is it still being used somewhere?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We might be able to do that. will grep and see

@pgayvallet
Copy link
Copy Markdown
Contributor Author

retest

Comment on lines -256 to +258
require('../../../cli/cluster/cluster_manager').create(
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ClusterManager = require('../../../cli/cluster/cluster_manager');
return new ClusterManager(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does that mean we can remove the static factory function create or is it still being used somewhere?

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

@pgayvallet pgayvallet merged commit a806bac into elastic:master Dec 18, 2019
pgayvallet added a commit to pgayvallet/kibana that referenced this pull request Dec 18, 2019
* Fix ClusterManager call parameters

* remove static ClusterManager.create

* migrate ClusterManager to ts

* remove default import for ClusterManager and Worker
pgayvallet added a commit that referenced this pull request Dec 18, 2019
* Fix ClusterManager call parameters

* remove static ClusterManager.create

* migrate ClusterManager to ts

* remove default import for ClusterManager and Worker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:New Platform 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.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClusterManager is created with incorrect parameters

3 participants