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

Update format_number time test for APJ timezones #102691

Merged
merged 4 commits into from
Jun 30, 2021

Conversation

matschaffer
Copy link
Contributor

@matschaffer matschaffer commented Jun 21, 2021

Summary

Updates the formatNumber time test for APJ timezones.

The test formats 1461868937000 as H:mm:ss and expects a double digit return. Here in UTC+9, this formats as '3:42:17' which fails the assertion, so swapped the double digit for an optional leading 1 or 2 check.

Checklist

For maintainers

@matschaffer matschaffer added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Jun 21, 2021
@matschaffer matschaffer self-assigned this Jun 21, 2021
@matschaffer matschaffer marked this pull request as ready for review June 21, 2021 05:57
@matschaffer matschaffer requested a review from a team June 21, 2021 05:57
In EMEA timezones H:mm:ss can return 20:42:17
Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

  • Does it need backport to 7.x?
  • What team label should this have?

@matschaffer matschaffer added the Team:Monitoring Stack Monitoring team label Jun 22, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring (Team:Monitoring)

@matschaffer matschaffer added v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed labels Jun 22, 2021
Copy link
Member

@jasonrhodes jasonrhodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@matschaffer
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @matschaffer

@matschaffer matschaffer merged commit 0324a06 into elastic:master Jun 30, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Jun 30, 2021
* Update format_number test for APJ timezones

* Switch asertion to optional leading 1

* Allow leading 1 or 2

In EMEA timezones H:mm:ss can return 20:42:17

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Jun 30, 2021
* Update format_number test for APJ timezones

* Switch asertion to optional leading 1

* Allow leading 1 or 2

In EMEA timezones H:mm:ss can return 20:42:17

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Mat Schaffer <mat@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Monitoring Stack Monitoring team v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants