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

Sample - Custom Search Attributes #3

Merged
merged 5 commits into from
May 3, 2024

Conversation

MasonEgger
Copy link
Collaborator

No description provided.

@MasonEgger MasonEgger changed the title adding custom search attribute sample Sample - Custom Search Attributes Apr 7, 2024
@@ -0,0 +1,39 @@
# Custom Search Attributes
Copy link
Contributor

Choose a reason for hiding this comment

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

Meta comment, this course seems to use the deprecated old search attribute API, we now recommend users use the typed search attribute API

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what other language courses did, but I think it is worth a broader discussion on what API we should be teaching.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have updated this. Ready for review again


Keep in mind that setting attributes is optional in some attributes' case, and this is more for setting Search Attributes that are known at the start of the Workflow or may not change through the Workflow logic.

## Part C: Upserting Attributes
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to show removing a search attribute?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think for this sample we won't, but I'll include it in the course content.

@MasonEgger MasonEgger merged commit 4e406d7 into main May 3, 2024
1 check passed
@MasonEgger MasonEgger deleted the sample-custom-search-attribute branch May 8, 2024 17:01
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.

2 participants