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

Schedule update search attributes #1625

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

Conversation

THardy98
Copy link
Contributor

@THardy98 THardy98 commented Feb 8, 2025

What was changed

Allow schedules to update their search attributes.

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

  2. How was this tested:
    Added integration test.

  3. Any docs updates needed?
    Unsure

- remove ITypedSearchAttributes, expose concrete class TypedSearchAttributes
- update constructor to take a list of pairs, consistent with the usage of pairs and class throughout the API
- `Options` objects (i.e. user input) allow for both pairs and the concrete class as input types
- created `TypedSearchAttributeUpdate`/`Pair` types, to be used for upserts and updates, the only difference with these types and the existing `TypedSearchAttribute/Pair` types is that they except `null` values (for deletion)
- fixed the `upsert` method to accomodate these types
- `updateSearchAttributes` now returns a new copy of `TypedSearchAttributes` to avoid mutation of existing `TypedSearchAttributes` objects
- a myriad of small changes to accomodate the type changes
…tic methods within the class

renamed some types and methods
@THardy98 THardy98 requested a review from mjameswh February 8, 2025 00:40
@THardy98 THardy98 requested a review from a team as a code owner February 8, 2025 00:40
@THardy98
Copy link
Contributor Author

THardy98 commented Feb 8, 2025

Note - this PR is branched off another PR (#1612) and will be merged only after its parent has been merged.

For reviewers, only the last commit is relevant to this PR

@THardy98 THardy98 force-pushed the schedule-update-search-attributes branch 2 times, most recently from a00dc2c to bf1eae3 Compare February 8, 2025 04:30
@THardy98 THardy98 force-pushed the schedule-update-search-attributes branch from bf1eae3 to d8ee220 Compare February 8, 2025 09:35
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
1 participant