Skip to content

[Discover] <FieldIcon/> usage is inconsistent  #124017

@Dosant

Description

@Dosant

Kibana version: Main (8.1)

Describe the bug:

Looks like logic for extracting type from a field for <FieldIcon/> is different in different places in discover.
For example, discover's document table always displays string fields icons as string, but the field list displays an underlying es type (e.g. version or text)

Steps to reproduce:

  1. Create a field of type version or text
  2. See how it is displayed in Discover in the field list and in the document grid.
  3. They are displayed differently

Expected behavior:

They should be displayed in the same manner in different places.

Screenshots (if relevant):

image

Any additional context:

Noticed in: #123739

Metadata

Metadata

Assignees

Labels

:DataDiscovery/fix-it-weekFeature:DiscoverDiscover ApplicationTeam:DataDiscoveryDiscover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t//bugFixes for quality problems that affect the customer experienceimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.

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