feat(assets): delete orphan files from posts/assets/#43
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #34. Implements step 2 of the parent #32 plan: HITL-reviewed cleanup of
posts/assets/before migration to the new team-owned blob store.Summary
scripts/delete-orphan-assets.js— readsscripts/audit-orphans.json, dry-run by default,--confirmexecutes. Prints summary of deleted / missing / errors.clients/*-{color,dark}.pngvariants, 4 legacy firstname-only team photos (each already replaced by afirstname-lastname.{jpg,jpeg}version), 1.DS_Store.scripts/audit-assets.js(the JSDoc header was terminated early by a**/*glob inside the comment, breakingnode scripts/audit-assets.js)..DS_Storeis already in.gitignore— no change needed.Verification
node scripts/delete-orphan-assets.js— dry-run output matches the 25 expected entriesnode scripts/delete-orphan-assets.js --confirm— 25 deleted, 0 missing, 0 errorsnode scripts/audit-assets.js— total 128, used 128, 0 orphansTest plan
--confirmdeletes all 25 files cleanly.DS_Storealready covered by.gitignore