Skip to content

fix(search): page GitLab activity through busy days - #10580

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/gitlab-activity-paging
Dec 1, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/gitlab-activity-paging

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Busy days stopped after one page. GitLab's events before filter 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 with no_progress.
    • A call now reads 100-row pages and passes over newer events without counting them, up to 8 requests (as driveActivity does).
    • It returns at most limit events, then stops at the first event it does not return and reports that instant, so the next page resumes there.
    • A call that reads only newer events still reports where it stopped past the bound (unreachable).
  • Events already returned at the bound are skipped before their project lookup. NativeActivityInput gains an optional seen: the bound's seen keys, which the listing now passes to providers. The key function moves unchanged from activity.ts to activity-page.ts as activityEntryKey. 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.
  • Approvals map to edited. An approval is the member's own action, so it is no longer reported as involved.

No contract or generated-file changes.

Test plan

  • Unit tests against a fake events API that applies day-granular after/before and page/per_page:
    • 60 events on one day, paged to the end through mergeActivityPage, return all 60 exactly once with no stop.
    • Six events at one instant in six projects page through with the lookup cap.
    • When every page within the request ceiling is newer than the bound, the call reports where it stopped.
  • Each test fails on the pre-fix code or with its guard reverted (the busy-day test returned 15 of 60).

…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.
@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 1, 2026 5:59pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge, with no outstanding findings.

Summary

Fixes GitLab activity paging through busy days.

  • GitLab activity can page through busy days without repeating events.
  • GitLab approvals appear as edits by the member.

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

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 836d31a into staging Dec 1, 2026
137 of 155 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/gitlab-activity-paging branch December 1, 2026 19:00

This branch was previously deployed

1 inactive deployment
Preview — 5a6a937f Deployed Dec 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant