-
Notifications
You must be signed in to change notification settings - Fork 801
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
Add workflow query-types
command to CLI
#5456
Conversation
workflow query-types
command to CLI
@@ -629,6 +629,11 @@ func QueryWorkflowUsingStackTrace(c *cli.Context) { | |||
queryWorkflowHelper(c, "__stack_trace") | |||
} | |||
|
|||
// QueryWorkflowUsingQueryTypes list all query types of the workflow using __query_types as query type | |||
func QueryWorkflowUsingQueryTypes(c *cli.Context) { | |||
queryWorkflowHelper(c, "__query_types") |
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 feature on the client side was not yet released and is not yet supported by java client.
I'm not sure what is the best way to communicate this.
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.
I think that's fine to have CLI doing more than you can do programmatically.
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.
it is, but it's also implying [something] will work.
what's the failure message when this reaches a worker that doesn't support the query? it should probably be something more descriptive than a default one.
@@ -629,6 +629,11 @@ func QueryWorkflowUsingStackTrace(c *cli.Context) { | |||
queryWorkflowHelper(c, "__stack_trace") | |||
} | |||
|
|||
// QueryWorkflowUsingQueryTypes list all query types of the workflow using __query_types as query type | |||
func QueryWorkflowUsingQueryTypes(c *cli.Context) { | |||
queryWorkflowHelper(c, "__query_types") |
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.
I think that's fine to have CLI doing more than you can do programmatically.
A new command
workflow query-types
has been added.Why?
The command will allows users to retrieve the list of available query types. #382
How did you test it?
It has been tested locally.
Potential risks
No potential risks, the existing functionality hasn't been touched.
Release notes
Documentation Changes
uber/Cadence-Docs#168