Repository navigation
[AGE-2882] Add artifact DB stores - #1442
Open
rutvij-menavlikar wants to merge 21 commits into
Open
rutvij-menavlikar wants to merge 21 commits into
rutvij-menavlikar wants to merge 21 commits into
Conversation
rutvij-menavlikar
requested review from
chiragjn,
debajyoti-truefoundry,
heerambavi1998 and
thesujai
as code owners
November 19, 2026 15:57
4 tasks done
rutvij-menavlikar
force-pushed
the
rutvij/age-2882_2
branch
from
November 19, 2026 16:36
fbfe74f to
c5a3c83
Compare
| updated_at: string; | ||
| } | ||
|
|
||
| export interface ArtifactFileRecord { |
Contributor
There was a problem hiding this comment.
Parent Interface - FileStore ( S3 vs local ) + DbStore ( postgres, sqlite)
list files for a version etc,
rutvij-menavlikar
force-pushed
the
rutvij/age-2882_2
branch
4 times, most recently
from
November 20, 2026 12:05
6186486 to
8de239e
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
rutvij-menavlikar
force-pushed
the
rutvij/age-2882_2
branch
from
November 20, 2026 12:09
8de239e to
89f34d6
Compare
…sion from latest_version Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…act, MAX_TITLE_LENGTH Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…raint Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
PR overviewNo security issues were found in this pull request. Reviews
|
This branch has not been deployed
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
Stacked on #1435. Adds
IArtifactStorewith Postgres and SQLite implementations. Not wired intomain.tsyet; the list/get APIs PR does that.Linear: AGE-2882
Changes
src/db/artifactStore.ts: records, inputs,ArtifactSlugConflictError,IArtifactStore.createArtifact/getArtifact(by tenant + slug).listArtifacts: creator-scoped, most recently updated first, offset page tokens; served byartifact_list_idxfrom [AGE-2882] Add artifact metadata tables #1435.createVersion: allocates the next version aspending. Storage keys include the version number, so file rows are written at commit.commitVersion: records uploaded files, flipspending→committed, advanceslatest_versionmonotonically, in one transaction.failVersion: flipspending→failed.getVersion: version + files; checks the artifact is in the tenant first..changeset/artifact-store-tables.mdis shared with [AGE-2882] Add artifact metadata tables #1435.How was this tested?
tests/db/artifactStoreContractSuite.ts), 5 tests: SQLite and Postgres (local container) pass.tsc --noEmit(src + tests/db), eslint, prettier on changed files.Checklist
Made with Cursor
Note
Medium Risk
New persistence layer with tenant scoping and version concurrency, but not yet wired to APIs or main—schema/migration alignment with the stacked tables PR matters.
Reviewed by Cursor Bugbot for commit 8ef1a83. Bugbot is set up for automated code reviews on this repo. Configure here.