Skip to content

Feature unit FU-112 completion#3

Draft
markmhendrickson wants to merge 2 commits intodevfrom
cursor/feature-unit-fu-112-completion-1c7a
Draft

Feature unit FU-112 completion#3
markmhendrickson wants to merge 2 commits intodevfrom
cursor/feature-unit-fu-112-completion-1c7a

Conversation

@markmhendrickson
Copy link
Copy Markdown
Owner

Implement storage infrastructure with an upload retry queue and per-user usage tracking to improve ingestion resiliency and enable future quota enforcement.

The upload_file endpoint now handles transient Supabase Storage failures by enqueuing the upload for retry, returning a 202 status, rather than a 500. This ensures uploads eventually complete and provides a foundation for the async worker (FU-130) and strict quota enforcement (FU-136). Per-user storage and interpretation usage is also tracked via new database tables and functions.


Open in Cursor Open in Web

This commit introduces an upload queue for failed storage operations and implements per-user storage usage tracking. It includes database schema changes, API modifications for the `/upload_file` endpoint, and new service functions for managing uploads and usage.

Co-authored-by: markmhendrickson <[email protected]>
@cursor
Copy link
Copy Markdown

cursor bot commented Dec 18, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@markmhendrickson markmhendrickson force-pushed the dev branch 2 times, most recently from 255d871 to f6724f2 Compare January 7, 2026 08:45
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.

2 participants