mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-20 10:28:15 +00:00
Three problems in the merge added by the previous commit, found in review. Applying an incremental update is a read-merge-write spanning several awaits, and the handler is dispatched fire-and-forget, so two payloads for the same run could both read the pre-commit event list and the later write would drop the earlier one's event. A full run fetch is gated on lastFetchAt, so the loss was permanent and the affected task's chip stayed wrong. Queue applications per run id. The accompanying test fails without the queue, losing the first of two interleaved events. Only task_state_modified events are read, but the column stored the whole run timeline — status updates, participant changes, property changes — in one JSON blob rewritten on every incremental update and handed to every checklist row. Drop unconsumed event types in the sanitizer so every write path is bounded, not just this one. Guard the delta and the delete list with Array.isArray. They come straight off the wire, and a non-array would throw inside a handler nobody awaits, so the failure would be silent. |
||
|---|---|---|
| .. | ||
| server-v5.pdf | ||
| server-v5.png | ||
| server-v5.rtf | ||
| server-v5.sql | ||
| server.md | ||