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

[plugin] Handle Kibana package dependencies #16509

Merged
merged 9 commits into from
Feb 12, 2018

Conversation

kimjoar
Copy link
Contributor

@kimjoar kimjoar commented Feb 3, 2018

A simplified version of #16481 that only handles Kibana packages (so Kibana plugins can rely on Kibana's packages, but can't yet use link: for other dependencies)

Here's an example of a minimal Kibana plugin (my-kbn-plugin-0.0.0.zip) that can be used to test this change.

To test this, first build Kibana (yarn build --skip-archives --skip-os-packages), then cd into build/kibana-... for your architecture, then run:

./bin/kibana-plugin install file:./path/to/my-kbn-plugin-0.0.0.zip

and you should see something like this in the output when starting the Kibana server:

{ units: [ 'y', 'M', 'w', 'd', 'h', 'm', 's', 'ms' ] }

(you'll see it during optimize after plugin install, as optimize starts the kibana server)

You should see this when starting up on server, when the api endpoint is hit, and when opening the plugin in the ui.

@kimjoar kimjoar added WIP Work in progress Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Feb 3, 2018
@kimjoar kimjoar force-pushed the platform/plugin-project-dependencies branch 3 times, most recently from 689caea to 3a54856 Compare February 3, 2018 23:39
@kimjoar kimjoar removed the WIP Work in progress label Feb 7, 2018
@kimjoar kimjoar force-pushed the platform/plugin-project-dependencies branch 3 times, most recently from 17d3843 to d25a113 Compare February 8, 2018 14:10
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elastic elastic deleted a comment from elasticmachine Feb 8, 2018
@elastic elastic deleted a comment from elasticmachine Feb 8, 2018
@kimjoar kimjoar added the review label Feb 8, 2018
Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

LGTM, I would probably move the prepareProjectDependencies() function into kbn-build, so that down the road it can share logic with the rest of kbn-build, but that can come later.

@kimjoar kimjoar force-pushed the platform/plugin-project-dependencies branch from 3f822f4 to 0935438 Compare February 9, 2018 00:12
@kimjoar kimjoar force-pushed the platform/plugin-project-dependencies branch from 0935438 to ccc3af0 Compare February 9, 2018 00:14
@kimjoar kimjoar force-pushed the platform/plugin-project-dependencies branch from ccc3af0 to b3ec99f Compare February 9, 2018 00:15
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@kimjoar kimjoar merged commit b5bda1e into elastic:master Feb 12, 2018
kimjoar added a commit to kimjoar/kibana that referenced this pull request Feb 12, 2018
* [plugin] Handle Kibana package dependencies

* Clean up 'link:' dep check in plugin installer

* Tests for 'prepareProjectDependencies'

* Remove unnecessary fn from 'prepareProjectDependencies'

* Move prepareProjectDependencies into @kbn/build

* update snapshot

* Move test to Jest

* clarification
kimjoar added a commit that referenced this pull request Feb 12, 2018
* [plugin] Handle Kibana package dependencies

* Clean up 'link:' dep check in plugin installer

* Tests for 'prepareProjectDependencies'

* Remove unnecessary fn from 'prepareProjectDependencies'

* Move prepareProjectDependencies into @kbn/build

* update snapshot

* Move test to Jest

* clarification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v6.3.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants