Skip to content

enable namespace mapper with fallbacks#9664

Merged
awln-temporal merged 3 commits intomainfrom
namespace-mapper-enable
Apr 9, 2026
Merged

enable namespace mapper with fallbacks#9664
awln-temporal merged 3 commits intomainfrom
namespace-mapper-enable

Conversation

@awln-temporal
Copy link
Copy Markdown
Contributor

What changed?

enable namespace mapper with fallbacks to the cluster metadata.

Why?

Allow backwards compatible rollout of search attribute mapper unification for ElasticSearch backed visibility stores.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@awln-temporal awln-temporal requested review from a team as code owners March 25, 2026 20:12
@awln-temporal awln-temporal requested review from a team as code owners March 27, 2026 17:49
@awln-temporal awln-temporal force-pushed the namespace-mapper-enable branch 4 times, most recently from 4d1c2d8 to 2cd158d Compare April 1, 2026 03:24
@awln-temporal awln-temporal force-pushed the namespace-mapper-enable branch from 2cd158d to 5634fcb Compare April 1, 2026 03:30
Comment on lines 34 to 41
esCustomSearchAttributes = map[string]enumspb.IndexedValueType{
"CustomIntField": enumspb.INDEXED_VALUE_TYPE_INT,
"CustomTextField": enumspb.INDEXED_VALUE_TYPE_TEXT,
"CustomKeywordField": enumspb.INDEXED_VALUE_TYPE_KEYWORD,
"CustomDatetimeField": enumspb.INDEXED_VALUE_TYPE_DATETIME,
"CustomDoubleField": enumspb.INDEXED_VALUE_TYPE_DOUBLE,
"CustomBoolField": enumspb.INDEXED_VALUE_TYPE_BOOL,
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wondering if we could get rid of this. We can do in a another PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

can't get rid of this one, this is used in the operator handler to register search attributes, i can rename this though.

@awln-temporal awln-temporal merged commit 68f8c22 into main Apr 9, 2026
70 checks passed
@awln-temporal awln-temporal deleted the namespace-mapper-enable branch April 9, 2026 16:44
awln-temporal added a commit that referenced this pull request Apr 10, 2026
## What changed?
Re-add noop mapper to fallback for visibility functional tests.

## Why?
Fix visibility func test nil panic.
#9664 introduced regressions,
though somehow passed CI checks, where all visibility tests would panic
upon checking the namespace mapper, which is a nil pointer. This change
just points these to a noop mapper instance.

## How did you test it?
- [X] built
- [X] run locally and tested manually
- [X] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s).
stephanos pushed a commit that referenced this pull request Apr 13, 2026
## What changed?
enable namespace mapper with fallbacks to the cluster metadata.

## Why?
Allow backwards compatible rollout of search attribute mapper
unification for ElasticSearch backed visibility stores.

## How did you test it?
- [X] built
- [X] run locally and tested manually
- [X] covered by existing tests
- [X] added new unit test(s)
- [ ] added new functional test(s)
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.

2 participants