-
Notifications
You must be signed in to change notification settings - Fork 534
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
[Bug][GitLab] GitLab Pagination not working again #8187
Comments
Hello, @kkc-tonywu! I'm here to help you with any bugs, questions, or contributions. Let me know how I can assist you while you wait for a human maintainer. I found a similar closed issue that might be relevant to your situation: [Bug][Gitlab Plugin] Missing In the current implementation of the GitLab plugin in DevLake, pagination is handled by checking the Unfortunately, I couldn't find specific logic in the codebase to handle cases where GitLab's API returns more than 10,000 records or when both headers are missing. You might need to consider implementing a workaround or custom logic to handle such scenarios. |
Hi, Please upgrade to https://github.com/apache/incubator-devlake/releases/tag/v1.0.2-beta5 and see if the problem is fixed. Thanks. |
It has been tested, and the issue of only collecting 100 records has been fixed. However, based on the content of the PR, it still seems to be limited to 100 pages of data:
For example: I have set up to collect data for one year on DevLake, and the total number of records will exceed 10,000. It seems that only 10,000 records will be collected? Is this scenario correct? My assumption is that regardless of the time range setting, I must be able to collect all the data. I'm not sure if I understand this correctly. Please let me know if there is any issue. |
No, it won't. |
I have similar problem(gitlab connection only fetches 100 repos in group where there are 175), and scrolling only duplicates what were seleced above. tested latest image available atm: devlake.docker.scarf.sh/apache/devlake:v1.0.2-beta5 |
Search before asking
What happened
The number of GitLab Repo MRs、tag、issue、deployment... in our system exceeds 10,000.
According to the official GitLab documentation:
As a result, the
x-total-page
header is not returned, which causes Develake to only fetch 100 records for the subtask.What do you expect to happen
No matter the settings, it is necessary to retrieve the complete data.
How to reproduce
When MR, tag, issue, and Deployment are executed tens of thousands of times, attempting to retrieve the data afterwards will only return 100 records.
Anything else
No response
Version
1.0.1
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: