Skip to content

[7.x] [ML] Data frame transforms: Fix getting nested properties. (#43262)#43273

Merged
walterra merged 1 commit intoelastic:7.xfrom
walterra:backport/7.x/pr-43262
Aug 14, 2019
Merged

[7.x] [ML] Data frame transforms: Fix getting nested properties. (#43262)#43273
walterra merged 1 commit intoelastic:7.xfrom
walterra:backport/7.x/pr-43262

Conversation

@walterra
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

…3262)

- Fixes a regression where values were not properly extracted from nested objects.
- Moves inline code we had to solve this to a utility function getNestedProperty(). Kibana's idx is a lodash-get replacement with TypeScript support. However, it requires that you'd know the accessor up front, it doesn't work with dynamic string values. getNestedProperty() allows you to pass a string like lodash-get, but it uses idx on the inside so you still get TypeScript support.
@walterra walterra added the backport This PR is a backport of another PR label Aug 14, 2019
@walterra walterra self-assigned this Aug 14, 2019
@walterra walterra added the :ml label Aug 14, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@walterra walterra merged commit 053fbb7 into elastic:7.x Aug 14, 2019
@walterra walterra deleted the backport/7.x/pr-43262 branch August 14, 2019 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR :ml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants