-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[TileMap][RegionMap] Implement custom renderers and expression builders #84775
Conversation
# Conflicts: # src/plugins/region_map/public/region_map_fn.ts # src/plugins/tile_map/public/tile_map_fn.test.ts # src/plugins/tile_map/public/tile_map_fn.ts
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.
KibanaApp code review LGTM. I tested locally but not so thoroughly. I can't find any regressions or to be completely honest I found some bugs but exist on master too so weren't created by this PR.
@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.
LGTM, plugins work as expected
}); | ||
this._leafletMap.on('load', () => { | ||
visualization.sessionState.mapBounds = this.getBounds(); | ||
}); | ||
this.on('dragend', persistMapStateInUiState); |
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.
Are these changes being captured somewhere else now?
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 didn't find any other usages of sessionState
except this place, so I think this is just a legacy leftover which should. be removed
@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.
app arch related code LGTM
# Conflicts: # src/plugins/tile_map/public/tile_map_type.ts
@aaronjcaldwell @nreese please review that. We need a review from your team |
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.
LGTM
code review, tested in chrome
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsasync chunk count
History
To update your PR or re-run it, just comment with: |
…rs (#84775) (#88308) * Convert to typescript * Move related files directly into plugin * Implement toExpressionAst * Remove build_pipeline dedicated fn * Async import converter * Create a custom renderer * Remove ExprVis instance usage in maps visualizations * Use uiState updates * Create wrapper component * Update rendering * Create region map expression renderer * Remove resize subscription * Fix custom visualization expression * Update interpreter functional tests * Use types from geojson Co-authored-by: Alexey Antonov <alexwizp@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Alexey Antonov <alexwizp@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Part of #46801
Implement custom renderers and expression builders for the
Tile Map
&Region Map
visualizations.The PR includes next changes:
Tile Map plugin
src/plugins/tile_map/public/to_ast.ts
;src/plugins/tile_map/public/tile_map_renderer.tsx
;TileMapOptions
component for editor;decodeGeoHash
,geoContains
,convertToGeoJson
were moved directly intotile_map
plugin, since they are only used there;src/plugins/tile_map/public/_tile_map.scss
;Region Map plugin
src/plugins/region_map/public/to_ast.ts
;src/plugins/region_map/public/region_map_renderer.tsx
;RegionMapOptions
component for editor;Maps legacy plugin
BaseMapsVisualization
parent class to useIInterpreterRenderHandlers
andVisParams
instead ofExprVis
instance - which will be removed in visualizations cleanup;KibanaMap
class to useuiState
object directly;Checklist
Delete any items that are not applicable to this PR.
For maintainers