Repository navigation
fix(search): page GitLab activity through busy days - #10580
Merged
Merged
Conversation
…als as the member's own action GitLab's events 'before' is a whole day, so each continuation re-listed the bound day's newer events and filled its page with them; a busy day stopped after one page. A call now reads past newer events without counting them, up to a request ceiling, returns at most limit events and resumes at the first it does not return. Entries at the bound an earlier page returned are passed over before their project lookup, using the seen keys the listing now hands providers. Approvals map to edited.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge, with no outstanding findings. SummaryFixes GitLab activity paging through busy days.
The previous unnumbered finding about untested later pages is addressed. No new actionable issues were found. Tests were not run. Reviews (2) · Last reviewed commit: "test(search): page GitLab activity acros..." · Reviewed by Greptile |
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
beforefilter is a whole day, so every continuation re-listed the bound day's newer events. Those filled its 15-row page, and the listing stopped withno_progress.driveActivitydoes).limitevents, then stops at the first event it does not return and reports that instant, so the next page resumes there.unreachable).NativeActivityInputgains an optionalseen: the bound's seen keys, which the listing now passes to providers. The key function moves unchanged fromactivity.tstoactivity-page.tsasactivityEntryKey. Without this, entries already returned at one instant could use up a call's project lookups, and the listing could not move past that instant.edited. An approval is the member's own action, so it is no longer reported asinvolved.No contract or generated-file changes.
Test plan
after/beforeand page/per_page:mergeActivityPage, return all 60 exactly once with no stop.