Skip to content

Conversation

@joegallo
Copy link
Contributor

@joegallo joegallo commented Mar 7, 2025

This is just a refactoring PR, it cleans up some code and encapsulates the template application logic to the internals of the DateProcessor rather than exposing it quite as directly. There's a performance improvement coming that builds on this, but this ain't it.

For the record, though, I do think this version of the logic is easier to follow.

@joegallo joegallo added :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >refactoring Team:Data Management Meta label for data/management team auto-backport Automatically create backport pull requests when merged v8.18.1 v8.19.0 v9.0.1 v9.1.0 labels Mar 7, 2025
@joegallo joegallo requested a review from masseyke March 7, 2025 15:55
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

joegallo added 5 commits March 7, 2025 13:00
Locale.ROOT doesn't round trip -- it results in a langugage tag of
"und" (undefined, I suppose), and when you round-trip back you don't
get Locale.ROOT from it. The old test worked because it was
fundamentally just testing that the template script execution would
result in the expected string (whether or not you could actually do
anything with the Locale that would result), while this new test is
checking the round-trip behavior.
@joegallo joegallo force-pushed the date-processor-refactoring branch from 37783ee to 6305025 Compare March 7, 2025 18:01
@joegallo joegallo merged commit 0e87e84 into elastic:main Mar 8, 2025
17 checks passed
@joegallo joegallo deleted the date-processor-refactoring branch March 8, 2025 14:03
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.18 Commit could not be cherrypicked due to conflicts
8.x Commit could not be cherrypicked due to conflicts
9.0 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 124349

joegallo added a commit to joegallo/elasticsearch that referenced this pull request Mar 8, 2025
joegallo added a commit to joegallo/elasticsearch that referenced this pull request Mar 8, 2025
joegallo added a commit to joegallo/elasticsearch that referenced this pull request Mar 8, 2025
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Mar 11, 2025
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 :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >refactoring Team:Data Management Meta label for data/management team v8.18.1 v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants