Skip to content

Conversation

cretz
Copy link
Member

@cretz cretz commented Sep 25, 2025

What was changed

  • Made sure all representations of search attribute keyword list values (coming from user or deserialized from server) are List<string>
  • Fixed tests to start including search attribute keyword lists (it was marked as a TODO because older dev server didn't support them on start)

Checklist

  1. Closes [Bug] KeywordList cannot be resolved as part of WorkflowExecutionDescription #526

Copy link
Contributor

@maciejdudko maciejdudko left a comment

Choose a reason for hiding this comment

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

Looks good! I left one minor suggestion. LGTM!

Comment on lines +44 to 50
internal SearchAttributeCollection()
: this(new())
{
}

private SearchAttributeCollection(SortedDictionary<SearchAttributeKey, object> values) =>
this.values = values;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: the private constructor is only used once, in the internal constructor. It can be removed and initialization can be done directly in the internal constructor (or even better, inline in the field declaration).

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 private constructor is also used in FromProto and ToSearchAttributeCollection

@cretz cretz merged commit fad7fb3 into temporalio:main Sep 25, 2025
10 checks passed
@cretz cretz deleted the search-attr-keyword-list branch September 25, 2025 20:04
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.

[Bug] KeywordList cannot be resolved as part of WorkflowExecutionDescription

2 participants