Skip to content

Conversation

@lilydoar
Copy link
Contributor

What was changed

Added an option to disable creating the default search attributes

Why?

Scenarios running against cloud server cells cannot create search attributes through the SDK. They must use the control plane instead.

@CLAassistant
Copy link

CLAassistant commented Nov 20, 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.

// by the run, they must be registerd by some other method. This is needed because cloud cells
// cannot use the SDK to register SAs, instead the SAs must be registered through the control plane.
// Default is false.
NoDefaultSearchAttributes bool
Copy link
Contributor

Choose a reason for hiding this comment

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

How about DoNotRegisterSearchAttributes and --do-not-register-search-attributes?

I'm thinking that's slightly more accurate / precise, since an attempt will be made to use the default search attributes regardless of the value of this option; we're controlling whether they should be registered.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Changed

@lilydoar lilydoar force-pushed the DEVPROD-628 branch 2 times, most recently from dbcc436 to efcfb03 Compare November 20, 2024 20:45
Copy link
Contributor

@dandavison dandavison left a comment

Choose a reason for hiding this comment

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

Nice, LGTM.

Co-authored-by: Dan Davison <[email protected]>
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.

Thanks!

@lilydoar lilydoar merged commit 3f2d1c3 into main Nov 20, 2024
9 checks passed
@lilydoar lilydoar deleted the DEVPROD-628 branch November 20, 2024 21:36
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.

5 participants