-
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
Url shortener #5497
Url shortener #5497
Conversation
4568a92
to
5783f31
Compare
|
||
export default function (server) { | ||
async function updateMetadata(urlId, urlDoc) { | ||
const client = server.plugins.elasticsearch.client; |
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.
Can these const client = server.plugins.elasticsearch.client;
lines be moved to a single line within the top-level function?
@BigFunger keep in mind that we've standardized on snake_case filenames with #5383 |
If I create a link to a saved visualization, put that on an iframe somewhere, then delete the visualization, it throws up the "Create a new visualization" screen in the iframe. Not sure if there's a good solution for this. Maybe you could add detail on the warning message for deleting a visualization if there are linked visualizations out there: |
I don't think the problem regarding an iframe hosting a link to a deleted visualization is a huge deal. LGTM |
} | ||
}); | ||
} catch (err) { | ||
console.log('Warning: Error updating url metadata', err); |
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.
should this use server.log?
Functionally LGTM, made some small comments - passing back. |
Passing to @panda01 for seconds. Last commit changes LGTM |
LGTM! |
Fixes #1553
This is my first attempt at a working prototype for the url shortener, and I assume that it is going to require changes. I'm looking for input on the implementation.