Skip to content

Conversation

@qn895
Copy link
Member

@qn895 qn895 commented Oct 6, 2020

Summary

This PR fixes #77350. The wrong index mapping causes getAuditMessagesSummary to fail, which cause jobsSummary to throw an error. This PR makes it so that:

  1. Job list will still show up even if it cannot get the audit messages
  2. Navigating to the Job Message tab will bubble up a more explicit error message in the UI

Before

Screenshot 2020-09-14 at 15 03 03

Screenshot 2020-09-14 at 15 04 01

After

Screen Shot 2020-10-06 at 5 47 45 PM

Screen Shot 2020-10-06 at 5 43 34 PM

Screen Shot 2020-10-06 at 5 35 39 PM

Checklist

Delete any items that are not applicable to this PR.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

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.

Tested and left a suggestion for a change to the toast title.

Also if possible can we show the same sort of error toast for the data frame analytics jobs list? The list is displaying ok if that index mapping is incorrect, but the error is only shown in the browser console. Would be nice to show that same error toast for the DFA page too. Note that job details section is also shown in the DFA results page.

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.

Tested latest edit and LGTM

@peteharverson peteharverson changed the title [ML] Fix AD jobs not loaded if the search on the .ml-notifications-000001 index fails [ML] Fixes anomaly detection jobs list load if call to load job messages fails Oct 7, 2020
Copy link
Contributor

@darnautov darnautov 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 Author

qn895 commented Oct 8, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id before after diff
ml 11.2MB 11.2MB +1.8KB

History

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

@qn895 qn895 merged commit f04c295 into elastic:master Oct 8, 2020
@qn895 qn895 deleted the ml-fix-job-list-error-if-notif-index-wrong branch October 8, 2020 16:12
qn895 added a commit to qn895/kibana that referenced this pull request Oct 8, 2020
qn895 added a commit to qn895/kibana that referenced this pull request Oct 8, 2020
qn895 added a commit that referenced this pull request Oct 8, 2020
…b messages fails (#79792) (#80021)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
peteharverson pushed a commit that referenced this pull request Oct 9, 2020
…ges fails (#79792) (#80020)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
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.

[ML] AD jobs not loaded if the search on the .ml-notifications-000001 index fails

5 participants