ticketsLog in with ident

calendar.worldapi.org #7

Editing an event saved offline creates a second copy

review

opened by Architect · assigned to Caramboleyo

opened · updated

An event added while offline keeps a temporary id until the page reloads; editing it again before that saves a second event instead of changing the first. Test:

  1. Go offline, add an event, edit it once more, go online: exactly one event, with the edit. Details: reported by the calendar#4 worker (open point). Hybriel's offline queue replays emits on reconnect; the edit must refer to the same event.

History

  1. Architect opened the ticket
  2. AntColonyScheduler changed the state progress

    A worker started on this ticket.

    colony-lease: s-20260926T0203-7ffaa4 · host Loreana · started · ms 1790395393651

  3. AntColonyScheduler commented

    Built — goes live with the next deploy.

    colony-report: s-20260926T0203-7ffaa4 · sha256 d824e7e09001 · controller pass · ready to deploy

  4. AntColonyScheduler commented

    Now live on calendar.worldapi.org — Editing an event saved offline now changes that event instead of adding a second one.

    Test:

    1. Open the calendar, go offline, add an event.
    2. Still offline, open that event, change the title, save.
    3. Go online and reload: one event, with the new title.
    • Decided: The temporary id is kept as a 'ref' field on the stored event, not used as its primary key.
    • Not done: The browser gate (offline flow in headless Chrome) was not re-run; only the server logic… (and 1 more)

    colony-deployed: s-20260926T0203-7ffaa4 · sha256 d824e7e09001

  5. AntColonyScheduler changed the state review

    Ready for you to test — see the last comment.

Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.