-
Notifications
You must be signed in to change notification settings - Fork 874
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
Hide scheduler workflows with new search attribute #3123
Conversation
@@ -86,6 +87,10 @@ func (ni *nameInterceptor) Name(name string, usage query.FieldNameUsage) (string | |||
} | |||
} | |||
|
|||
if fieldName == searchattribute.TemporalNamespaceDivision && usage == query.FieldNameFilter { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels icky. Any better ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it is supposed to be used.
new_mapping=' | ||
{ | ||
"properties": { | ||
"TemporalNamespaceDivision": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is getting kind of annoying. What do you think about auto-registering new pre-defined on upgrade? Or the cli tool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are starting to get ES schema changes more often and expectation was the opposite. Ideally, special ES CLI tool needs to be added (there is an open #2977 PR for it) which will handle all ES schema updates. I would leave it as is for now.
Looks reasonable to me. cc @alexshtin |
new_mapping=' | ||
{ | ||
"properties": { | ||
"TemporalNamespaceDivision": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are starting to get ES schema changes more often and expectation was the opposite. Ideally, special ES CLI tool needs to be added (there is an open #2977 PR for it) which will handle all ES schema updates. I would leave it as is for now.
@@ -86,6 +87,10 @@ func (ni *nameInterceptor) Name(name string, usage query.FieldNameUsage) (string | |||
} | |||
} | |||
|
|||
if fieldName == searchattribute.TemporalNamespaceDivision && usage == query.FieldNameFilter { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how it is supposed to be used.
What changed?
TemporalNamespaceDivision
search attribute + schema changesListWorkflowExecutionsRequest
or in query stringWhy?
To hide scheduler, batch operation, other internal workflows from normal visibility operations in user namespaces
How did you test it?
unit tests + manual test
Potential risks
Is hotfix candidate?