Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Batch changes: paginate when listing github apps#60383

Merged
camdencheek merged 5 commits into
mainfrom
cc/paginate-github-apps
Feb 12, 2024
Merged

Batch changes: paginate when listing github apps#60383
camdencheek merged 5 commits into
mainfrom
cc/paginate-github-apps

Conversation

@camdencheek

@camdencheek camdencheek commented Feb 9, 2024

Copy link
Copy Markdown
Member

Because we were not paginating, we would end up deleting all installations when there were more than 30 (default page size).

Test plan

Added a unit test and @BolajiOlajide manually tested the fix.

Walkthrough of Bolaji running a dead simple test

@cla-bot cla-bot Bot added the cla-signed label Feb 9, 2024
Comment thread internal/extsvc/github/v3.go Outdated
camdencheek and others added 2 commits February 9, 2024 16:39
Co-authored-by: Peter Guy <peter.guy@sourcegraph.com>
Comment thread internal/github_apps/store/store.go Outdated
@camdencheek camdencheek changed the title paginate when listing github apps Batch changes: paginate when listing github apps Feb 12, 2024
@camdencheek camdencheek marked this pull request as ready for review February 12, 2024 20:08
@camdencheek camdencheek requested a review from a team February 12, 2024 20:08
@camdencheek camdencheek merged commit 5d2f32d into main Feb 12, 2024
@camdencheek camdencheek deleted the cc/paginate-github-apps branch February 12, 2024 20:18
sourcegraph-release-bot pushed a commit that referenced this pull request Feb 12, 2024
Because we were not paginating, we would end up deleting all installations when there were more than 30 (default page size).

(cherry picked from commit 5d2f32d)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants