Skip to content
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

Allow updating search attributes from schedule updates #320

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

Sushisource
Copy link
Member

What was changed

Added ability to update the SAs for schedules
Also updated Core, largely to eliminate some compiler warnings from new Rust version

Why?

Parity

Checklist

  1. Closes [Feature Request] Support schedule search attribute update #314

  2. How was this tested:
    Added tests

  3. Any docs updates needed?

@Sushisource
Copy link
Member Author

I looked at the Go impl while doing this and I think the language here needs to be changed: https://github.com/temporalio/sdk-go/pull/1562/files#diff-03e17ff1d7fdefff7ba8a41ea26b6f3a3135e4b084e58cef60574e60bfd9a9f2R493

It is distinctly not an upsert operation. It is straight-up replacement. An upsert would preserve unchanged attributes if they are not included in the new collection, but they are wiped out unless you manually copy the existing attributes.

@@ -54,14 +54,6 @@ pub struct ForwardedLog {
fields_json: Arc<Mutex<Option<String>>>,
}

#[repr(C)]
pub struct ForwardedLogDetails {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unused

@Quinn-With-Two-Ns
Copy link

Yeah would be in favor of fixing the Go SDK docs as well

@Sushisource Sushisource merged commit ac9c891 into main Aug 5, 2024
7 checks passed
@Sushisource Sushisource deleted the sched-update-sas branch August 5, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Support schedule search attribute update
3 participants