Skip to content

[Feature Request] Upsert TemporalChangeVersion on patch #117

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

Open
1 of 5 tasks
lorensr opened this issue Jul 6, 2022 · 5 comments
Open
1 of 5 tasks

[Feature Request] Upsert TemporalChangeVersion on patch #117

lorensr opened this issue Jul 6, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@lorensr
Copy link
Contributor

lorensr commented Jul 6, 2022

Is your feature request related to a problem? Please describe.

Can't do:

tctl workflow list --query='TemporalChangeVersion="<change_id>-<version_id>"'

Which our docs say you should be able to do when using patch API.

image

https://docs.temporal.io/concepts/what-is-a-search-attribute

Describe the solution you'd like

Add an UpsertSearchAttributes with TemporalChangeVersion: <change_id>-<version_id> with each patch command. Apparently Go SDK does this, but Java doesn't.

SDKs

Additional context

Internal slack link

@lorensr lorensr added the enhancement New feature or request label Jul 6, 2022
@rupalivohra
Copy link

This also appears to not work for the TS SDK, but I'm guessing solving it in the Core will address that as well?

@lorensr
Copy link
Contributor Author

lorensr commented Aug 9, 2022

Yes.

@Sushisource I was envisioning this done only in Core, but that would mean workflowInfo().searchAttributes wouldn't have TemporalChangeVersion?

@Sushisource
Copy link
Member

@lorensr It should be able to have it just fine - maybe not in the same workflow task that you do the upsert, but that's correct in some sense anyway.

@bergundy
Copy link
Member

We could add the search attribute when a patch is applied in the TS workflow runtime so it's available when processing the "current" workflow task.

@bergundy
Copy link
Member

I think we decided to close this and implement in lang, it's much much simpler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants