-
Notifications
You must be signed in to change notification settings - Fork 42
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
discussions tree does not contain all discussions #182
Comments
Do you actually have an MR with over 100 separate discussions? That seems kind of absurd 😆 If you do, I'd guess that you're including conversations from CI... I'd suggest using the |
Hi @harrisoncramer I should have described it more clearly right away. In that particular case, there were just 55 discussion threads but also a large number of commits - a colleague just likes to commit and push every single change. And all those commit notes are only filtered out in the if block that starts at line 92 in These cases are probably rare, but still possible and I would be grateful if |
I've encountered this bug again with a MR that has just 26 discussion threads, but there are a large number of commits, some changes in the MR title, status (marked as ready, etc.). |
I'd recommend waiting until the Go Gitlab library natively supports pagination helpers, they are working on that right now: xanzy/go-gitlab#1875 |
The merge request for the go library has been moved here: https://gitlab.com/gitlab-org/api/client-go/-/merge_requests/1875. It's questionable how long it will take to get merged. It's been open for more than a year. In the meantime, Edit: I've made a dirty hotfix in this branch. |
Feel free to open up a PR that fixes this with pagination, agreed that waiting for upstream is silly given how slow-moving that project is. |
There's now a new MR that seems to address pagination in In any case, I'm only just in the middle of a Go course and I don't think I'd be able to fix the pagination properly (for all the other cases like reviewers, MR selection, etc.) just yet. In the meantime, I can live with using my hotfix in MRs with too many items. Maybe when pagination is ready in |
Prerequsities
Bug Description
gitlab.nvim
only makes one request for 1 page with 250 items/discussions, but Gitlab has a limit of 100 items per page.I've implemented a naive fix in #183, but there will be a better way of getting the correct number of pages to retrieve.
The text was updated successfully, but these errors were encountered: