Skip to content

[Maps] Update remaining client dependencies to NP#63297

Merged
kindsun merged 22 commits intoelastic:masterfrom
kindsun:np-update-remaining-client-dependencies
Apr 16, 2020
Merged

[Maps] Update remaining client dependencies to NP#63297
kindsun merged 22 commits intoelastic:masterfrom
kindsun:np-update-remaining-client-dependencies

Conversation

@kindsun
Copy link
Copy Markdown
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 Team:Geo Former Team Label for Geo Team. Now use Team:Presentation label Apr 14, 2020
@elasticmachine
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

@kibanamachine
Copy link
Copy Markdown
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

Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.8.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants