Open nickofthyme opened 2 days ago
Describe the feature:
The Friendly duration formatters should account for singular values. Currently, we only use pluralized formats.
This is where we compute the unit text and join it with the value...
https://github.com/elastic/kibana/blob/89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb/src/plugins/field_formats/common/converters/duration.ts#L134-L137
Here is the list of all values...
https://github.com/elastic/kibana/blob/89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb/src/plugins/field_formats/common/constants/duration_formats.ts#L18-L167
This only applies to the long form text strings and not the shortText strings.
text
shortText
Describe a specific use case for the feature:
Notice 1 seconds should be 1 second.
1 seconds
1 second
Pretty simple and low impact but could be nice.
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)
Describe the feature:
The Friendly duration formatters should account for singular values. Currently, we only use pluralized formats.
This is where we compute the unit text and join it with the value...
https://github.com/elastic/kibana/blob/89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb/src/plugins/field_formats/common/converters/duration.ts#L134-L137
Here is the list of all values...
https://github.com/elastic/kibana/blob/89d833bf58ba614a0e9eb6a38a02c4eb5a641aeb/src/plugins/field_formats/common/constants/duration_formats.ts#L18-L167
This only applies to the long form
text
strings and not theshortText
strings.Describe a specific use case for the feature:
Pretty simple and low impact but could be nice.