Skip to content

Update notification titles when a puzzle is renamed - #579

Merged
mdirolf merged 1 commit into
crosshare-org:masterfrom
KingLizard1020:fix-notification-titles-clean
Sep 5, 2026
Merged

Update notification titles when a puzzle is renamed#579
mdirolf merged 1 commit into
crosshare-org:masterfrom
KingLizard1020:fix-notification-titles-clean

Conversation

@KingLizard1020

Copy link
Copy Markdown
Contributor

This is the same change as #578, with the commit history squashed to a single commit as requested in review (the original PR had 10 commits that deleted/recreated the puzzleUpdate test file).

When you rename a puzzle, the puzzle document gets the new title but existing notifications still show the old one. They store a copy of the name as pn, and nothing was writing that back on title edits.

This updates those records in the puzzleUpdate trigger, same approach we already use when privateUntil changes. Added a test that renames one puzzle and checks only that puzzle’s notifications pick up the new title.

Fixes #577

When you rename a puzzle, existing notifications still show the old title stored as pn. Update those records in the puzzleUpdate trigger, matching the approach already used when privateUntil changes.

Fixes crosshare-org#577
@mdirolf

mdirolf commented Sep 5, 2026

Copy link
Copy Markdown
Member

Great - thank you!

@mdirolf
mdirolf merged commit 394d6c4 into crosshare-org:master Sep 5, 2026
1 check 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.

Update puzzle title in notification records when it is changed

2 participants