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

[server/uiExports] allow apps to use export types that are empty #5538

Merged
merged 1 commit into from
Dec 1, 2015

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Dec 1, 2015

When an app uses: an export type that no plugin exports the server currently barfs up:

image

While this error is valid it is not desired if we want to start adding more supported export types. This change simply removes the error and treats the current method as an optional uses:.

If it turns out that we need requires down the road we can always add it or apps could simply add the check in their own code and throw some sort of error if there are missing dependencies (which I prefer).

When an app "uses" an export type that the server has not received any registered modules for the server currently fails to start saying "Unable to find uiExports for pattern ...". While this error is valid it is not always desired, and I think it is simply too limiting. Apps need to be able to use exportTypes that are optional, so this change simply removes the error and treats the current method as an optional "uses".
@Bargs
Copy link
Contributor

Bargs commented Dec 1, 2015

Am I correct in understanding that uses basically just defines what type of modules need to be included in the app's optimized bundle?

@spalger
Copy link
Contributor Author

spalger commented Dec 1, 2015

Yessir, that's exactly the case

@Bargs
Copy link
Contributor

Bargs commented Dec 1, 2015

In that case this LGTM

spalger added a commit that referenced this pull request Dec 1, 2015
[server/uiExports] allow apps to use export types that are empty
@spalger spalger merged commit 1b9b45d into elastic:master Dec 1, 2015
@spalger spalger deleted the implement/optionalUiExportsUses branch February 25, 2016 22:49
MadameSheema pushed a commit to MadameSheema/kibana that referenced this pull request Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants