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

[Canvas] Migrate Shareable Routes to NP #56053

Merged
merged 4 commits into from
Jan 31, 2020

Conversation

cqliu1
Copy link
Contributor

@cqliu1 cqliu1 commented Jan 27, 2020

Summary

This adds tests for and migrates the remaining legacy routes used for Canvas Shareables to NP.

Checklist

Use strikethroughs to 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

For maintainers

@cqliu1 cqliu1 force-pushed the np/shareables-routes branch from 6252980 to f7bce6c Compare January 27, 2020 22:59
@cqliu1 cqliu1 added review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.7.0 v8.0.0 labels Jan 27, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@cqliu1 cqliu1 added loe:medium Medium Level of Effort loe:large Large Level of Effort release_note:skip Skip the PR/issue when compiling release notes and removed loe:medium Medium Level of Effort labels Jan 27, 2020
@cqliu1 cqliu1 marked this pull request as ready for review January 27, 2020 23:00
@cqliu1 cqliu1 requested a review from a team as a code owner January 27, 2020 23:00
@cqliu1 cqliu1 force-pushed the np/shareables-routes branch from f7bce6c to c3b16e3 Compare January 27, 2020 23:05
Copy link
Contributor

@poffdeluxe poffdeluxe left a 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);
Copy link
Contributor

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,
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cqliu1 cqliu1 merged commit 8d54fa8 into elastic:master Jan 31, 2020
@cqliu1 cqliu1 deleted the np/shareables-routes branch January 31, 2020 20:47
cqliu1 added a commit that referenced this pull request Feb 1, 2020
* Migrated shareables routes to NP

* Added tests
jfsiii pushed a commit to jfsiii/kibana that referenced this pull request Feb 4, 2020
* Migrated shareables routes to NP

* Added tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
loe:large Large Level of Effort release_note:skip Skip the PR/issue when compiling release notes review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants