Skip to content

[7.x] [APM] Changes to duration formatting (#69039)#69176

Merged
smith merged 1 commit intoelastic:7.xfrom
smith:backport/7.x/pr-69039
Jun 15, 2020
Merged

[7.x] [APM] Changes to duration formatting (#69039)#69176
smith merged 1 commit intoelastic:7.xfrom
smith:backport/7.x/pr-69039

Conversation

@smith
Copy link
Copy Markdown
Contributor

@smith smith commented Jun 15, 2020

Backports the following commits to 7.x:

* [APM] Changes to duration formatting

* Change the threshold for showing microseconds to 1 millisecond instead of 10. This means you now get "900 µs/1.3 ms/20.0 ms" instead of "900 µs/1300 µs/20 ms."
* Change milliseconds formatted with `asDuration` to be `asDecimal` instead of `asInteger`. That means you get "0.0 ms/2.5 ms/3.0 ms" instead of "0 ms/2 ms/3 ms."
* Tables were all using their own module-scoped functions that called `asDuration` to format things as decimal milliseconds. Extract this to an `asMillisecondDuration` function exported from the duration helpers and use it in all the tables.
* Change `getResponseTimeseries` in chart selectors to use `asDuration` to make all chart timeseries units consistent.
* Don't export `convertTo` from the duration helpers as it's now not used anywhere. Always use a more specific exported function for more consistency.
* Change ">=" to "≥" in the ML flyout text.

* Update e2e snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@smith smith added the backport This PR is a backport of another PR label Jun 15, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@smith smith merged commit fcfb440 into elastic:7.x Jun 15, 2020
@smith smith deleted the backport/7.x/pr-69039 branch June 15, 2020 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants