Skip to content

Fix/page size zero fetch all#946

Open
rambhardwajj wants to merge 2 commits into
goharbor:mainfrom
rambhardwajj:fix/page-size-zero-fetch-all
Open

Fix/page size zero fetch all#946
rambhardwajj wants to merge 2 commits into
goharbor:mainfrom
rambhardwajj:fix/page-size-zero-fetch-all

Conversation

@rambhardwajj
Copy link
Copy Markdown

Description

Fixes inconsistent --page-size 0 behavior for list commands. Some commands documented 0 as “fetch all” but only made a single API request, which could return incomplete results when multiple pages existed.

Type of Change

Please select the relevant type.

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • Chore / maintenance

Changes

  • Updated replication policies list to fetch all pages when --page-size 0 is used
  • Updated replication executions list to fetch all pages when --page-size 0 is used
  • Updated quota list to use the existing fetch-all quota pagination helper
  • Added tests for fetch-all pagination behavior in replication and quota API helpers

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.

[bug]: --page-size 0 does not fetch all results for some list commands

1 participant