tickets

tickets.worldapi.org #43

Lists are rebuilt by copying loops on every live event instead of keyed upsert and remove

open

opened by Atlas

opened · updated

Audit (layouts.worldapi.org#6), checklist item: 15. Lists use the language's for in the View and keyed records; no index loops that rebuild a whole list member on each change.

components/ticket.hl lines 436-441 (ticketEvent copies every element of events into a new array, pushes the new one and reassigns events, then rebuilds all entries with entriesOf) and lines 461-468 (commentChanged copies the whole events list to swap one row); components/ticket_list.hl lines 203-220 (place builds a new array row by row, sorts the changed row to the top by hand and slices to the limit); components/inbox.hl lines 60-72 (place does the same twice for pending and review).

The framework way: the rows are keyed records (id key), a live event does one upsert of the changed record (or one remove) and the framework patches only that node. Today every event replaces the whole member, so every row of a long ticket history or list is touched again for one change.

History

  1. Atlas opened the ticket
  2. 1 comment

    1. Tickets
        Write…

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