Repository navigation
[AGE-2886] Add listArtifacts to artifact stores - #1440
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
rutvij-menavlikar
requested review from
chiragjn,
debajyoti-truefoundry,
heerambavi1998 and
thesujai
as code owners
November 19, 2026 15:21
4 tasks done
Co-authored-by: Cursor <cursoragent@cursor.com>
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 #1439. Adds a paginated
listArtifactsscoped to tenant + creator (most recently updated first) toIArtifactStorewith Postgres and SQLite implementations, for the list API in the next PR.Linear: AGE-2886
Changes
src/db/artifactStore.ts:ListArtifactsInputandlistArtifacts.listSchedules.artifact_list_idxis now(tenant_id, created_by_subject.subject_id, updated_at DESC, id)to serve the creator-scoped list..changeset/artifact-apis.md(shared with the next PR).How was this tested?
pnpm test:store:localfor artifact stores: Postgres and SQLite, 5/5 each.tsc --noEmit(src + tests/db), eslint, prettier on changed files.Checklist
Made with Cursor
Note
Low Risk
Store-layer read path with established pagination patterns; index definition changes apply only via the stacked migration.
Reviewed by Cursor Bugbot for commit 56152b0. Bugbot is set up for automated code reviews on this repo. Configure here.