fix: add guidance when search-attribute create hits per-type limit#1071
Open
amit-writes-code wants to merge 2 commits into
Open
fix: add guidance when search-attribute create hits per-type limit#1071amit-writes-code wants to merge 2 commits into
amit-writes-code wants to merge 2 commits into
Conversation
Author
|
@chaptersix seems the build is taking forever to run, I squashed 2 commits into 1 could that be the reason? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
Closes #318 (partial)
This PR addresses 1 of the 3 approaches discussed for issue #318:
--custom-search-attributes-limit— not doneWhat changed?
temporal operator search-attribute createpreviously surfaced the server'sper-type limit failure as a bare
unable to add search attributes: ... cannot have more than 3 search attribute of type Text., which gives the user no ideawhy the limit exists or what to do next.
With SQL-based Visibility, custom search attributes are mapped onto a fixed pool
of pre-allocated fields per type, so this limit cannot be raised at runtime. When
this specific error is detected, the command now appends a short hint: remove an
unused attribute of that type, reuse an existing one, choose a different type, or
use Elasticsearch-based Visibility (which has no per-type limit), plus a docs
link. All other failures are forwarded unchanged.
Scope note: issue #318 also suggests raising the default max (approaches 1 and 2
above). The per-type pool size is fixed in the visibility schema, not a runtime
setting, so raising it is a server-side schema concern rather than something the
CLI can pass through. This PR therefore intentionally addresses only the
error-message portion (approach 3); the other two can be tackled separately.
Checklist
Stability
-o json/-o jsonl) are treated as breaking changes — n/a, no JSON structure changeDesign
(Remaining Design items removed — no new commands or flags.)
Help text
(Removed — no changes to
commands.yamlor help text; the change is in the command'srunerror path.)Behavior
Tests
SharedServerSuite) —TestOperator_SearchAttribute_LimitGuidancefunc TestXxx) where applicable — covered by the functional testManual tests
Setup
Happy path
Error case
Composition