feat(api): persist notes, bookmarks, approvals, analytics to PostgreSQL#809
Open
zeemscript wants to merge 1 commit into
Open
feat(api): persist notes, bookmarks, approvals, analytics to PostgreSQL#809zeemscript wants to merge 1 commit into
zeemscript wants to merge 1 commit into
Conversation
Replaces in-memory Map storage with PostgreSQL database persistence for the notes, bookmarks, approvals, and video-analytics API routes. Changes: - Add SQL migrations for notes, bookmarks, content_approvals, video_events tables - Create repository layer with parameterized SQL queries - Update route handlers to use repositories instead of Maps - Remove edge runtime (using Node.js runtime for pg driver compatibility) - Add integration tests with mocked database queries Closes rinafcode#749
|
@zeemscript Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Great job so far There’s are just two blockers — the workflow is failing and a mwerge conflict. Could you take a look and fix it so all checks pass? Happy to review again once that’s done. |
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
notes,bookmarks,content_approvals,video_eventsChanges
src/lib/db/migrations/defining table schemas with indexessrc/lib/db/repositories/with CRUD operationsTest plan
npx vitest run src/app/api/notes/__tests__ src/app/api/bookmarks/__tests__ src/app/api/approvals/__tests__ src/app/api/video-analytics/__tests__Closes #749