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

Typed search attributes #1782

Merged
merged 6 commits into from
Jun 12, 2023
Merged

Conversation

cretz
Copy link
Member

@cretz cretz commented Jun 7, 2023

What was changed

Implementation of typed search attributes. Specifically:

  • Marked all existing user-facing search attribute usage as deprected
  • Added SearchAttributes (with builder) and SearchAttributeKey and SearchAttributeUpdate to io.temporal.common
  • Added getters, setters, and upserters for typed search attributes

The tests were just written to have the same coverage as existing tests, but are admittedly probably not enough and more could be written for edge cases (e.g. using old API to set multiple int attributes and trying to use them with new API which only allows one).

cretz added 5 commits June 7, 2023 16:43
…h-attributes

# Conflicts:
#	temporal-sdk/src/main/java/io/temporal/client/WorkflowOptions.java
#	temporal-sdk/src/main/java/io/temporal/internal/sync/SyncWorkflowContext.java
@cretz cretz marked this pull request as ready for review June 7, 2023 22:25
@cretz cretz requested a review from a team as a code owner June 7, 2023 22:25
Copy link
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

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

This looks really good to me, big improvement.

@cretz cretz force-pushed the typed-search-attributes branch from 5f6208b to 7e25eee Compare June 9, 2023 16:17
@cretz cretz merged commit bff4b6f into temporalio:master Jun 12, 2023
@cretz cretz deleted the typed-search-attributes branch June 12, 2023 20: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.

4 participants