fix(import): IgnoreQueryFilters so revive sees soft-deleted scenes; clear AE crash state
Build backend images / build content-svc (push) Failing after 53s
Build backend images / build file-svc (push) Failing after 58s
Build backend images / build gateway (push) Failing after 1m1s
Build backend images / build identity-svc (push) Failing after 57s
Build backend images / build notification-svc (push) Failing after 59s
Build backend images / build render-svc (push) Failing after 49s
Build backend images / build studio-svc (push) Failing after 49s
Build backend images / build content-svc (push) Failing after 53s
Build backend images / build file-svc (push) Failing after 58s
Build backend images / build gateway (push) Failing after 1m1s
Build backend images / build identity-svc (push) Failing after 57s
Build backend images / build notification-svc (push) Failing after 59s
Build backend images / build render-svc (push) Failing after 49s
Build backend images / build studio-svc (push) Failing after 49s
- AepImportService: the global Scene HasQueryFilter(DeletedAt==null) was hiding soft-deleted rows, so the revive never matched and the importer re-inserted → scenes_project_id_key violation. Add .IgnoreQueryFilters() to the load. (apply now revives + returns 200, verified.) - node-agent: ClearAECrashState() deletes AE's SCRPriorState.json before each launch so the 'Crash Repair Options' dialog can't hang a headless scan/render. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,10 @@ public class AepImportService(ContentDbContext db)
|
||||
// Load ALL scenes incl. soft-deleted: the UNIQUE(project_id,key) constraint
|
||||
// covers deleted rows too, so a re-scan must REVIVE a soft-deleted match
|
||||
// rather than insert a duplicate (which would violate the constraint).
|
||||
// IgnoreQueryFilters() is REQUIRED — Scene has a global DeletedAt==null filter
|
||||
// that would otherwise hide the soft-deleted rows we need to revive.
|
||||
var existing = await db.Scenes
|
||||
.IgnoreQueryFilters()
|
||||
.Where(s => s.ProjectId == projectId)
|
||||
.Include(s => s.ContentElements)
|
||||
.Include(s => s.ColorElements)
|
||||
|
||||
Reference in New Issue
Block a user