-
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
Have maps use url generators and ui actions for discover -> maps drilldown. #61841
Comments
Pinging @elastic/kibana-gis (Team:Geo) |
What API do you have in mind? In this case, the API is the URL-query arguments. How would this new API be meaningfully different? (e.g. wrt "[Maps] taking care of updating those implementations"). |
I would imagine that the API would look aroundish like: plugins.maps.openMapsApplication({
fields: [
{ indexPattern, field, type }
],
filters,
queries,
}); The new API would in so far be different, that the contract exposed to other plugins, is an actual TypeScript function call, that is completely typed and documented, and the implementation to build the URL from it it an implementation concern of that plugin. We've in the past just seen linking between applications fall apart more often, why we want to have a clear separation of concerns to the plugins responsible for it. |
The uiActions system actually might be a nicer approach here, so that Discover can just trigger an event for VISUALIZE_GEO_POINT, and Maps can register for this, so the problem with OSS vs. x-pack code is also handled automatically by the system. |
There are functional tests verifying this behavior so there is less risk of unintended breakage. Is uiActions system implemented yet, or is that something coming in the future? |
Closed by #74121 |
In #58549 code was introduced in the discover plugin, that links to the maps application. This code should not live inside the discover plugin, but should instead be an API of the maps plugin directly (or using the uiActions system, but also be implemented in Maps, see #25247), so that the maps plugin itself is responsible of taking care of updating those implementations.
The code in discover should be replaced by that API within the Maps application as soon as it's available.
The text was updated successfully, but these errors were encountered: