mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-31 02:51:51 -07:00
## What changed? Change datetime format to always include nanos component in Elasticsearch Visibility. Also added Visibility integration tests with Elasticsearch. ## Why? With Elasticsearch, comparing dates without explicitly specifying all components can lead to unexpected results. Eg: `StartTime = '2023-04-05T06:07:08Z'` would match a workflow with `StartTime = '2023-04-05T06:07:08.100000000Z'`. This behavior is unexpected and can mess up with pagination. This PR fixes it so missing nanos components is always specified (in the example, it would be filled with 0s). ## How did you test it? - [x] built - [x] run locally and tested manually - [ ] covered by existing tests - [x] added new unit test(s) - [x] added new functional test(s) ## Potential risks