[7.17] Adjust date conversion for execution context in watcher compare condition#88467
Conversation
Add one test to confirm the below watcher compare condition is always
met.
```
"condition": {
"compare": {
"ctx.execution_time": {
"gte": "<{now-5m}>"
}
}
}
```
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
v1 can be an instance of JodaCompatibleZonedDateTime in versions prior to elastic#78417, which has to be converted to ZonedDateTime for appropriate comparison. Closes elastic#88408
|
The added test failed expectedly at the beginning as below.
And the fact that the subsequent commit df128f1 let the test pass proves the proper bug fix. |
|
Pinging @elastic/es-data-management (Team:Data Management) |
Issue: #88408
This PR backports the commit in the below PR to 7.17:
In addition to that, 58d57be will be cherry-picked once confirming CI build fails on the added test.
Question: Does the following changelog look ok?