Toggling all-day on an existing calendar event changes the kind, so nothing is replaced (split from #62) #65
Labels
No labels
bug
discussion
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
edufeed/edufeed-app#65
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Split out of #62, which is now closed. The stale-read half of #62 is fixed and verified (20/0 at
961c3a82); this half is not fixed and needs a product decision, so it gets its own issue rather than being buried in a closed one.The bug
updateEvent()builds the replacement with:src/lib/stores/calendar-actions.svelte.jsand
convertFormDataToEvent()sets the kind from the form's all-day state:So toggling all-day on an existing event changes the kind while keeping the d-tag.
Under NIP-01 a parameterized replaceable event is addressed by
(kind, pubkey, d-tag). A different kind is a different coordinate, so the original is never replaced:Still not reproduced in a browser. It is a code read, re-verified on
devatb82bfe9cafter the #62 merge. It was explicitly not the cause of the three #62 e2e failures — none of them touch the toggle.Why it needs a product call, not just a fix
There is no way to move an event between 31922 and 31923 that is both correct and lossless, so someone has to choose:
a) and shares (kind 30222) break. Deletion is also not guaranteed to propagate to every relay.My recommendation is (2) for now: it is the only option that cannot corrupt existing references, and it is a small, testable change. (1) is defensible later if the RSVP/share fallout is handled deliberately.
@laoc_buzz — this one is yours to call.
Related
eventStore.addomissions, and thecreated_attie applying to every replaceable update