-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
back to canvas way of loading plugins #26463
Conversation
💔 Build Failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally (Chrome OSX), and loading custom plugins is working for me now.
Code LGTM too (other than the leftover console.log
statements which need to be removed still), but we should get a sanity check from the Canvas team before merging.
20e4a5a
to
482c447
Compare
Pinging @elastic/kibana-app |
Pinging @elastic/kibana-canvas |
482c447
to
484b34a
Compare
💔 Build Failed |
484b34a
to
3f323d9
Compare
💔 Build Failed |
retest |
💔 Build Failed |
3f323d9
to
8dbdc5e
Compare
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the quick work on this.
import { getPluginStream } from '../lib/get_plugin_stream'; | ||
|
||
export function plugins(server) { | ||
server.route({ | ||
method: 'GET', | ||
path: '/api/canvas/plugins', | ||
handler: function (request) { | ||
handler: function (request, h) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make this a fully-stated variable, so it's clear what this is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, h
is the standard name for the response toolkit in newer versions of Hapi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM, plugins seem to load ok and I know a couple other people that have made plugins work off of this.
Summary
During moving interpreter to OSS dynamic plugin loading was broken, this tries to fix it, and goes back to the way canvas handled plugin loading before
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[x] This was checked for cross-browser compatibility, including a check against IE11[ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support[ ] Documentation was added for features that require explanation or tutorials[ ] Unit or functional tests were updated or added to match the most common scenarios[ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
[ ] This was checked for breaking API changes and was labeled appropriately[ ] This includes a feature addition or change that requires a release note and was labeled appropriately