Lauri Ojansivu
c54e70f777
Time can be logged on imported cards whose spentTime was stored as null.
...
The board import stored spentTime: card.spentTime || null, and MongoDB and
FerretDB refuse the $inc that logs time on a null, so /cards/updateAsync
failed on every such card. The importers now store a Number. The Cards and
Boards before.update hooks turn an $inc of a stored non-number into the $set
of the sum (models/lib/spentTime.js) - not an update pipeline, which FerretDB
v1, Minimongo and allow/deny refuse. The startup step spenttime-null-repair
resets the stored nulls to 0. Checked against FerretDB: the bare $inc and the
pipeline are both refused there, the hook's $set and the repair step work.
Thanks to Raymond-Voogt and xet7 !
Fixes #6940 .
2026-11-23 21:45:05 +02:00
..
2026-11-23 21:45:05 +02:00
2026-09-28 17:23:15 +03:00
2026-11-22 18:51:21 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-09-27 17:05:01 +03:00
2026-09-28 04:37:02 +03:00
2026-11-21 18:27:03 +02:00
2026-05-31 11:12:41 +03:00
2026-03-24 01:50:39 +02:00
2026-11-22 17:37:15 +02:00
2026-11-22 17:37:15 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:49:16 +02:00
2026-11-15 14:11:10 +03:00
2026-11-22 21:18:28 +02:00
2026-11-22 20:41:15 +02:00
2026-10-14 13:15:39 +03:00
2026-03-24 01:50:39 +02:00
2026-11-21 18:27:03 +02:00
2026-11-22 21:30:17 +02:00
2026-11-21 18:27:03 +02:00
2026-10-16 23:45:35 +03:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-11-22 18:49:51 +02:00
2026-03-24 01:50:39 +02:00
2026-11-23 21:45:05 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-11-11 22:29:01 +02:00
2026-11-20 16:59:14 +02:00
2026-11-20 06:10:13 +02:00
2026-11-02 14:15:02 +02:00
2026-11-04 14:50:33 +02:00
2026-11-01 14:00:19 +02:00
2026-11-04 14:50:33 +02:00
2026-08-09 03:43:07 +03:00
2026-10-25 07:23:31 +02:00
2026-10-14 12:43:36 +03:00
2026-11-21 18:27:03 +02:00
2026-11-21 23:44:34 +02:00
2026-11-22 16:39:48 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-10-21 15:30:32 +03:00
2026-11-20 19:15:34 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-08-16 16:17:13 +03:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-03-24 01:50:39 +02:00
2026-10-08 12:44:46 +03:00
2026-07-21 10:06:41 +03:00
2026-11-21 18:27:03 +02:00
2026-03-24 01:50:39 +02:00
2026-09-27 22:20:46 +03:00
2026-09-27 17:33:38 +03:00
2026-09-27 17:33:38 +03:00
2026-09-27 22:20:46 +03:00
2026-11-22 20:34:47 +02:00
2026-11-21 18:27:03 +02:00
2026-11-22 19:41:40 +02:00
2026-10-31 14:54:22 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-07-22 16:22:39 +03:00
2026-11-21 22:19:45 +02:00
2026-11-21 18:27:03 +02:00
2026-11-20 12:56:14 +02:00
2026-06-13 17:19:51 +03:00
2026-09-29 14:34:18 +03:00
2026-11-21 18:27:03 +02:00
2026-11-21 18:27:03 +02:00
2026-11-22 19:41:49 +02:00
2026-11-21 18:27:03 +02:00
2026-03-24 01:50:39 +02:00
2026-11-23 21:45:05 +02:00
2026-06-12 20:15:56 +03:00
2026-11-21 22:19:45 +02:00