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

Migrate session storage short url handling #55021

Merged
merged 3 commits into from
Jan 21, 2020

Conversation

flash1293
Copy link
Contributor

@flash1293 flash1293 commented Jan 16, 2020

This PR moves the rest of the short url service over to the new platform.

It uses a chromeless NP plugin app to fetch the short url via fetch, put in the local storage and then redirect to the right app with hashed parameters.

I decided against fixing #50107 in the same PR, this will happen after this change went in.

This PR had to touch the newsfeed plugin because it was relying on injected meta data variables that are apparently not available for new platform apps (the returned config is not defined and produces a fatal error before the hashing and redirecting can take effect). Not sure whether that's a bug in the app rendering API from core or a bug in the newsfeed plugin. @joshdover What's the expected behavior in this case?

@flash1293 flash1293 marked this pull request as ready for review January 16, 2020 12:20
@flash1293 flash1293 requested a review from a team January 16, 2020 12:20
@flash1293 flash1293 added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Jan 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293 flash1293 added the release_note:skip Skip the PR/issue when compiling release notes label Jan 16, 2020
@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

params: schema.object({ urlId: schema.string() }),
},
},
router.handleLegacyErrors(async function(context, request, response) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:NP Migration Feature:SharingURLs Short URLs and Share URL features release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants