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

[Maps] Remove deprecated usage of indexPattern.title #143444

Merged
merged 4 commits into from
Oct 24, 2022

Conversation

nickpeihl
Copy link
Member

Summary

Fixes deprecated data view calls.

Accessing indexPattern.title directly has been deprecated and should be replaced by the getIndexPattern method. In many cases I changed the local variable to dataView because calling indexPattern.getIndexPattern() may be confusing.

We could do much more with replacing indexPattern with dataView in other parts of the code, but I kept this PR small so that we only need to fix the deprecations.

@nickpeihl nickpeihl requested a review from a team as a code owner October 17, 2022 13:26
@nickpeihl nickpeihl added release_note:skip Skip the PR/issue when compiling release notes v8.6.0 [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation labels Oct 17, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@nickpeihl
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Member

@jsanz jsanz left a comment

Choose a reason for hiding this comment

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

Code changes looks good to me, thanks for taking care of the deprecation. I've checked locally for any other usage of .title for index patterns or data views but looks like everything is addressed 👍

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for cleaning up deprecated use of dataView.title and +1 on renames.
code review

@nickpeihl nickpeihl enabled auto-merge (squash) October 24, 2022 12:24
@kibana-ci
Copy link
Collaborator

💚 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
maps 2.7MB 2.7MB -39.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
maps 82.1KB 82.1KB +8.0B
Unknown metric groups

References to deprecated APIs

id before after diff
maps 77 21 -56

History

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

@nickpeihl nickpeihl merged commit 1dda579 into elastic:main Oct 24, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Oct 24, 2022
@nickpeihl nickpeihl deleted the fix-dataview-deprecations branch October 24, 2022 14:45
@sophiec20 sophiec20 added Feature:Maps and removed [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Maps release_note:skip Skip the PR/issue when compiling release notes v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants