[Map] return bounding box for static feature collection without joins#66607
[Map] return bounding box for static feature collection without joins#66607nreese merged 3 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/kibana-gis (Team:Geo) |
thomasneirynck
left a comment
There was a problem hiding this comment.
Thx for the fix and the small refactor to add the test.
There's an edge-case that still breaks:
Layers with term-joins that are not backed by EMS, but by ES-doc layers.
e.g.
- download world-countries from https://maps.elastic.co/#file/world_countries
- upload with GeoJson uploader in Maps
- add layer: turn apply-global-filter switch off
- add term-join with sample-logs on
iso2=geo.dest
=> fit2bounds will always navigate to entire layer iso only to the countries that have a matching join
I think the fix would be that if a layer has joins, it always should check against the visibility of features in the source-feature-collection and not delegate to Source#getBoundsForFilters. Am I missing something?
should be refined then to also check if the layer has joins.
Thoughts on adding it to this PR (?)
thomasneirynck
left a comment
There was a problem hiding this comment.
discussed with @nreese
will use new PR for edge-case when layer is an ES-doc layer
|
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…elastic#66607) * [Map] return bounding box for static feature collection without joins * tslint Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…elastic#66607) * [Map] return bounding box for static feature collection without joins * tslint Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> # Conflicts: # x-pack/plugins/maps/public/classes/layers/vector_layer/vector_layer.js
* master: (191 commits) [Maps] Get number of categories from palette (elastic#66454) move oss features registration to KP (elastic#66524) [kbn/plugin-helpers] typescript-ify (elastic#66513) Add kibana-operations as codeowners for .ci/es-snapshots and vars/ (elastic#66746) FTR: move basic services under common folder (elastic#66563) Migrate Beats Management UI to KP (elastic#65791) [CI] Add 20 minutes to overall build timeout lint import from restricted zones for export exressions (elastic#66588) [SIEM][Detection Engine] Add validation for Rule Actions (elastic#63332) KP plugins shouldn't need package.json (elastic#66654) Replace agent metrics link with the new one (elastic#66632) [CI] Add one retry to setup step (elastic#66638) [CI] Add slack alerts to tracked branch jobs, change default channel, change formatting (elastic#66580) [docLinks] Add docLinks to CoreSetup. (elastic#66631) [DOCS] Rename monitoring collection from internal to legacy (elastic#65781) unskip newsfeed tests (elastic#66562) [NP] Migrate uiSettings owned by Kibana app (elastic#64321) [ML] Functional tests - stabilize typing in DFA mml input (elastic#66706) [Map] return bounding box for static feature collection without joins (elastic#66607) remove trailing slash in graph sample data links (elastic#66358) ...
fixes #66582