-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Remove uses of Joda from xpack tests #78660
Conversation
Joda was deprecated internally many years ago, but there still exist some tests that use it to format dates. This commit converts tests in xpack that need date parsing or printing to use Java time.
Pinging @elastic/es-core-infra (Team:Core/Infra) |
@elasticmachine update branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left one comment. No need for another review
@@ -137,7 +137,7 @@ public void testSimpleDateHisto() throws Exception { | |||
"the_histo.date_histogram._count", | |||
2, | |||
"the_histo.date_histogram.time_zone", | |||
DateTimeZone.UTC.toString(), | |||
"UTC", // TODO: the default is hardcoded from Joda, we should change this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe java.time.ZoneId.of("UTC").toString?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💔 Backport failed
You can use sqren/backport to manually backport by running |
Joda was deprecated internally many years ago, but there still exist some tests that use it to format dates. This commit converts tests in xpack that need date parsing or printing to use Java time.
* Remove uses of Joda from xpack tests (#78660) Joda was deprecated internally many years ago, but there still exist some tests that use it to format dates. This commit converts tests in xpack that need date parsing or printing to use Java time. * fix compile * checkstyle Co-authored-by: Elastic Machine <[email protected]>
Joda was deprecated internally many years ago, but there still exist
some tests that use it to format dates. This commit converts tests in
xpack that need date parsing or printing to use Java time.