Repository navigation
fix(storage): require a thumbnail for every huddl cover - #769
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
duplicate_thumbnail_path expected a path, but duplicate passed the image record. Covers without a thumbnail then called Storage.copy(nil) and failed. Pass image.thumbnail_path so missing thumbnails are skipped. Related issue: huddlz-hq#765 Co-authored-by: Beehtrix <Beehtrix@users.noreply.github.com>
7a95bbb to
831c073
Compare
Keep uploaded and copied covers subject to the same two-file requirement. Reject an incomplete source before writing a copy.
…nails * upstream/main: fix(groups): release non-member spots when a group becomes private (huddlz-hq#775) fix(deps): patch Ash advisories and preserve huddl capacity totals (huddlz-hq#778) fix(deps): upgrade Ash to 3.39.0 for policy security fixes (huddlz-hq#776) fix(huddl): release non-member spots on members-only edits (huddlz-hq#771) fix(groups): coordinate departures with group and account closure (huddlz-hq#772) fix(api): align membership management with roster permissions (huddlz-hq#770)
|
Thanks @Beehtrix for fixing the thumbnail argument and covering both cases. I checked production and all 120 covers had both files. I kept your original commit and added a follow-up here so uploads and copies both require a thumbnail. That lets us catch incomplete covers at creation. |
Fixes #765
A copied huddl cover now succeeds only when both the full-size image and its thumbnail are copied. If the thumbnail is missing, the copy fails and any newly written files are cleaned up. New and pending cover records require a thumbnail path.
All 120 production huddl cover records had both files in storage when checked on December 4, so this migration needs no production backfill.