Skip to content

Conversation

lukewhiting
Copy link
Contributor

Backports the following commits to 8.x:

* Add timezone support to Cron objects

* Add timezone support to CronnableSchedule

* XContent change to support parsing and display of TimeZone fields on schedules

* Case insensitive timezone parsing

* Doc changes

* YAML REST tests

* Equals, toString and HashCode now include timezone

* Additional random testing for DST transitions

* Migrate Cron class to use wrapped LocalDateTime

The algorithm depends on some quirks of calendar but LocalDateTime
correctly ignores DST during calculations so this uses a LocalDateTime
with a wrapper to emulate some of Calendar's behaviours that the Cron
algorithm depends on

* Additional documentation to explain discontinuity event behaviour

* Remove redundant conversions from ZoneId to TimeZone following move to LocalDateTime

* Add documentation warning that manual clock changes will cause unpredictable watch execution

* Update docs/reference/watcher/trigger/schedule.asciidoc

Co-authored-by: Lee Hinman <[email protected]>

---------

Co-authored-by: Lee Hinman <[email protected]>
@lukewhiting lukewhiting added :Data Management/Watcher >docs General docs changes >enhancement auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Data Management Meta label for data/management team Team:Docs Meta label for docs team labels Nov 25, 2024
Copy link
Contributor

Documentation preview:

@elasticsearchmachine elasticsearchmachine merged commit 5c97b2e into elastic:8.x Nov 25, 2024
16 checks passed
@lukewhiting lukewhiting deleted the backport/8.x/pr-117033 branch November 25, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Data Management/Watcher >docs General docs changes >enhancement Team:Data Management Meta label for data/management team Team:Docs Meta label for docs team v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants