-
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
[Canvas] Migrate Shareable Routes to NP #56053
Conversation
6252980
to
f7bce6c
Compare
Pinging @elastic/kibana-canvas (Team:Canvas) |
f7bce6c
to
c3b16e3
Compare
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 it out and works great. Just one small question about validation. Other than that LGTM
import { functions } from '../canvas_plugin_src/functions/server'; | ||
import { loadSampleData } from './sample_data'; | ||
|
||
export class Plugin { | ||
public setup(core: CoreSetup, plugins: PluginsSetup) { | ||
routes(core); |
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.
🙌
router.get( | ||
{ | ||
path: API_ROUTE_SHAREABLE_RUNTIME_DOWNLOAD, | ||
validate: false, |
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.
why no validation on this route?
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.
It's not required for this route. We don't expected anything to be passed in as part of the request.
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* Migrated shareables routes to NP * Added tests
Summary
This adds tests for and migrates the remaining legacy routes used for Canvas Shareables to NP.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] 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- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers