-
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
Deserialize timeZone with DateUtils in RangeQueryBuilder #38449
Comments
Pinging @elastic/es-core-infra |
Looks like the place that actually needs to be changed to use elasticsearch/server/src/main/java/org/elasticsearch/index/query/RangeQueryBuilder.java Line 95 in 95582da
|
DateUtils.of methods allows to emitt deprecation message when a deprecated timezone was used closes elastic#38449
Hello, is this issue still open? I'd like to give it a shot. This would be my first issue. |
Hi. is this issue still open? I would like to try it as my first issue. 🤨:mag: |
@LeeTgk sure, it is still open. Feel free to send PR |
I attempted to fix this issue. I created a pull request and tried to make the commit as clear as possible. |
Hello is this issue still open? I would like to fix this issue. |
@gwbrown @williamrandolph @pgomulka I am new to open source and to elasticsearch and with some guidance I can help. I reviewed all comments and previous PR's. Here, the call in.readOptionalZoneId() needs to be replaced with DateUtils.dateTimeZoneToZoneId(DateTimeZone) , but its not clear to me how because dateTimeZoneToZoneId takes as input timezone and returns zone id but the current code is reading zoneId and storing as timezone. Does the stream contain a zoneId or timezone ? If its zoneId, then we dont need to call dateTimeZoneToZoneId, but if the stream contains timezone, then I need to convert string timezone to DateTimeZone before calling dateTimeZoneToZoneId Any guidance will help :-)
|
HI I am new and want to give it a shot. Can I pick this up ? |
Not needed anymore since #40647 |
as spotted in this review #38415 (comment)
DateUtil
should be used when serialising/deserializing timezones to allow deprecation loggingThe text was updated successfully, but these errors were encountered: