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: ensure results view loads correctly for job created in dev tools #107024

Merged

Conversation

alvarezmelissa87
Copy link
Contributor

Summary

Fixes #106275

Checks that analytized_fields exists before trying to access includes or excludes. Extends fix to outlier detection results page.

Before:

image

After:

image

Checklist

Delete any items that are not applicable to this PR.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@qn895
Copy link
Member

qn895 commented Jul 28, 2021

LGTM 🎉

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.

Looking at the docs here (https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html) it looks like analyzed_fields is meant to be optional in general. Suggest to updated the interface DataFrameAnalyticsConfig so it's optional there too. Then TS should catch the original code without the ?.


@walterra - good call! Updated in 0592c6b

@alvarezmelissa87
Copy link
Contributor Author

Updated and ready for a final look when you get a chance 🙏 cc @walterra

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
ml 5.9MB 5.9MB +440.0B

History

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

cc @alvarezmelissa87

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.

LGTM

@alvarezmelissa87 alvarezmelissa87 merged commit 9dcecae into elastic:master Jul 30, 2021
alvarezmelissa87 added a commit to alvarezmelissa87/kibana that referenced this pull request Jul 30, 2021
…b created in dev tools (elastic#107024)

* check analyzed_fields exists

* update DataFrameAnalyticsConfig type to make analyzed_fields optional

* updating accessing analyzed_fields for type update
@alvarezmelissa87 alvarezmelissa87 deleted the ml-dfa-fix-results-view branch July 30, 2021 15:14
alvarezmelissa87 added a commit that referenced this pull request Jul 30, 2021
…b created in dev tools (#107024) (#107294)

* check analyzed_fields exists

* update DataFrameAnalyticsConfig type to make analyzed_fields optional

* updating accessing analyzed_fields for type update
streamich pushed a commit to vadimkibana/kibana that referenced this pull request Aug 8, 2021
…b created in dev tools (elastic#107024)

* check analyzed_fields exists

* update DataFrameAnalyticsConfig type to make analyzed_fields optional

* updating accessing analyzed_fields for type update
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] Data frame analytics results view shows empty page
5 participants