Skip to content

Update timestamp on duplicate format preview event keys - #1601

Open
cpeel wants to merge 1 commit into
DistributedProofreaders:masterfrom
cpeel:fix-format-preview-dup-keys
Open

Update timestamp on duplicate format preview event keys#1601
cpeel wants to merge 1 commit into
DistributedProofreaders:masterfrom
cpeel:fix-format-preview-dup-keys

Conversation

@cpeel

@cpeel cpeel commented Aug 18, 2026

Copy link
Copy Markdown
Member

If, for whatever reason, the destination project already has format preview events for the source page/round/user, just update the timestamp from the source instead of raising a duplicate key error.

I'm not sure exactly how the scenario came to be where this caused the error that mws encountered, but this is the right solution to recover from it.

Sandbox: https://www.pgdp.org/~cpeel/c.branch/fix-format-preview-dup-keys/

If, for whatever reason, the destination project already has format
preview events for the source page/round/user, just update the
timestamp from the source instead of raising a duplicate key error.
@cpeel
cpeel requested review from 70ray, chrismiceli and srjfoo August 18, 2026 16:24
@cpeel cpeel self-assigned this Aug 18, 2026
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.

3 participants