[Maps] remove geo field check for index pattern select #96644
Labels
[Deprecated-Use Team:Presentation]Team:Geo
Former Team Label for Geo Team. Now use Team:Presentation
discuss
When selecting an index pattern while adding a map layer or creating a geo alert, the index pattern list is filtered to only show index patterns with geo_point and/or geo_shape fields. This has been problematic and is the source of several bugs like #95418.
The problem is that fields are not stored with index pattern saved objects. Fields are loaded via a separate API call so checking the fields for lots of index patterns will cause the index pattern select to be sluggish.
I recommend just removing the geo field check altogether and allow the index pattern select to show all index patterns. Then, when the user selects an index pattern, do the field check and display an error message if the index pattern does not contain the expected geo field type. One benefit of this solution is that with the addition of runtime fields, this solution would provide a way to notify users that the index pattern does not have a geo field and give them an action to add a geo_point or geo_shape field to the index pattern via runtime fields.
Thoughts?
The text was updated successfully, but these errors were encountered: