Skip to content

[Maps] remove geo field check for index pattern select #96644

@nreese

Description

@nreese

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:GeoFormer Team Label for Geo Team. Now use Team:Presentationdiscuss

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions