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

Expose injectedMetadata service temporarily #47319

Merged
merged 5 commits into from
Oct 4, 2019

Conversation

mshustov
Copy link
Contributor

@mshustov mshustov commented Oct 4, 2019

Summary

Provide injectMetadata service to unblock plugin migration. Should be superseded by ConfigService introduced in #41990

I didn't add a wrapper around injectMetadata that mimic the future ConfigService interface because I believe they will have different implementations.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@mshustov mshustov added review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes v7.5.0 labels Oct 4, 2019
@elasticmachine
Copy link
Contributor

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

@mshustov mshustov marked this pull request as ready for review October 4, 2019 10:49
@mshustov mshustov requested a review from a team as a code owner October 4, 2019 10:49
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

* exposed temporarily until https://github.com/elastic/kibana/issues/41990 done
* use *only* to retrieve config values
* @deprecated
* */
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be worth noting that NP plugins have no way of exposing injected vars from the server-side. It must be done from a legacy plugin.

@mshustov mshustov force-pushed the expose-inject-metadata-service branch from b550435 to 6be62d5 Compare October 4, 2019 17:09
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mshustov mshustov merged commit 3a5c068 into elastic:master Oct 4, 2019
@mshustov mshustov deleted the expose-inject-metadata-service branch October 4, 2019 18:41
mshustov added a commit to mshustov/kibana that referenced this pull request Oct 5, 2019
* expose injectMetadata until config service provided

* add functional test

* update types

* fix tests. injectMetadata is a part of plugin contract

* add comment about injectedVars API
mshustov added a commit that referenced this pull request Oct 5, 2019
* expose injectMetadata until config service provided

* add functional test

* update types

* fix tests. injectMetadata is a part of plugin contract

* add comment about injectedVars API
@mshustov mshustov added backported and removed review labels Oct 7, 2019
@flash1293 flash1293 mentioned this pull request Oct 7, 2019
@mshustov mshustov changed the title Expose injectMetadata service temporarily Expose injectedMetadata service temporarily Oct 10, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Feature:New Platform 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 v7.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants