feat(mobile): bring GitLab and Bitbucket pull request review to GitHub parity (stack 16/30) - #6013
Conversation
| return { items, nextCursor: page.nextCursor }; | ||
| items.sort((left, right) => inboxUpdatedMs(right) - inboxUpdatedMs(left)); | ||
| const trimmed = items.slice(0, BITBUCKET_PAGE_SIZE); | ||
| if (items.length > trimmed.length) hasMore = true; |
There was a problem hiding this comment.
WARNING: Inbox pagination drops PRs when the merged page exceeds 50
listInbox requests the same Bitbucket page from every repository, merges and sorts the results, then slices to 50 and advances page+1. Leftovers from that merged window are never fetched: two repos with 30 open PRs each return 50 items on page 1 and an empty page 2, silently dropping 10 PRs. hasMore from items.length > trimmed.length paginates the per-repo Bitbucket axis, not the trimmed merged list.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Executive SummaryBitbucket inbox pagination slices a merged repo fan-out to 50 then advances the per-repo Bitbucket page, so leftover PRs are silently dropped. Overview
Issue Details (click to expand)WARNING
Files Reviewed (22 files)
Fix these issues in Kilo Cloud Reviewed by grok-4.6 · Input: 313.1K · Output: 19.9K · Cached: 424.1K Review guidance: REVIEW.md from base branch |
Level 16 of the
bring-mobile-gitlab-and-bitb-3792stack.PR stack (merge bottom to top)
kwf/bring-mobile-gitlab-and-bitb-3792-l1)kwf/bring-mobile-gitlab-and-bitb-3792-l2kwf/bring-mobile-gitlab-and-bitb-3792-l3kwf/bring-mobile-gitlab-and-bitb-3792-l4kwf/bring-mobile-gitlab-and-bitb-3792-l5)kwf/bring-mobile-gitlab-and-bitb-3792-l6)kwf/bring-mobile-gitlab-and-bitb-3792-l7kwf/bring-mobile-gitlab-and-bitb-3792-l8kwf/bring-mobile-gitlab-and-bitb-3792-l9kwf/bring-mobile-gitlab-and-bitb-3792-l10)kwf/bring-mobile-gitlab-and-bitb-3792-l11)kwf/bring-mobile-gitlab-and-bitb-3792-l12kwf/bring-mobile-gitlab-and-bitb-3792-l13)kwf/bring-mobile-gitlab-and-bitb-3792-l14kwf/bring-mobile-gitlab-and-bitb-3792-l15)kwf/bring-mobile-gitlab-and-bitb-3792-l16) ← this PRkwf/bring-mobile-gitlab-and-bitb-3792-l17kwf/bring-mobile-gitlab-and-bitb-3792-l18kwf/bring-mobile-gitlab-and-bitb-3792-l19)kwf/bring-mobile-gitlab-and-bitb-3792-l20kwf/bring-mobile-gitlab-and-bitb-3792-l21kwf/bring-mobile-gitlab-and-bitb-3792-l23)kwf/bring-mobile-gitlab-and-bitb-3792-l24)kwf/bring-mobile-gitlab-and-bitb-3792-l25)kwf/bring-mobile-gitlab-and-bitb-3792-l26)kwf/bring-mobile-gitlab-and-bitb-3792-l27)kwf/bring-mobile-gitlab-and-bitb-3792-l28)kwf/bring-mobile-gitlab-and-bitb-3792-l29kwf/bring-mobile-gitlab-and-bitb-3792-l30)