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

Insert guard clause for workflow.upsert_search_attributes on empty inputs #630

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

accupham
Copy link

@accupham accupham commented Sep 2, 2024

Fix for #629

What was changed

Guard clause on workflow.upsert_search_attributes so SDK doesn't crash on empty input.

Why?

Spent 5 hours debugging an inscrutable error message.

Checklist

  1. Closes 629

  2. How was this tested:
    Pass empty list into upsert_search_attributes in a workflow.

  3. Any docs updates needed?
    No

@accupham accupham requested a review from a team as a code owner September 2, 2024 22:22
@CLAassistant
Copy link

CLAassistant commented Sep 2, 2024

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Thanks! May need to sign CLA.

@accupham
Copy link
Author

accupham commented Sep 5, 2024

@cretz Signed CLA!

@cretz
Copy link
Member

cretz commented Sep 5, 2024

Thanks! We have a CI failure that is unrelated to this PR. Once it is fixed, we can come back and merge this.

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.

3 participants