Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Field formatters] Duration formatter should have an option to add suffixes to time #72762

Closed
wylieconlon opened this issue Jul 21, 2020 · 1 comment · Fixed by #76729
Closed

Comments

@wylieconlon
Copy link
Contributor

The duration field formatter is particularly hard to use compared to what users expect, but I think there is a small amount of code that could improve the experience significantly. Specifically, the field formatter for duration should allow a short suffix to be added using a checkbox, and the suffix should be selected from the list of suffixes. For example, event.duration is measured in nanoseconds, but probably should be displayed in milliseconds with the suffix ms.

It's possible that the "with suffix" option should be default, but in the interest of making this a non-breaking change I don't think this is actually a requirement.

Screenshots:

Unformatted:

Screen Shot 2020-07-21 at 6 08 58 PM

Formatted as milliseconds using the current formatter:

Screen Shot 2020-07-21 at 6 19 08 PM

Formatted as milliseconds with a label:
Screen Shot 2020-07-21 at 6 17 42 PM

This is related to the Lens number formatting options.

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants