We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Assuming one has 360 artifacts and uses ListArtifacts to fetch them with a maximum page size of 100, so
ListArtifacts
params := artifact.ListArtifactsParams{ Page: page, PageSize: 100, ProjectName: "myproject", RepositoryName: "myimage" }
We should assume to fetch 4 pages, while the last page only includes 60 artifacts. In fact, the last page includes 100 artifacts instead.
We start with page 0 end end up page 3, fetching 4x100, instead of 3x100+1x60
The text was updated successfully, but these errors were encountered:
After fiddling around i happened to notice that a page should start at 1 for harbor (kind of unusual in the technical space), and that was the reason.
Far more interesting on top of that is, that page:0 also returns a result, not sure this is deterministic at all
Sorry, something went wrong.
No branches or pull requests
Assuming one has 360 artifacts and uses
ListArtifacts
to fetch them with a maximum page size of 100, soWe should assume to fetch 4 pages, while the last page only includes 60 artifacts. In fact, the last page includes 100 artifacts instead.
We start with page 0 end end up page 3, fetching 4x100, instead of 3x100+1x60
The text was updated successfully, but these errors were encountered: