-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
API paginater problem #9165
Comments
Actually I don’t think it closes. I’ve analyzed branch master and I’m not sure my PR fixed that issue. I think it is other bug, but I’m not sure |
o title was litle bit misleading .. you are right |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
ping |
current status of this? |
@debMan does this happen on current v1.11.3 too? |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Summary: Lister implementation for Gitea, works for (T2313). For now because of go-gitea/gitea#9165 it would require setting its param limit to 50. Reviewers: #reviewers, ardumont Reviewed By: #reviewers, ardumont Subscribers: ardumont Differential Revision: https://forge.softwareheritage.org/D3107
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
Description
Hello everyone. Glad to be here.
I did not have experience in go lang. I had a workaround on the codes but could not fix this,
Summary
During the import of Gitea repositories into GitLab, some issues may be skipped over due to query string parameters changing during API pagination requests. Specialty in the last pages.
Steps to reproduce
You can reface this when importing repos to the GitLab. On some repositories with many numbers of issues and PRs, the pagination API responses
next
andprev
page numbers incorrectLogs
Here i'\ insert the logs which local Gitea server shows when importing repositories from Gitea to the GitLab:
The problem is that more pages still available but Gitea responses the last page is page 7. To show more details, let me request a currect scenario on page 6 something like:
request
response header
But the last page is not page 7, let me request an incorrect scenario on page 7 and 8 something like:
request page 7
response header page 7
request page 8
response header page 8
but we can see still page 8 is valid and has data, the response body of page 8:
PS:
per_page
,direction
, etc. are not handled by Gittea, but this does not result in a problem. The requests made by GitLab.next
,prev
,first
andlast
pages.The text was updated successfully, but these errors were encountered: