Skip to content

Conversation

thecoop
Copy link
Member

@thecoop thecoop commented Sep 16, 2024

Use the deprecation logger so warnings end up in Kibana.
Update regex for a few more textual specifiers.

I've had to modify or mute several tests to deal with the extra deprecation warning this outputs

@thecoop thecoop added >non-issue :Core/Infra/Core Core issues without another label auto-backport Automatically create backport pull requests when merged v8.16.0 v8.15.2 v9.0.0 auto-backport-and-merge and removed auto-backport Automatically create backport pull requests when merged labels Sep 16, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Sep 16, 2024
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@mosche mosche left a comment

Choose a reason for hiding this comment

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

lgtm 👍

// check for all textual fields, and localized zone offset
private static final Predicate<String> CONTAINS_CHANGING_TEXT_SPECIFIERS = System.getProperty("java.locale.providers", "")
.contains("COMPAT") ? Pattern.compile("[EcGaO]|MMM|LLL|eee|ccc|QQQ|ZZZZ").asPredicate() : Predicates.never();
.contains("COMPAT") ? Pattern.compile("[BEGOavz]|LLL|MMM|QQQ|ccc|eee|Z{4}").asPredicate() : Predicates.never();
Copy link
Member

Choose a reason for hiding this comment

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

What is B? Should v be upper case (time-zone ID)?

Copy link
Member

Choose a reason for hiding this comment

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

Can we have tests with these formats in DateUtilsTests to ensure we are checking/interpreting them correctly?

Copy link
Member Author

Choose a reason for hiding this comment

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

B is 'Period of day' ('in the morning'). v is generic time-zone name (V is time-zone id), which I've seen can be localised

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@thecoop thecoop requested review from a team as code owners September 16, 2024 13:51
@thecoop thecoop changed the base branch from main to 8.x September 16, 2024 13:51
@thecoop thecoop requested a review from a team as a code owner September 16, 2024 16:09
@thecoop thecoop requested review from mosche and rjernst September 16, 2024 16:09
@thecoop thecoop removed the v9.0.0 label Sep 17, 2024
@thecoop
Copy link
Member Author

thecoop commented Sep 19, 2024

@elasticmachine rerun elasticsearch-ci/7.17.25

@thecoop
Copy link
Member Author

thecoop commented Sep 19, 2024

@elasticmachine update branch

@thecoop thecoop added auto-backport Automatically create backport pull requests when merged and removed auto-backport-and-merge labels Sep 19, 2024
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

Still LGTM

@thecoop thecoop merged commit ceb9def into elastic:8.x Sep 19, 2024
15 checks passed
@thecoop thecoop deleted the cldr-deprecation branch September 19, 2024 14:50
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.15

thecoop added a commit to thecoop/elasticsearch that referenced this pull request Sep 19, 2024
The addition of the logger requires several updates to tests to deal with the possible warning, or muting if there is not way to specify an allowed (but not mandatory) warning
elasticsearchmachine pushed a commit that referenced this pull request Sep 19, 2024
…3190)

The addition of the logger requires several updates to tests to deal with the possible warning, or muting if there is not way to specify an allowed (but not mandatory) warning

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged blocker :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v8.15.2 v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants