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

[apm] use IndexPattern instead of IIndexPattern #107187

Merged
merged 3 commits into from
Aug 2, 2021

Conversation

mattkime
Copy link
Contributor

@mattkime mattkime commented Jul 29, 2021

Summary

Use IndexPattern instead of IIndexPattern as IIndexPattern is deprecated due to too much ambiguity in its definition.

@mattkime mattkime changed the title use IndexPattern instead of IIndexPattern [apm] use IndexPattern instead of IIndexPattern Jul 29, 2021
@mattkime mattkime added auto-backport Deprecated - use backport:version if exact versions are needed Feature:Data Views Data Views code and UI - index patterns before 8.0 v7.15.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Jul 29, 2021
@mattkime mattkime marked this pull request as ready for review July 29, 2021 19:04
@mattkime mattkime requested a review from a team as a code owner July 29, 2021 19:04
@mattkime
Copy link
Contributor Author

mattkime commented Aug 1, 2021

@elasticmachine merge upstream

@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label Aug 1, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

References to deprecated APIs

id before after diff
apm 7 3 -4

History

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

const res = convertKueryToEsQuery(inputValue, indexPattern);
const res = convertKueryToEsQuery(
inputValue,
indexPattern as IndexPattern
Copy link
Member

Choose a reason for hiding this comment

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

Is as IndexPattern really needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is, indexPattern is typed as IndexPatternTitleAndFields which convertKueryToEsQuery complains about.

Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

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

lgtm. just one nit

@mattkime mattkime merged commit 63ec458 into elastic:master Aug 2, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Aug 2, 2021
* use IndexPattern instead of IIndexPattern

* typefix

Co-authored-by: Kibana Machine <[email protected]>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Aug 2, 2021
* use IndexPattern instead of IIndexPattern

* typefix

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Matthew Kime <[email protected]>
streamich pushed a commit to vadimkibana/kibana that referenced this pull request Aug 8, 2021
* use IndexPattern instead of IIndexPattern

* typefix

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Data Views Data Views code and UI - index patterns before 8.0 release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants