Skip to content

Commit 8de239e

Browse files
[AGE-2882] Drop artifact_version.entrypoint
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent d076e7f commit 8de239e

6 files changed

Lines changed: 0 additions & 10 deletions

File tree

‎packages/trueforge/src/db/artifactStore.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export interface ArtifactRecord {
1818
export interface ArtifactVersionRecord {
1919
artifact_id: string;
2020
version: number;
21-
entrypoint: string;
2221
/** Object-store prefix holding the version's files. */
2322
storage_prefix: string;
2423
total_bytes: number;
@@ -49,7 +48,6 @@ export interface ListArtifactsInput {
4948
export interface CreateArtifactVersionInput {
5049
tenant_id: string;
5150
artifact_id: string;
52-
entrypoint: string;
5351
storage_prefix: string;
5452
total_bytes: number;
5553
}

‎packages/trueforge/src/db/postgres/artifact-store/PostgresArtifactStore.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function toVersionRecord(row: Selectable<ArtifactVersionTable>): ArtifactVersion
3838
return {
3939
artifact_id: row.artifact_id,
4040
version: row.version,
41-
entrypoint: row.entrypoint,
4241
storage_prefix: row.storage_prefix,
4342
total_bytes: row.total_bytes,
4443
created_at: row.created_at.toISOString(),
@@ -130,7 +129,6 @@ export class PostgresArtifactStore implements IArtifactStore<Transaction<Databas
130129
.values({
131130
artifact_id: artifact.id,
132131
version,
133-
entrypoint: input.entrypoint,
134132
storage_prefix: input.storage_prefix,
135133
total_bytes: input.total_bytes,
136134
created_at: now(),

‎packages/trueforge/src/db/postgres/types.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,6 @@ export interface ArtifactTable {
662662
export interface ArtifactVersionTable {
663663
artifact_id: string;
664664
version: number;
665-
entrypoint: string;
666665
storage_prefix: string;
667666
total_bytes: number;
668667
created_at: Date;

‎packages/trueforge/src/db/sqlite/artifact-store/SqliteArtifactStore.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ export class SqliteArtifactStore implements IArtifactStore<Transaction<Database>
142142
.values({
143143
artifact_id: artifact.id,
144144
version,
145-
entrypoint: input.entrypoint,
146145
storage_prefix: input.storage_prefix,
147146
total_bytes: input.total_bytes,
148147
created_at: timestamp,

‎packages/trueforge/src/db/sqlite/types.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,6 @@ export interface ArtifactTable {
487487
export interface ArtifactVersionTable {
488488
artifact_id: string;
489489
version: number;
490-
entrypoint: string;
491490
storage_prefix: string;
492491
total_bytes: number;
493492
created_at: string;

‎packages/trueforge/tests/db/artifactStoreContractSuite.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export function runArtifactStoreContractSuite(getStore: () => IArtifactStore): v
2020
const version = await getStore().createVersion({
2121
tenant_id: TENANT,
2222
artifact_id: artifactId,
23-
entrypoint: 'index.html',
2423
storage_prefix: `artifacts/${TENANT}/${artifactId}/${uploadId}/`,
2524
total_bytes: 100,
2625
});
@@ -81,7 +80,6 @@ export function runArtifactStoreContractSuite(getStore: () => IArtifactStore): v
8180
expect(await store.getVersion({ tenant_id: TENANT, artifact_id: artifact.id, version: 1 })).toEqual(v1);
8281
expect(v1).toEqual(
8382
expect.objectContaining({
84-
entrypoint: 'index.html',
8583
storage_prefix: `artifacts/${TENANT}/${artifact.id}/u1/`,
8684
total_bytes: 100,
8785
}),
@@ -97,7 +95,6 @@ export function runArtifactStoreContractSuite(getStore: () => IArtifactStore): v
9795
await store.createVersion({
9896
tenant_id: OTHER_TENANT,
9997
artifact_id: artifact.id,
100-
entrypoint: 'index.html',
10198
storage_prefix: 'p/',
10299
total_bytes: 1,
103100
}),

0 commit comments

Comments
 (0)