-
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
[Maps] geo line source #76572
[Maps] geo line source #76572
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx
Outdated
Show resolved
Hide resolved
@nreese |
Tested this with the @nreese @kmartastic do you think it would make sense to add the ability to include also a new documents layer at the same time? Not a big deal since it's a couple of clicks away but I guess it will be a common use case where people want to also have access to the individual points even if it's to render the last point with the top hit per entity option that would leverage the wizard parameter as well. |
I think it would be great if the line could have an end-cap. That's a reasonable and often better substitute for adding a second layer of documents in order to show "last point". The direction of the line matters and end-caps solve it. |
Sounds like a reasonable enhancement but I would leave that out of the initial PR. Lets get the bare minimum out and then work on enhancements. |
@elasticmachine merge upstream |
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.
this is such a great PR!
The slimmed-down wizard is very intuitive.
One issue is that the bounding-box filter applies to all the documents. The result is that the geo_line agg may "skip" points that are consecutive in time but outside the bounds, in favor of points that are older but inside the bounds. This causes lines to get a "flicker" effect when panning/zooming since non-consecutive points get connected. Maps has the same issue with pew-pew maps fwiw (#59106).
to address, consider a few work-arounds:
- add "dynamic query in bounding box" switch, similar to how ES-documents layer have this switch
- run the term agg first for last-known entity with bounding-box included, then run a filters-agg (one filter per entity) and accumulate geo_line.
@elasticmachine merge upstream |
@talevy @thomasneirynck I added |
This has been addressed. The request has been split into 2 |
@elasticmachine merge upstream |
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.
This is really amazing.
Added some discussion items wrt. some of the defaults.
x-pack/plugins/maps/public/classes/sources/es_geo_line_source/layer_wizard.tsx
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_line_source/layer_wizard.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_line_source/layer_wizard.tsx
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_line_source/update_source_editor.tsx
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_line_source/geo_line_form.tsx
Show resolved
Hide resolved
x-pack/plugins/maps/public/classes/sources/es_geo_line_source/es_geo_line_source.tsx
Show resolved
Hide resolved
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Distributable file count
Page load bundle
History
To update your PR or re-run it, just comment with: |
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.
😱 Congratulations!
* [Maps] geo line source * update editor with metrics * show track name in tooltip * fix styling by category * avoid killing ES, limit to 100 tracks * better source tooltip message * fix imports * increase max tracks * use tracks icon * tslint * Making layer wizard select tooltip flex * tslint and jest snapshot updates * clean up * add trimmed property to tooltip * change complete label to 'track is complete' * show incomplete data icon if tracks are trimmed * add jest test for getSourceTooltipContent * clean up areResultsTrimmed logic * split request into 2 fetches * review feedback * do not allow selecting split field as sort field * reduce number of tracks to 250 * tslint Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: miukimiu <[email protected]>
* master: (28 commits) [Actions] fixes bug where severity is auto selected but not applied to the action in PagerDuty (elastic#84891) Only attempt to rollover signals index if version < builtin version (elastic#84982) skip flaky suite (elastic#84978) skip lens rollup tests Add geo containment tracking alert type (elastic#84151) Changed rollup tests to use test user rather than elastic super user. (elastic#79567) skip 'should allow creation of lens xy chart' elastic#84957 [APM] Add log_level/sanitize_field_names config options to Python Agent (elastic#84810) [Maps] geo line source (elastic#76572) [data.search] Move search method inside session service and add tests (elastic#84715) skip lens drag and drop test. elastic#84941 [Ingest Node Pipelines] Integrate painless autocomplete (elastic#84554) [Lens] allow drag and drop reorder on xyChart for y dimension (elastic#84640) [Lens] Fix error when selecting the current field again (elastic#84817) [Metrics UI] Add metadata tab to node details flyout (elastic#84454) [CI] Enables APM collection (elastic#81731) [Workplace Search] Migrate Sources Schema tree (elastic#84847) Disable checking for conflicts when copying saved objects (elastic#83575) [SECURITY_SOLUTION] delete advanced Policy fields when they are empty (elastic#84368) y18n 4.0.0 -> 4.0.1 (elastic#84905) ...
* [Maps] geo line source * update editor with metrics * show track name in tooltip * fix styling by category * avoid killing ES, limit to 100 tracks * better source tooltip message * fix imports * increase max tracks * use tracks icon * tslint * Making layer wizard select tooltip flex * tslint and jest snapshot updates * clean up * add trimmed property to tooltip * change complete label to 'track is complete' * show incomplete data icon if tracks are trimmed * add jest test for getSourceTooltipContent * clean up areResultsTrimmed logic * split request into 2 fetches * review feedback * do not allow selecting split field as sort field * reduce number of tracks to 250 * tslint Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: miukimiu <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: miukimiu <[email protected]>
Fixes #31396
This PR adds a new source that uses
geo_line
aggregation to create tracks from points.geo_line
aggregation is gold so the layer wizard card is disabled when there is not a gold license.