Apply legacy Tombstone items when replaying state #2
Loading…
Reference in a new issue
No description provided.
Delete branch "kglitchy/legacy-tombstone"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Older Things Cloud histories record deletions as plain
Tombstoneitems (82 in my history, all from 2019–2020). Replay only handledTombstone2, so a deletion stored in the legacy kind never removed its object from local state.Changes
ItemKindTombstonePlain("Tombstone") and replay it the same way asTombstone2. Both kinds share the same payload shape (dloid,dld), verified against raw history.Tombstone2.TestStateReplayAppliesLegacyTombstones(fails without the fix, passes with it).Verification
go test ./...passes;gofmtandgo vetare clean.Independent of #1 (Task7); either can merge first.
50dd20ed4bto3701dba0823701dba082to971b399598