Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is even more clarity than this needed. ISO8601 has multiple string formats (not to be confused w/ RFC3389 and other additions many things make to those). Can you specify exact format here? If unsure, we can start with where they are converted to date (Go? ES?) and then get the exact format from there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Go does
and
json.Unmarshal
calls this?https://pkg.go.dev/time#Time.UnmarshalJSON
which uses an RFC 3339 string. I'll edit to say that.
Other research, for posterity:
On ES side, Server has a v7 client and v6 client. v7 is date_nanos, and v6 is date:
![image](https://user-images.githubusercontent.com/251288/156794667-f1ea1213-624a-47e0-978a-07cdde0327f8.png)
v6:
Neither appears to customize format, so
date_nanos
format:"strict_date_optional_time_nanos||epoch_millis"
date
format:"strict_date_optional_time||epoch_millis"
What's working for me in
tctl
and web UI:Doesn't work:
Works for me in TS SDK (starting workflow with custom searchAttributes):
Doesn't work:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does
2001-02-03T04:05:06+0000
which is a perfectly valid ISO-8601 string work?It does not in Go using
RFC3339
format. If this does not work, we need to document that this is not exactly ISO-8601. Notice https://docs.temporal.io/visibility states:Need to clarify the same in docs here if it applies.