Skip to content

[Discover][Field Formatters] URL and Badge should not be rendered when field has no data #251846

@jughosta

Description

@jughosta

Describe the bug:
A link tag configured via URL field formatter should not be rendered if the field has no data. Otherwise, the link would be broken.

Steps to reproduce:

  1. Configure a URL field formatter for a field which has missing values in some documents
  2. Check the result in the Discover table

Check other field formatters if they are affected by the same bug. For example, defining a Badge formatter also triggers an exception in the flyout for boolean field types.

Expected behavior:
No links should be rendered for cells where field did not have any value. It used to render - in earlier versions instead.

Metadata

Metadata

Assignees

Labels

Feature:FieldFormattersTeam: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:highAddressing this issue will have a high level of impact on the quality/strength of our product.loe:smallSmall Level of Effortregression

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions