You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Remove confirmUpload mutation entirely (file existence = confirmed)
- Remove upload_requests table references from all SQL queries and cache
- Remove files.status field — no status gate on downloadUrl
- Remove ConfirmUploadInput/ConfirmUploadPayload types
- Remove uploadRequestsQualifiedName/uploadRequestsTableName from config
- Simplify dedup to just SELECT by key+bucket_id (no status filter)
- Simplify file INSERT (no status column)
- Remove status_field/status_ready_value/status_pending_value from
DataImageEmbedding node type (now INSERT-triggered, mime_type only)
- Remove upload_requests from BlueprintEntityStorageProvisions type
- Regenerate blueprint-types.generated.ts
@@ -175,22 +171,6 @@ export function createPresignedUrlPlugin(
175
171
deduplicated: Boolean!
176
172
"""Presigned URL expiry time (null if deduplicated)"""
177
173
expiresAt: Datetime
178
-
"""File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable."""
179
-
status: String!
180
-
}
181
-
182
-
input ConfirmUploadInput {
183
-
"""The file ID returned by requestUploadUrl"""
184
-
fileId: UUID!
185
-
}
186
-
187
-
type ConfirmUploadPayload {
188
-
"""The confirmed file ID"""
189
-
fileId: UUID!
190
-
"""New file status"""
191
-
status: String!
192
-
"""Whether confirmation succeeded"""
193
-
success: Boolean!
194
174
}
195
175
196
176
extend type Mutation {
@@ -203,15 +183,6 @@ export function createPresignedUrlPlugin(
203
183
requestUploadUrl(
204
184
input: RequestUploadUrlInput!
205
185
): RequestUploadUrlPayload
206
-
207
-
"""
208
-
Confirm that a file has been uploaded to S3.
209
-
Verifies the object exists in S3, checks content-type,
210
-
and transitions the file status from 'pending' to 'ready'.
211
-
"""
212
-
confirmUpload(
213
-
input: ConfirmUploadInput!
214
-
): ConfirmUploadPayload
215
186
}
216
187
`,
217
188
plans: {
@@ -304,11 +275,10 @@ export function createPresignedUrlPlugin(
304
275
305
276
// --- Dedup check: look for existing file with same key (content hash) in this bucket ---
306
277
constdedupResult=awaittxClient.query({
307
-
text: `SELECT id, status
278
+
text: `SELECT id
308
279
FROM ${storageConfig.filesQualifiedName}
309
280
WHERE key = $1
310
281
AND bucket_id = $2
311
-
AND status IN ('ready', 'processed')
312
282
LIMIT 1`,
313
283
values: [s3Key,bucket.id],
314
284
});
@@ -317,36 +287,27 @@ export function createPresignedUrlPlugin(
317
287
constexistingFile=dedupResult.rows[0];
318
288
log.info(`Dedup hit: file ${existingFile.id} for hash ${contentHash}`);
319
289
320
-
// Track the dedup request
321
-
awaittxClient.query({
322
-
text: `INSERT INTO ${storageConfig.uploadRequestsQualifiedName}
0 commit comments