Skip to content

fix(projects): raise page size to 250 and add page controls - #147

Open
sentry-junior[bot] wants to merge 4 commits into
masterfrom
fix/uncap-project-list
Open

fix(projects): raise page size to 250 and add page controls#147
sentry-junior[bot] wants to merge 4 commits into
masterfrom
fix/uncap-project-list

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The projects page stopped at the first API page (limit max 50), so years with more than 50 projects hid the rest.

This change raises the API max and client page size to 250 so a typical Hackweek year fits in one request. If a result set still has more pages, the UI shows previous/next controls from nextCursor.

Test plan

  • npm run test:app
  • Open the current year projects page after deploy and confirm the full set loads in one request
  • Confirm pagination controls stay hidden under 250 results and work above that

Requested by telkins.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 3 commits August 17, 2026 18:38
The projects page only requested the first API page, so years with more
than 50 projects hid the rest. Walk nextCursor until the full filtered
list is loaded.

Co-Authored-By: Trevor Elkins <trevor.elkins@sentry.io>
Allow the projects API to return up to 250 items per request so current
Hackweek years fit in one fetch. Keep next/previous controls for any
result set that still returns a next cursor.

Co-Authored-By: Trevor Elkins <trevor.elkins@sentry.io>
@sentry-junior sentry-junior Bot changed the title fix(projects): load every project page in the year list fix(projects): raise page size to 250 and add page controls Aug 17, 2026
@trevor-e
trevor-e marked this pull request as ready for review August 17, 2026 18:50

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 561a443. Configure here.

Comment thread src/worker/routes/projects.ts
D1 allows at most 100 bound parameters per query. listProjects loads
members with IN (...), so page sizes above 100 failed. Chunk those
lookups and cover the path with a 101-project list test.

Co-Authored-By: Trevor Elkins <trevor.elkins@sentry.io>
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.

0 participants