Skip to content

[FieldFormatters] Human-readable duration shows "a few seconds" when duration is "0"  #101000

@Dosant

Description

@Dosant

Kibana version: master (~7.14)
Describe the bug:

Human-readable duration field formatter outputs a few seconds for 0 value

Steps to reproduce:

  1. Create a duration human-readable field formatter on index pattern
  2. Check-in discover how a 0 value shown as a few seconds

Expected behavior:

I think we should output 0 following other formatting options. e.g. 0.00 seconds

Screenshots (if relevant):

Screen Shot 2021-05-31 at 15 17 12

Any additional context:

Noticed while testing #100540 (review)

Metadata

Metadata

Labels

:DataDiscovery/fix-it-weekFeature: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 experiencegood first issuelow hanging fruitimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.loe:smallSmall Level of Effort

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions