Skip to content

[AGE-2886] Add listArtifacts to artifact stores - #1440

Merged
rutvij-menavlikar merged 2 commits into
rutvij/age-2882_2from
rutvij/age-2886_1
Nov 19, 2026
Merged

rutvij-menavlikar merged 2 commits into
rutvij/age-2882_2from
rutvij/age-2886_1

Conversation

@rutvij-menavlikar

@rutvij-menavlikar rutvij-menavlikar commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stacked on #1439. Adds a paginated listArtifacts scoped to tenant + creator (most recently updated first) to IArtifactStore with Postgres and SQLite implementations, for the list API in the next PR.

Linear: AGE-2886

Changes

  • src/db/artifactStore.ts: ListArtifactsInput and listArtifacts.
  • Postgres/SQLite stores: offset-token pagination, same pattern as listSchedules.
  • Migrations (unmerged, from [AGE-2882] Add artifact DB stores #1439): artifact_list_idx is now (tenant_id, created_by_subject.subject_id, updated_at DESC, id) to serve the creator-scoped list.
  • Contract suite: list test (pagination, tenant and creator scoping).
  • Changeset .changeset/artifact-apis.md (shared with the next PR).

How was this tested?

  • pnpm test:store:local for 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.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@rutvij-menavlikar
rutvij-menavlikar merged commit 9853c78 into rutvij/age-2882_2 Nov 19, 2026
8 of 10 checks passed
@rutvij-menavlikar
rutvij-menavlikar deleted the rutvij/age-2886_1 branch November 19, 2026 15:51
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.

1 participant