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] Add suggest EMS layer utility #94969

Merged
merged 16 commits into from
Apr 1, 2021

Conversation

thomasneirynck
Copy link
Contributor

@thomasneirynck thomasneirynck commented Mar 18, 2021

Summary

Adds suggestEMSTermJoinConfig utility to MapsPlugin.

Based on some sample-values, will suggest a layer and column from EMS that can be used for choropleth mapping.

This is ready for a first look, but this is just a first proposal on how this could work. Tried to keep it simple as a first pass.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@thomasneirynck thomasneirynck added WIP Work in progress [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation labels Mar 18, 2021
@thomasneirynck thomasneirynck added v7.13.0 v8.0.0 chore release_note:skip Skip the PR/issue when compiling release notes labels Mar 29, 2021
@elasticmachine
Copy link
Contributor

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

x-pack/plugins/maps/public/plugin.ts Outdated Show resolved Hide resolved
const url = emsFileLayer.getDefaultFormatUrl();

try {
const emsJson = await fetchGeoJson(
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we put these geojson files into some kind of cache so they are not re-fetched everything time the method is run?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

discussed offline. Will push cashing logic in the ems-client. This will also simplify the geojson-fetching in general, pushing format-conversion (if any) into the ems-client as well. cf. elastic/ems-client#60

@thomasneirynck thomasneirynck requested a review from nreese April 1, 2021 01:51
@thomasneirynck thomasneirynck removed the WIP Work in progress label Apr 1, 2021
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

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
maps 761 766 +5

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
maps 2.6MB 2.6MB +2.9KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
maps 66.7KB 67.4KB +735.0B

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:skip Skip the PR/issue when compiling release notes v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants