8000 fix(storage): require a thumbnail for every huddl cover by Beehtrix · Pull Request #769 · huddlz-hq/huddlz · GitHub
[go: up one dir, main page]

Skip to content

fix(storage): require a thumbnail for every huddl cover - #769

Merged
mwoods79 merged 5 commits into
huddlz-hq:mainfrom
Beehtrix:cursor/thumbnail-path-765-1798
Dec 5, 2026
Merged

mwoods79 merged 5 commits into
huddlz-hq:mainfrom
Beehtrix:cursor/thumbnail-path-765-1798

Conversation

@Beehtrix
@Beehtrix Beehtrix commented Dec 2, 2026 •
Copy link
Copy Markdown
Contributor

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.

Copilot AI lite review requested due to automatic review settings December 2, 2026 03:43
@chatgpt-codex-connector
Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-02T03:43:33.371617Z
We couldn’t complete this review. Comment @codex review to try again.
7a95bbb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will 8000 be displayed to describe this comment to others. Learn more.

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>
@Beehtrix
Beehtrix force-pushed the cursor/thumbnail-path-765-1798 branch from 7a95bbb to 831c073 Compare December 2, 2026 03:44
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)
@mwoods79 mwoods79 changed the title fix(storage): pass thumbnail path when duplicating covers fix(storage): require a thumbnail for every huddl cover Dec 5, 2026
@mwoods79
mwoods79 commented Dec 5, 2026
Copy link
Copy Markdown
Contributor

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.

@mwoods79
mwoods79 merged commit 59656b8 into huddlz-hq:main Dec 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copying a huddl cover passes the image record where its thumbnail path is expected

3 participants

0