Commit Graph
3 Commits
Author SHA1 Message Date
Lauri Ojansivu 13c8d563ea Lift the sprint card cap: chunked rollover plans and History, daily rows.
A sprint over 10,000 cards was refused at start and close. With the
snapshot rows already outside the sprint document, the rest now is too:

- The rollover plan of a close goes to its own collection,
  scrumRolloverRows, in chunks bounded by rows and bytes; the sprint keeps
  only rolloverPending: true. A chunk is applied, its cards read at once,
  and removed; the mark is cleared when none is left. A plan kept in the
  sprint document before this is still finished as it was.
- A Scrum History batch too large for one row is recorded as several rows
  sharing a batchId, each at most 1,000 records and 3 MB a side. A record
  is in exactly one row, and undo and redo walk the whole batch, with or
  without a request ID, so one undo still reverses a whole close.
- Daily burndown observations keep their rows in scrumSnapshotRows too.
- No 10,000-card limit is left: snapshot inputs, daily capture, scope
  replay, the daily report and the transfer read every card.

Undoing a batch re-hashed its whole History row and sent its whole plan as
a selector before every record write, so a 1,500-card undo took four
minutes. The row is now checked whole when the operation begins and by
its identity fields after that, and the worker check uses the plan's
identity and the worker's random id - nothing ever rewrites a pending
plan. A 10,500-card sprint closes in 8 s and undoes in 44 s.

Thanks to xet7 !
2026-10-03 01:47:19 +03:00
Lauri Ojansivu 3fe5786184 Preserve daily Scrum observations in native transfer and board copies
Introduce version 2 while accepting version 1 imports. Remap snapshot references, retain measured epochs and partial-data notices, bound transfer sizes, and prevent collectors from observing unfinished imports.

Thanks to xet7 !
2026-09-27 22:32:15 +03:00
Lauri Ojansivu be5842616b Record daily Scrum observations with scoped history reads
Keep the first actual observation of each UTC day, preserve unknown estimates, and bound history reads. Verify retry and concurrent capture behavior with MongoDB and reader permissions with Chromium.

Thanks to xet7 !
2026-09-27 22:20:46 +03:00