You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may apply in other situations, too—any situation in which we wrap typed search attributes inside another object in the CLI code would be impacted. Also, this is worse with server 1.24 because that server now returns schedule search attributes as typed search attributes. So search attributes that would have been returned from 1.23 and earlier are now missing from CLI output.
This can be worked around by using JSON output instead (-o json), which prints the attributes correctly.
We don't necessarily want to add one, either, as this might be unnecessary for most people, so we should try to come up with a workaround for this in the CLI instead.
Minimal Reproduction
Launch a 1.24.1 server (a CLI which uses 1.24.1 can be built from #584):
./temporal server start-dev
Then create a search attribute and schedule which uses the search attribute:
What are you really trying to do?
As the description says.
This may apply in other situations, too—any situation in which we wrap typed search attributes inside another object in the CLI code would be impacted. Also, this is worse with server 1.24 because that server now returns schedule search attributes as typed search attributes. So search attributes that would have been returned from 1.23 and earlier are now missing from CLI output.
This can be worked around by using JSON output instead (
-o json
), which prints the attributes correctly.Describe the bug
Typed search attributes are printed correctly when they are printed as part of a proto.Message, but incorrectly when printed as part of a normal JSON object. This is likely because there is no Marshaler implementation for SearchAttributes in the Go SDK.
We don't necessarily want to add one, either, as this might be unnecessary for most people, so we should try to come up with a workaround for this in the CLI instead.
Minimal Reproduction
Launch a 1.24.1 server (a CLI which uses 1.24.1 can be built from #584):
Then create a search attribute and schedule which uses the search attribute:
When describing the schedule in text mode, notice the
Action
'sTypedSearchAttributes
field is empty:However, the schedule prints correctly in JSON mode:
Environment/Versions
Additional context
The text was updated successfully, but these errors were encountered: