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

fix: set the default page to be 1 so that pagination works properly #228

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

shreddedbacon
Copy link
Member

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for changelog and subsystem label(s) applied

The harbor client library used doesn't set a default page number to start with so assumes 0. This results in the library not properly iterating over the pages and not returning all the robot accounts. This corrects the bug by setting the default page number to be 1

@shreddedbacon shreddedbacon marked this pull request as ready for review September 10, 2023 21:57
@shreddedbacon shreddedbacon merged commit 843e0c6 into main Sep 10, 2023
9 checks passed
@shreddedbacon shreddedbacon deleted the fix-harbor-page-bug branch September 10, 2023 21:57
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.

1 participant