-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconcile typed search attributes with schedules #1848
Reconcile typed search attributes with schedules #1848
Conversation
* <p>This should only be used when the server can return untyped search attributes, for example, | ||
* when describing a schedule workflow action. | ||
*/ | ||
public static SearchAttributeKey<Payload> forUntyped(String name) { |
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.
We could also make calling valueSet
and valueUnset
an error since I am not aware of any valid use case
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.
Yeah, that would work, I think we should. We can hide this more in other langs. Arguably we could make the name of this method more unwieldy, but this is probably good.
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.
Done
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.
This looks great! I am thinking how I can apply to my Python conundrum.
* <p>This should only be used when the server can return untyped search attributes, for example, | ||
* when describing a schedule workflow action. | ||
*/ | ||
public static SearchAttributeKey<Payload> forUntyped(String name) { |
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.
Yeah, that would work, I think we should. We can hide this more in other langs. Arguably we could make the name of this method more unwieldy, but this is probably good.
Fix typed search attributes in java schedules by:
ScheduleOptions
SearchAttributes
do not work when creating a scheduleSearchAttributes
container through a special key typecloses #1847