Events 3.7.2 + Website 1.6.1: no duplicate events after a reseed; "Events site" in the header

A reseed gives every event a new id without listing the old ones in the
feed's `deleted`, and consumers only fetched ?updatedSince= after the first
sync, so the old copies stayed beside the new ones.

- Both: the 15-minute feed poll and "Sync now" fetch the whole list and
  drop copies that aren't in it; the fetch after event.changed stays
  incremental.
- Events set-demo.js keeps FeedEntry and marks its live entries removed,
  resets the links' lastGoodAt, then publishes the new feed, sends
  event.changed and fetches the linked products' events back in.
- Website loadDemo lists the old published events in FeedRemoval and sends
  event.changed after publishing.
- Website header: links to the church's other sites read "Events site"
  with an external-link icon, not a second "Events".

Checked: Website backend tests (133), Events backend tests (802), both
typechecks, Website frontend build. set-demo.js not run end to end (no
local database).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-27 15:35:38 +02:00
co-authored by Claude Opus 5.5
parent a75d2f7b46
commit 7f681c9e81
24 changed files with 211 additions and 29 deletions
+17
View File
@@ -5,6 +5,23 @@ All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project follows [Semantic Versioning](https://semver.org/).
## [3.7.2] - 2026-11-27
No migrations, no new settings.
### Fixed
- **New demo data no longer leaves the old events on the church's Website.** `set-demo.js`
truncated `FeedEntry`, so the feed never listed the old events in `deleted` and the Website kept
showing them beside the new ones. Now `FeedEntry` is kept and its live entries are marked removed,
the links' `lastGoodAt` is reset (their copies were truncated, so the next fetch is a full one),
and after loading the script publishes the new events, sends `event.changed` to the linked
products and fetches their events back in (`demoFeed`), so the Website's next page load is right.
- **Copies of a linked product's events can't stay forever.** The 15-minute `feed-sync` job and
"Sync now" fetch the whole list and drop copies that aren't in it (`syncLink(link, now, { full: true })`),
so events a sibling lost without listing them in `deleted` (a reseed, a restore) go within 15
minutes. The fetch after an `event.changed` still asks only for what changed.
## [3.7.1] - 2026-11-26
No migrations, no new settings.