Repository navigation
Source maps v1 (phase 2): SourceMapArtifact storage + retention - #120
Merged
Merged
Conversation
Introduce schema and migration for per-release map JSON, lookup helpers, and nightly retention aligned with plan retentionDays. Co-authored-by: Cursor <[email protected]>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6591c59. Configure here.
Delete SourceMapArtifact only when uploaded_at is past the plan cutoff and no ErrorGroup for the same app/release still has last_seen in window. Co-authored-by: Cursor <[email protected]>
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
Phase 2 of #98 — storage foundation for source map upload and symbolication.
SourceMapArtifactPrisma model keyed by(project_id, app, release, bundle_url)content(TEXT), optionalstorage_keyfor future object store,sha256,size_bytessource-map-artifact.ts— lookup helpers +MAX_SOURCE_MAP_BYTESfor phase 3 upload limitsuploaded_atexceeds planretentionDaysTest plan
pnpm exec vitest run src/lib/source-map-artifact.test.ts src/jobs/retention.test.tsprisma validatebuildpnpm --filter api exec prisma migrate deployNext
Phase 3 —
POST /api/project/source-mapsupload APIMade with Cursor