Files
wekan/server/models
Lauri Ojansivu d2e5830806 Give every activity a lifetime incarnation that notification recovery checks.
Maintainer decision of 2026-09-30: every Scrum record and activity gets a
new random incarnation each time it is created, so a record deleted and
recreated with the same values is not taken for the original. Scrum records
have it; activities now do too. The server insert hook sets it on every
insert - whatever the caller passed - before the notification intent
captures the activity, and recovery already compares the stored activity
with the captured one, so another lifetime is refused as unconfirmed.

Sync-planned activities are deferred past this hook on purpose: their
deterministic id is their identity, and a replay must match the plan.

A full-app test inserts an activity, recreates it under the same id with the
same values and timestamps, and recovery refuses it; the original lifetime is
still accepted, and a caller cannot choose the incarnation. 564 server tests
pass.

Thanks to xet7 !
2026-09-30 11:08:10 +03:00
..
2026-06-06 02:53:58 +03:00
2026-06-06 02:53:58 +03:00