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

Replicate custom search attributes aliases with namespace replication #3922

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

alexshtin
Copy link
Member

What changed?
Replicate custom search attributes aliases with namespace replication.

Why?
Custom search attributes aliases must be replicated together with other namespace config fields.

How did you test it?
Elasticsearch integration tests running on top of SQL advanced visibility (upcomming PR).

Potential risks
No risks.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team as a code owner February 9, 2023 06:59
Comment on lines +167 to +172
Retention: task.Config.GetWorkflowExecutionRetentionTtl(),
HistoryArchivalState: task.Config.GetHistoryArchivalState(),
HistoryArchivalUri: task.Config.GetHistoryArchivalUri(),
VisibilityArchivalState: task.Config.GetVisibilityArchivalState(),
VisibilityArchivalUri: task.Config.GetVisibilityArchivalUri(),
CustomSearchAttributeAliases: task.Config.GetCustomSearchAttributeAliases(),
Copy link
Collaborator

@rodrigozhou rodrigozhou Feb 9, 2023

Choose a reason for hiding this comment

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

Thanks for fixing this!
But I wonder if there's a way to avoid this issue in the future?
I feel like every time a new field is added, it's prone have this same issue.

Copy link
Member Author

Choose a reason for hiding this comment

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

Reflection? Do we need to do this deep copy at all?
At least we should be able to add test which check all fields using reflection.

@alexshtin alexshtin merged commit 2d17cb8 into temporalio:master Feb 9, 2023
@alexshtin alexshtin deleted the fix/replicate-sa-aliases branch February 9, 2023 17:20
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