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] Data Frame Analytics: Progress including step #65305

Merged
merged 1 commit into from
May 5, 2020

Conversation

walterra
Copy link
Contributor

@walterra walterra commented May 5, 2020

Summary

Pick up changes from elastic/elasticsearch#56107 to improve progress reporting.

Changes the way progress is reported to include the steps and the progress for each step.

image

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

}),
sortable: (item: DataFrameAnalyticsListRow) => getDataFrameAnalyticsProgress(item.stats),
truncateText: true,
render(item: DataFrameAnalyticsListRow) {
const progress = getDataFrameAnalyticsProgress(item.stats);
const totalSteps = item.stats.progress.length;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any chance that any of these item.stats.progress.length in the chaining will be undefined?

Copy link
Contributor Author

@walterra walterra May 5, 2020

Choose a reason for hiding this comment

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

This should be safe, it's what we expect to get back for each step as stats, we already made use of the same structure in the previously existing progress bar.

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 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 LGTM ⚡

@walterra walterra merged commit 2de9346 into elastic:master May 5, 2020
@walterra walterra deleted the ml-analytics-progress branch May 5, 2020 19:30
walterra added a commit to walterra/kibana that referenced this pull request May 5, 2020
Changes the way progress is reported to include the steps and the progress for each step.
walterra added a commit that referenced this pull request May 5, 2020
Changes the way progress is reported to include the steps and the progress for each step.
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants