-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Specify pagesize for workflow list command #748
Conversation
bcd8ab6
to
9504ce3
Compare
temporalcli/commandsgen/commands.yml
Outdated
@@ -2886,6 +2886,9 @@ commands: | |||
- name: limit | |||
type: int | |||
description: Maximum number of Workflow Executions to display. | |||
- name: pagesize |
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.
To be consistent with how we name other flags, this should be:
- name: pagesize | |
- name: page-size |
temporalcli/commandsgen/commands.yml
Outdated
@@ -2886,6 +2886,9 @@ commands: | |||
- name: limit | |||
type: int | |||
description: Maximum number of Workflow Executions to display. | |||
- name: pagesize | |||
type: int | |||
description: Maximum number of Workflow Executions to return from server per request. Used for pagination. |
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.
Optional; rewords in terms of behavior, not implementation.
description: Maximum number of Workflow Executions to return from server per request. Used for pagination. | |
description: Maximum number of Workflow Executions to fetch at a time from the server. |
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.
LGTM (assuming we decide to stay with the naming etc. per offline discussion)
@@ -2886,6 +2886,9 @@ commands: | |||
- name: limit | |||
type: int | |||
description: Maximum number of Workflow Executions to display. | |||
- name: page-size |
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.
- name: page-size | |
- name: force-override-page-size |
Mentioned internally, but this less-wieldy form may make it a bit clearer users usually don't ever need to set this. No strong opinion though.
What was changed
Add optional pagesize parameter to workflow list command
Why?
Be able to specify page size is useful when default page is too large for cases where it leads to timeout due to large amount of data.
Checklist
Closes
How was this tested:
Updated unit test to cover it.