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] Update remaining client dependencies to NP #63297

Merged

Conversation

kindsun
Copy link
Contributor

@kindsun kindsun commented Apr 10, 2020

This PR removes all remaining Maps legacy client dependencies with the following exceptions:

  • Any dependencies still required while the client app exists in legacy
  • Dependencies required for routing, including those required by map_controller

In addition to legacy dependency replacement, this PR sets up the Maps client for migration (w/ the exception of routing) over to NP. The following changes/updates were made:

  • Kibana services are now fully consolidated on the NP side
  • 'gisMapSavedObjectLoader' is deangularized and is now the function getMapsSavedObjectLoader that returns an NP saved object loader (required for embeddables)
  • Further services created in kibana_services to support plugin operations

@kindsun kindsun added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:NP Migration v7.8.0 labels Apr 10, 2020
@kindsun kindsun added the [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation label Apr 14, 2020
@elasticmachine
Copy link
Contributor

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

@kindsun kindsun marked this pull request as ready for review April 14, 2020 20:55
@kindsun kindsun requested a review from a team as a code owner April 14, 2020 20:55
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
code review

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

Thanks! One suggestion to remove unused (if I got that right) code.

x-pack/plugins/maps/public/kibana_services.d.ts Outdated Show resolved Hide resolved
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@kindsun kindsun merged commit 11b6f7f into elastic:master Apr 16, 2020
@kindsun kindsun deleted the np-update-remaining-client-dependencies branch April 16, 2020 11:49
kindsun pushed a commit to kindsun/kibana that referenced this pull request Apr 16, 2020
* Routes dependencies updated (except for routes itself)

* Replace all chrome deps except map controller

* Replace npSetup and npStart with normal plugin init logic. Some clean up

* Bind kibana services in map controller

* Use kibana services in map controller

* Convert remaining deps that aren't critical to legacy operation

* Remove last angular bindings to gis map saved object loader

* Consolidate kibana services in NP

* Some fixes. Remove console logs

* Fix type errors

* Fix jest test path refs

* Accomodate legacy 'hacks' and init services for vis type alias

* Review feedback. Remove/update unused declarations

* getFileUpload actually just needed Component tacked on the end

* Handle visibility of toolbars for full screen mode using new core chrome. Should fix test

* Import source types in getInitialLayers to ensure registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants