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

Add workflow query-types command to CLI #5456

Merged
merged 5 commits into from
Dec 18, 2023

Conversation

arzonus
Copy link
Contributor

@arzonus arzonus commented Nov 22, 2023

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
cadence-workflow/Cadence-Docs#168

@arzonus arzonus changed the title added workflow query-types command Add workflow query-types command to CLI Nov 22, 2023
@@ -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")
Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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")
Copy link
Member

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.

@arzonus arzonus enabled auto-merge (squash) November 27, 2023 08:45
@arzonus arzonus enabled auto-merge (squash) December 18, 2023 09:49
@arzonus arzonus merged commit 7865f69 into cadence-workflow:master Dec 18, 2023
16 checks passed
@arzonus arzonus deleted the add-workflow-query-types-cmd branch December 18, 2023 10:21
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.

4 participants