-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Migrate Coordinate Maps to NP #64668
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
b87d8ae
to
99efbbf
Compare
… loaded yet in NP
99efbbf
to
151ddc9
Compare
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.
I only have a few nits. Tested and works. Really great..
@@ -42,7 +42,7 @@ | |||
"src/plugins/telemetry", | |||
"src/plugins/telemetry_management_section" | |||
], | |||
"tileMap": "src/legacy/core_plugins/tile_map", | |||
"tileMap": "src/plugins/tile_map", |
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.
:)
@thomasneirynck Did you test with the |
@flash1293 thx for headsup! I tested the removal of that import with the |
Thanks @flash1293 for the user role info! I've also tested this locally and found no issues with dashboards loading leaflet as a user with this role. Just to give you a heads up, it looks like this PR flagged the |
…l way (tests have no access to the window object)
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.
👏
@@ -102,6 +102,7 @@ export class VegaMapView extends VegaBaseView { | |||
// let maxBounds = null; | |||
// if (mapConfig.maxBounds) { | |||
// const b = mapConfig.maxBounds; | |||
// eslint-disable-next-line no-undef |
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.
Is this necessary? Seems like this commented out code can be removed anyway.
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.
It was on the chance someone ever uncommented it. I don't know the history of why it was commented out and left in. In general I think retaining commented code is unnecessary (that's what git is for, seeing code history) but I didn't touch it otherwise since it wasn't the focus of this PR
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.
I tried to test this but I'm always running into "Elastic Kibana did not load properly. Check the server output for more information."
. Not sure whether it's related to this PR or my environment broke somehow, I will re-setup tomorrow and test again. Bootstrapping didn't help.
I'm going to approve because the Kibana App changes LGTM, but it's only code review at this point.
If you are certain that broken Kibana is related to my environment and not the PR feel free to merge if it's blocking you somehow and I will verify after the fact tomorrow.
Thanks for the review! @flash1293 This sounds likely to be an environmental issue since tests are passing and neither myself nor @thomasneirynck have seen any issues locally. I'm fairly confident we should be in good shape. Per your comment we do also need these changes, specifically those related to |
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* master: (42 commits) fix SavedObjectMigrationMap type (elastic#65569) [Uptime] Improve cert flaky test (elastic#65458) [Uptime] Fix monitor list result runtime type, ip can be null (elastic#65532) [APM] Agent configuration: Bug makes it possible to create invalid configurations (elastic#65508) [APM] Remove link from active page in the breadcrumb (elastic#65473) [SIEM] Fixes test flakiness (elastic#65510) [ESLint] update @kbn/eslint/no-restricted-paths rule to allow imports mocks from folder (elastic#65471) Migrate test plugins ⇒ NP (kbn_tp_run_pipeline) (elastic#64780) move core provier to NP. allows to run tests on every page (elastic#64929) Extended alerting documentation with information about using Kibana keystore and action types for preconfigured connectors (elastic#65201) [functional tests] add some missing awaits (elastic#65566) Fixed create new connector from alert flyout form throw an error messages in external plugins. (elastic#65539) [SIEM] [Cases] External services not getting all comments bug fix (elastic#65307) Migrate Coordinate Maps to NP (elastic#64668) Updating Canvas location in nav (elastic#65519) [SIEM][Lists] Fixes up contracts to work outside of requests [Lens] Remove "inside only" option for treemap labels (elastic#65363) [Uptime] Add TLS alert functional test (elastic#65303) Fix z-index of kbnLoadingIndicator (elastic#65521) Fixed indice assertion to loop through expected keys (elastic#64684) ...
Updates Coordinate Maps dependencies and migrates it to the New Platform. This PR also removes the file containing the
mapConfig
declaration originally located insrc/legacy/core_plugins/tile_map/index.ts
. This necessitated updates to the newMaps
app which also relies heavily onmapConfig
.I originally planned to rename the plugin to
coordinate_maps
as part of this PR but will handle that separately at a later point. There are also several config values undertilemap
, so ideally these + any other renaming would be handled together.Related issue: #64810