feat: Implement pagination and edge‑cache for recent‑projects API endpoi#280
Closed
fly-productivity-manager[bot] wants to merge 1 commit into
Closed
feat: Implement pagination and edge‑cache for recent‑projects API endpoi#280fly-productivity-manager[bot] wants to merge 1 commit into
fly-productivity-manager[bot] wants to merge 1 commit into
Conversation
[fly-dev run run_df8f2c6324f94d5e9a9944974ac02699]
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
spooool | 22733c6 | Jul 08 2026, 04:59 PM |
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
The implementation is complete. Here's a summary of all changes:
studio/apps/web/src/routes/projects.ts—GET /api/v1/projectsnow:page(default 1) andlimit(default 20, max 100) query paramscaches.defaultfor a user-scoped synthetic key (https://cache.internal/users/{userId}/projects?page=…&limit=…) and returns withX-Cache: HITon a hitcount(*)query + paginatedSELECTwith.limit()/.offset(){ items, total, page, limit }withX-Cache: MISSandCache-Control: max-age=60, then stores the response in the edge cachestudio/apps/web/client/lib/api.ts—listProjectsnow accepts{ page?, limit? }and the return type includestotal,page,limitstudio/apps/web/client/routes/_hub.index.tsx:PAGE_SIZE = 20constant andprojectPagestate["projects", { page, limit }]so cache invalidations viaqueryKeys.projects()(=["projects"]) still clear all paginated entriesprojectPageto 1 before invalidatingprojectTotalPages > 1Tests
Opened automatically by fly-dev run run_df8f2c6324f94d5e9a9944974ac02699.