feat(cache): paginate and cache issue/PR list data #356
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper#356
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Add paginated caching for issue and pull request list views (per-repo and global). Fetch all pages on first load, cache them, then only fetch page 1 on subsequent loads and merge.
Why
Currently each view only fetches the first page of issues or PRs. Users with many open items see a short list and lots of blank space. Re-fetching all pages every time is wasteful when data rarely changes between views.
Cache strategy
{context}/issues?page=Nand{context}/pulls?page=NData to cache
Cache the full API response per page:
How
pagesNeeded = min(totalPages, maxPages)wheremaxPagescaps at 10 (500 items)fetched_atper contextStates per view
Future
If-Modified-Since) per page to avoid transferring unchanged pagesadding issue and pull request data to cacheto feat(cache): paginate and cache issue/PR list data