-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Add missing license to requests in maps embeddables #59207
[Maps] Add missing license to requests in maps embeddables #59207
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
…se-in-maps-embeddables
It's currently difficult to test in the client whether or not Maps requests include a valid license as injected in the plugin. These tests could (should) be added as part of this related issue: #59243 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with green CI
code review and tested in chrome
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…9207) * Pull core service init out into separate function * Call bind function from embeddable factory constructor * Move inspector init back to start method. Remove old license check file * Add TS types
…9207) * Pull core service init out into separate function * Call bind function from embeddable factory constructor * Move inspector init back to start method. Remove old license check file * Add TS types
) (#59336) * [Maps] Add missing license to requests in maps embeddables (#59207) * Pull core service init out into separate function * Call bind function from embeddable factory constructor * Move inspector init back to start method. Remove old license check file * Add TS types * Fix remaining merge issues
Summary
Resolves #59014. The Maps embeddable (used in dashboard) follows a different plugin initialization path from the normal Maps app. As of the introduction of NP licensing in #52641, the license wasn't properly injected for use in embeddable map tile requests. This PR pulls that initialization step out into a separate function that can be leveraged by both the Maps App and Maps Embeddable instances. This function will also be a useful pattern to follow while Maps is in Legacy for initialization of further NP services that embeddables relies on as we transition its dependencies.
Screenshot of Maps embedddable in dashboard with this logic in place: