Skip to content

WI-1424: Portal draft upsert races and returns 500 on concurrent saves - #368

Merged
stefan-ernst merged 1 commit into
mainfrom
agent-runs/run-157
Oct 22, 2026
Merged

stefan-ernst merged 1 commit into
mainfrom
agent-runs/run-157

Conversation

@windshiftsite

@windshiftsite windshiftsite Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Updated PortalDraftRepository.Upsert to use ON CONFLICT DO NOTHING, re-read the unique row, and then apply the payload via UPDATE. Concurrent saves with differing content now resolve safely with last-update-wins semantics rather than surfacing a unique-constraint 500. Committed as 220df8c4 (fix: make portal draft upserts race-safe (WI-1424)). git diff --check passed; Go tooling was unavailable in the container, so tests could not be run.


Opened by the Windshift coding-agent harness.

Run id: 157
Base commit: 322c1dd
Branch: agent-runs/run-157

@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


windshift-agent seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@stefan-ernst
stefan-ernst marked this pull request as ready for review October 22, 2026 14:21
@stefan-ernst
stefan-ernst merged commit a3b3730 into main Oct 22, 2026
16 of 18 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.

1 participant