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: Split comma-separated Kibana index patterns to array of indices. #44757

Merged

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Sep 4, 2019

Summary

Kibana index patterns can be comma-separated whereas the create analytics API takes an array of indices. This fixes the analytics creation UI to convert Kibana index patterns to ES index patterns.

Checklist

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

For maintainers

@walterra walterra added bug Fixes for quality problems that affect the customer experience :ml v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.4.0 v7.5.0 Feature:Data Frame Analytics ML data frame analytics features labels Sep 4, 2019
@walterra walterra requested a review from a team as a code owner September 4, 2019 08:55
@walterra walterra self-assigned this Sep 4, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

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

@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.

LGTM

@walterra
Copy link
Contributor Author

walterra commented Sep 4, 2019

FYI @jgowdyelastic @peteharverson I overlooked a TypeScript error and fixed it in 982ba90, also added some tests.

@walterra walterra requested a review from darnautov September 4, 2019 11:45
@walterra
Copy link
Contributor Author

walterra commented Sep 4, 2019

@jgowdyelastic I pushed another update after our discussion: d94beba

  • removes COMMA_SEPARATOR since we haven't used that in other cases in the past
  • does a split+trim check (sanity check even if it might not be possible to create an index pattern name like that via Kibana management UI)
  • fixes validation and reflects that in updated tests

@jgowdyelastic
Copy link
Member

latest changes LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@walterra walterra merged commit 49fdd24 into elastic:master Sep 4, 2019
@walterra walterra deleted the ml-dfa-fix-comma-separated-indices branch September 4, 2019 13:54
walterra added a commit to walterra/kibana that referenced this pull request Sep 4, 2019
…s to array of indices. (elastic#44757)

Kibana index patterns can be comma-separated whereas the create analytics API takes an array of indices. This fixes the analytics creation UI to convert Kibana index patterns to ES index patterns.
walterra added a commit to walterra/kibana that referenced this pull request Sep 4, 2019
…s to array of indices. (elastic#44757)

Kibana index patterns can be comma-separated whereas the create analytics API takes an array of indices. This fixes the analytics creation UI to convert Kibana index patterns to ES index patterns.
walterra added a commit that referenced this pull request Sep 4, 2019
…s to array of indices. (#44757) (#44773)

Kibana index patterns can be comma-separated whereas the create analytics API takes an array of indices. This fixes the analytics creation UI to convert Kibana index patterns to ES index patterns.
walterra added a commit that referenced this pull request Sep 4, 2019
…s to array of indices. (#44757) (#44774)

Kibana index patterns can be comma-separated whereas the create analytics API takes an array of indices. This fixes the analytics creation UI to convert Kibana index patterns to ES index patterns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Frame Analytics ML data frame analytics features :ml release_note:skip Skip the PR/issue when compiling release notes v7.4.0 v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants