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

Change the maximum digits in a year to 4 #54260

Closed
wants to merge 7 commits into from

Conversation

pgomulka
Copy link
Contributor

@pgomulka pgomulka commented Mar 26, 2020

We changed the default joda behaviour in strict_date_optional_time to
max 4 digits in a year. This helps parsing epoch_millis format which is
often used in a default format strict_date_optional_time||epoch_millis
This change adjustes our java.time implmementation to behave the same
way
closes #52396

We changed the default joda behaviour in strict_date_optional_time to
max 4 digits in a year. This helps parsing epoch_millis format which is
often used in a default format `strict_date_optional_time||epoch_millis`
This change adjustes our java.time implmementation to behave the same
way
@pgomulka pgomulka added :Core/Infra/Core Core issues without another label v8.0.0 v7.8.0 labels Mar 26, 2020
@pgomulka pgomulka self-assigned this Mar 26, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Core)

@pgomulka pgomulka added the WIP label Mar 26, 2020
@pgomulka pgomulka marked this pull request as ready for review March 27, 2020 10:42
@pgomulka pgomulka removed the WIP label Mar 30, 2020
@rjernst
Copy link
Member

rjernst commented Apr 27, 2020

Changing to 4 digit year seems ok to me, but I don't recall exactly why we allowed 10 digits in the first place. I vaguely remember this being joda behavior we were matching. @spinscale do you remember at all why we do the above? I'm also unsure to what extent we can make this change in 7.x, since it is technically breaking? I think we would need a proper deprecation period and possibly a flag so users can opt in to the newer behavior.

@rjernst rjernst added the Team:Core/Infra Meta label for core/infra team label May 4, 2020
@pgomulka
Copy link
Contributor Author

ok to test

@pgomulka pgomulka changed the base branch from 7.x to master May 13, 2021 06:51
@pgomulka pgomulka changed the base branch from master to 7.x May 13, 2021 06:53
@pgomulka
Copy link
Contributor Author

closing in favour of #73034

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team v7.14.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants