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

[ML] DF Analytics results: add index-pattern management link to 'click here' error prompt #72470

Conversation

alvarezmelissa87
Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 commented Jul 20, 2020

Summary

This PR checks for the click here to recreate it prompt returned in the error message when an index pattern cannot be found. If that prompt is present, the message is converted into a link to allow the user to click on the message and move to index management.

Before (user unable to interact with click prompt):

image

After:

image

NOTE:

For some context, that click here bit is part of the SavedObjectNotFound kibana error class (src/plugins/kibana_utils/common/errors/errors.ts). I'm not sure as to why we've got a click prompt in the returned error message but will get some info - for now, this change should solve the immediate issue.

Before:

image

Checklist

Delete any items that are not applicable to this PR.

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

LGTM

@qn895
Copy link
Member

qn895 commented Jul 20, 2020

Tested and LGTM. Although I'm wondering if we should bring it up with the team about the error message in the future. Even with the hyperlink I think the message doesn't look consistent with the rest of Kibana.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

page load bundle size

id value diff baseline
ml 4.3MB +442.0B 4.3MB

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants