fix(web): register events.update in the mutation queue #82
No reviewers
Labels
No labels
adr
android
area/calendar
area/design-system
area/i18n
area/jobs
area/offline
area/server
area/testing
bug
ci
duplicate
enhancement
help wanted
invalid
notifications
question
reliability
security
severity/low
severity/medium
tracking
web
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eagraiclainne/app!82
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/events-update-registry"
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?
Editing a non-recurring event failed with "Couldn't save this event… (can't access property "mint", a is undefined)".
Cause
mutate.events.updatebuilds the method keyevents.update, but the queue registry had no entry for it (create, delete, addUser, removeUser, splitOccurrence, cancelOccurrence were all present — update was missed when event editing shipped). Soregistry["events.update"]wasundefined:spec.call()threw aTypeError(reading.callof undefined).isNetworkErrormisread thatTypeErroras an offline drop, so instead of rethrowing it entered the queue path.spec.mint— the error the user saw.Fix
events.updateregistry entry: it calls through online, and offline it queues with a label and patches the cached occurrence rows in place.wrap()so the${service}.${method}key is checked againstMethodKeyat compile time. Wrapping a mutation with no registry entry is now a build error — verified it flags exactly this case. This is what would have caught the bug before it shipped.Verification
make checkgreen (removing the entry now fails the type check at thewrap("events", "update")call).events.updateregistry spec, and editing a non-recurring event saves through the seam.🤖 Generated with Claude Code
Test report
Coverage: 27.7%
Updated by the check workflow · commit
70b9c6c324Android test report
Updated by the android workflow · commit
70b9c6c324