Skip to content

fix: keep pending Loom conversions pointed at the owner's original after a move - #3099

Merged
richiemcilroy merged 3 commits into
mainfrom
fix/loom-move-deferred
Oct 24, 2026
Merged

richiemcilroy merged 3 commits into
mainfrom
fix/loom-move-deferred

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

VP9 Loom imports keep their original WebM and record its storage key in metadata.loomDeferredProcessing.rawFileKey until the first view converts it. That key includes the owner's id. Moving such a video to another owner (the operator reassign/backfill tools) copied the file to the new owner's prefix but left the key pointing at the old one, so first-view conversion silently stopped matching.

  • lib/loom-import-reassign.ts: the owner switch rewrites rawFileKey from the old owner's prefix to the new one in the same conditional update. Videos whose conversion is already running (status: "started") are skipped instead of moved.
  • lib/loom-import-backfill.ts: a backfill item repairs a pending rawFileKey that still points at another owner's prefix for the same video, so videos moved before this fix can be corrected by running them again.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Keeps deferred Loom conversions pointed at the copied original when a video changes owners.

  • Loom owner moves keep pending WebM keys pointed at the new owner.
  • Loom backfill repairs pending WebM keys left under an old owner.

All four previous threads were checked against the current code. Their fixes are present; none supplied a comment number.

Reviews (4) · Last reviewed commit: "fix: roll back a Loom move when its orig..." · Reviewed by Greptile

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 24, 2026 12:52 Inactive
@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Oct 24, 2026 1:01pm UTC

@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

Comment thread apps/web/lib/loom-import-reassign.ts
Comment thread apps/web/lib/loom-import-backfill.ts
Comment thread apps/web/__tests__/unit/loom-operator-tools.test.ts Outdated
@vercel
vercel Bot temporarily deployed to Preview – cap-status October 24, 2026 12:57 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

Comment thread apps/web/lib/loom-import-reassign.ts
@vercel
vercel Bot temporarily deployed to Preview – cap-status October 24, 2026 13:01 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

@greptileai review

@richiemcilroy
richiemcilroy marked this pull request as ready for review October 24, 2026 13:05
@richiemcilroy
richiemcilroy merged commit ad3dab0 into main Oct 24, 2026
39 checks passed

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Capy found no issues.

Open in Capy

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cap-web — e7d56001 Deployed Oct 24, 2026 by vercel[bot]
Preview – cap-status — e7d56001 Deployed Oct 24, 2026 by vercel[bot]
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.

1 participant