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] Adds data frame messages to data frames list #39609

Merged

Conversation

alvarezmelissa87
Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 commented Jun 25, 2019

Summary

Related issue: #38540

This PR adds a Messages tab to the data frames list expanded row and adds an endpoint for fetching the data frame messages.

Messages in tab:

MessagesTab

If there's a problem loading the messages:

MessagesTabErrorMessage

Follow up:

Adding icon at message level in a follow up PR

NOTE:

As data frame creation time is not yet available, messages are currently not filtered by time. This can be added in a follow-up once that information becomes available.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

- [ ] This was checked for breaking API changes and was labeled appropriately
- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

Great stuff overall, just added a comment about a missing translation and how to refresh the messages tab.

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

Latest changes LGTM 🍾

@elasticmachine
Copy link
Contributor

💔 Build Failed

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.

Just one question, otherwise LGTM

@@ -10,3 +10,4 @@ export const ML_ANNOTATIONS_INDEX_PATTERN = '.ml-annotations-6';

export const ML_RESULTS_INDEX_PATTERN = '.ml-anomalies-*';
export const ML_NOTIFICATION_INDEX_PATTERN = '.ml-notifications';
export const ML_DF_NOTIFICATION_INDEX_PATTERN = '.data-frame-notifications-1';
Copy link
Contributor

Choose a reason for hiding this comment

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

Just double checking, but do the data frame notifications always go in .data-frame-notifications-1 (with the 1)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - that's the index it will go into

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

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

LGTM

*/


import { ML_DF_NOTIFICATION_INDEX_PATTERN } from '../../../common/constants/index_patterns';
Copy link
Member

Choose a reason for hiding this comment

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

this should probably be typescript

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@alvarezmelissa87
Copy link
Contributor Author

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@alvarezmelissa87 alvarezmelissa87 merged commit 46a3e3d into elastic:master Jun 26, 2019
[ML] Transforms UI (7.x) automation moved this from Review to Done (merged to master) Jun 26, 2019
@alvarezmelissa87 alvarezmelissa87 deleted the ml-data-frame-messages branch June 26, 2019 20:25
alvarezmelissa87 added a commit that referenced this pull request Jun 28, 2019
* kibana server endpoint for fetching DataFrame messages

* create Messages tab in expanded row

* update snapshot

* translate error message

* ensure messages fetched on refresh interval

* add tab translation

* update lastUpdate every time getJobs is run

* update expanded row snapshot
@walterra walterra moved this from Done (merged to master) to Done (7.3) in [ML] Transforms UI (7.x) Jul 30, 2019
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.

None yet

5 participants