Skip to content

[Maps] direct Discover "visualize" to open Maps application#58549

Merged
nreese merged 14 commits intoelastic:masterfrom
nreese:discover_open_in_maps
Mar 2, 2020
Merged

[Maps] direct Discover "visualize" to open Maps application#58549
nreese merged 14 commits intoelastic:masterfrom
nreese:discover_open_in_maps

Conversation

@nreese
Copy link
Copy Markdown
Contributor

@nreese nreese commented Feb 25, 2020

fixes #57051

This PR updates Discover to open geo_point and geo_shape fields in the Maps application when the Maps app is available.

Screen Shot 2020-02-25 at 3 42 53 PM

To handle the link, the maps application has a new parameter, initialLayers, that can be used to pass layer descriptors to a new map instance.

I was going to wait for #57879 to merge prior to making this change but, that PR may not make 7.7 and I wanted to make sure Discover points users towards the maps application instead of the legacy map visualizations. Then once #57879 is merged, the layer descriptor can be updated to use the blended layer.

@nreese nreese added release_note:enhancement Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 v7.7.0 labels Feb 25, 2020
@nreese nreese requested review from a team, kertal and thomasneirynck February 25, 2020 22:41
@nreese nreese requested a review from a team as a code owner February 25, 2020 22:41
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@nreese nreese added the Feature:Discover Discover Application label Feb 25, 2020
@nreese nreese changed the title Discover open in maps [Maps] direct Discover "visualize" to open Maps application Feb 25, 2020
Copy link
Copy Markdown
Contributor

@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.

tested locally in Chromium and Firefox, for both geo_point and geo_shape types, the automatic tooltip based on the columns configured from the Discover app was a nice surprise 😄

@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Feb 27, 2020

@elasticmachine merge upstream

Copy link
Copy Markdown
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

This is nice improvement for the user! 👍 Added some code remarks to discuss. Do you think it makes sense also to use 'Maps' instead of 'Visualize' as text in the link?
Bildschirmfoto 2020-02-28 um 15 14 51

@nreese nreese requested a review from kertal February 28, 2020 15:19
@nreese
Copy link
Copy Markdown
Contributor Author

nreese commented Feb 28, 2020

Do you think it makes sense also to use 'Maps' instead of 'Visualize' as text in the link?

I don't think that would add any value. Since the page is angular and going to be refactored in the future I don't think tinkering with small details like this is worth the effort.

Copy link
Copy Markdown
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

Code LGTM, tested locally in Chrome, nice improvement for the user!

@nreese nreese requested a review from timroes March 2, 2020 16:23
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

@nreese nreese merged commit 2998ec0 into elastic:master Mar 2, 2020
nreese added a commit to nreese/kibana that referenced this pull request Mar 2, 2020
…58549)

* [Maps] direct Discover visualize to Maps application

* pass initial layers to maps app

* add functional test

* fix parentheses messed up by lint fix

* fix i18n expression

* move logic into lib

* fix typescript errors

* use constant for geo_point and geo_shape, more TS noise

* use encode_array in an attempt to make TS happy

* another round of TS changes

* one more thing

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
nreese added a commit that referenced this pull request Mar 2, 2020
…59066)

* [Maps] direct Discover visualize to Maps application

* pass initial layers to maps app

* add functional test

* fix parentheses messed up by lint fix

* fix i18n expression

* move logic into lib

* fix typescript errors

* use constant for geo_point and geo_shape, more TS noise

* use encode_array in an attempt to make TS happy

* another round of TS changes

* one more thing

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 3, 2020
* master: (26 commits)
  [Endpoint] Alert Details Overview (elastic#58412)
  Service map language icons (elastic#58633)
  [SIEM] [Case] Comments to case view (elastic#58315)
  Remove appBasePath from docs + add mock for AppMountParameters (elastic#58775)
  [kbn/optimizer] fix ui/* url rewrites in dist (elastic#58627)
  Dashboard a11y tests (elastic#58122)
  Downgrade "setting up plugin" log to debug (elastic#58776)
  [CI] Pipeline refactoring (elastic#56447)
  [Advanced Settings] Fix a11y of unsaved indicator (elastic#58511)
  put params into short url instead of behind it (elastic#58846)
  show timepicker in timelion and tsvb (elastic#58857)
  improve graph missing workspace error message (elastic#58876)
  [Maps] direct Discover "visualize" to open Maps application (elastic#58549)
  Disallow duplicate percentiles (elastic#57444) (elastic#58299)
  removing references to visTypes uiExports (elastic#58337)
  [SIEM] Default the Timeline events filter to show All events (elastic#58953)
  [Remote clusters] Add indexManagement as required plugin (elastic#58915)
  [DOCS] Rework of main get started page (elastic#58260)
  [Endpoint] [Tests] fixes elastic#57946 flaky endpoint policy list test (elastic#58348)
  [Endpoint] add resolver middleware (elastic#58288)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Discover Discover Application release_note:enhancement Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.7.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clicking 'Visualize' on a location field in Discover should bring up new Maps app

6 participants