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

[new-platform] Improve naming and consistency in Plugin types #34725

Merged
merged 5 commits into from
Apr 10, 2019

Conversation

joshdover
Copy link
Contributor

@joshdover joshdover commented Apr 8, 2019

Summary

This improves the naming and consistency of the types for the PluginServices between the public and server versions.

@joshdover joshdover added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:New Platform v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.2.0 labels Apr 8, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@joshdover joshdover requested a review from a team as a code owner April 8, 2019 16:04
@joshdover joshdover force-pushed the cleanup-dependency-naming branch from 1c68c59 to a8b8d3f Compare April 8, 2019 16:06
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

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

Looks great.

src/core/server/plugins/plugins_system.ts Outdated Show resolved Hide resolved
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@rudolf rudolf left a comment

Choose a reason for hiding this comment

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

The last two dependency parameters aren't as critical as the public API, but would be nice to have these consistent too.

@@ -84,7 +84,7 @@ export class PluginWrapper<
* @param dependencies The dictionary where the key is the dependency name and the value
* is the contract returned by the dependency's `setup` function.
*/
public async setup(setupContext: PluginSetupContext, dependencies: TDependenciesSetup) {
public async setup(setupContext: PluginSetupContext, dependencies: TPluginsSetup) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not as critical as the public API, but probably worth making this dependency paramater consistent too

@@ -176,7 +189,7 @@ export class Plugin<
* @param dependencies The dictionary where the key is the dependency name and the value
* is the contract returned by the dependency's `setup` function.
*/
public async setup(setupContext: PluginSetupContext, dependencies: TDependenciesSetup) {
public async setup(setupContext: PluginSetupContext, dependencies: TPluginsSetup) {
Copy link
Contributor

Choose a reason for hiding this comment

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

another dependency parameter

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@joshdover joshdover merged commit b006361 into elastic:master Apr 10, 2019
@joshdover joshdover deleted the cleanup-dependency-naming branch April 10, 2019 18:44
joshdover added a commit to joshdover/kibana that referenced this pull request Apr 10, 2019
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 Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants