External media view and cleanup #22
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #1
Blocked by: #11
Question
What does the project-wide external-media view show, and how does cleanup work? Which imported things count as external media: Source sheets, imported Performance audio, imported Voice references, imported Keyframes or Boards? For each item, how are its references shown (which Reference versions, Performances and so on point at it)? What are the cleanup rules for unreferenced items: manual only or suggested, whether they can be undone, and how a Lock snapshot or Take that still depends on an item blocks deleting it? From "Import and crop a sheet into Tiles" (#5): a Source sheet is kept while any Reference version points at it, and unreferenced sheets are cleaned up from this view.
From "Dailies review and circling" (#7): an NG Take's Rendition files can be deleted to free space while the Take record and provenance stay; failed Takes can be deleted outright (number not reused). Cover the deletion and undo rules for Renditions here.
From "Edit package layout" (#19): final masters are hard-linked into the Edit package when the package is on the same volume as the media folder. Deleting such a Rendition from the Project removes only one link, so the space stays used while the package exists. The view should show this (for example by link count), and cleanup should not count those bytes as reclaimable. The package's
_Removed/<date>/folders are outside the Project's media, but they may also hold links to masters.Resolution
The view is Storage, one project-wide view of everything that takes space. "External" was the wrong word: most imports are blobs inside the
.studiofile. New glossary terms: Storage and Purge.Delete vs. Purge
Guards for Purge
Poster frames
When a Rendition is collected, the core extracts a small poster frame as an in-file blob owned by the Rendition row, one for the draft and one for the final. Dailies tiles use it. Purge leaves it in place.
Edit package and hard links
_Removed/<date>/._Removed/folders with their size and offers Empty _Removed, with a warning that Resolve projects may lose links to the files. This is the only place anything in the package is deleted, and an export never deletes. The glossary entry for Edit package is updated to say this.What Storage can delete
Undo
Suggestions
A strip of bulk filters. Each one shows its reclaimable bytes and only selects matching rows, so nothing runs automatically:
_Removed/"Uncircled coverage" is deliberately left out, because uncircled does not mean unwanted.
Compact
Manual only: a
VACUUMwith the queue paused, run behind a progress dialog. Noauto_vacuum. The header shows free space inside the file.Missing files
A media-folder file that disappears outside the app shows as missing, and the row is treated like a purged one.
Layout
_Removed/).What the schema has to hold (for the build issues)
rendition:purged_at, the recorded size and hash, andposter_blob.rendition: a missing state, or a missing flag computed when Storage opens.