Skip to content

[Search Sessions] Expiration badges should use correct singular/plural words #122931

@afharo

Description

@afharo

Kibana version: 8.0.0-rc1

Describe the bug:
When there's 1 hour left to the expiration of a Search Session, the badge reads "1 hours" in plural.
image

Steps to reproduce:

  1. Identify a Search Session that will expire in 1 hour (you can use either Kibana's config to create sessions that expire have 2 hours or use the /internal/{session-id}/_extend API to set the desired expiration date.
  2. Notice that the badge shows "1 hours"

Expected behavior:
It should show "1 hour"

Metadata

Metadata

Assignees

Labels

Feature:SearchQuerying infrastructure in KibanaFeature:Search SessionsIceboxTeam:DataDiscoveryDiscover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t//good 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 EffortpapercutSmall "burr" in the product that we should fix.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions