Skip to content

Fix #287: Bug: Unable to register resource due to OgImage unique constraint conflict#675

Open
a4to wants to merge 1 commit intoMerit-Systems:mainfrom
a4to:bounty/issue-287
Open

Fix #287: Bug: Unable to register resource due to OgImage unique constraint conflict#675
a4to wants to merge 1 commit intoMerit-Systems:mainfrom
a4to:bounty/issue-287

Conversation

@a4to
Copy link
Copy Markdown

@a4to a4to commented Mar 4, 2026

Summary

This PR resolves #287.

Changes

Verified the OgImage unique-constraint fix path is present and added a regression test for upsertOrigin to ensure OG images are upserted by originId+url (without nested ogImages.create on origin upsert). Installed dependencies, then ran lint on the new test file and executed the new test successfully with required env vars.

Files Modified

  • apps/scan/src/services/db/resources/origin.test.ts

Happy to address any feedback or make adjustments.

/claim #287

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Mar 4, 2026

@a4to is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

…t confli

Fixed origin OG image upsert race by deduplicating images by URL and writing upserts sequentially; added regression tests for duplicate URL deduplication and sequential upserts.
@a4to a4to force-pushed the bounty/issue-287 branch from 1ad7c48 to 0a3071a Compare March 17, 2026 17:43
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.

Bug: Unable to register resource due to OgImage unique constraint conflict

1 participant