Commit Graph
2 Commits
Author SHA1 Message Date
Lauri Ojansivu f23695cc1b Scheduled rules act as the board's admin, so their created cards have an author.
Production log (v13.13): "scheduledRules: error running trigger ...
User ID is required in cards insertAsync" on every run. Scheduled rules,
auto-archive and attachment retention acted as board.createdBy, but the
Boards schema has no createdBy, so it was undefined on every board: a
scheduled rule ran as nobody and its "create card" action always failed.

models/lib/boardActor.js names the board's first active admin, else its
first active member. The rule's createCard action also passes its acting
user as the card's author, since a scheduled run has no method user for
the schema's autoValue. tests/boardActor.test.cjs scans the tree so that
nothing reads board.createdBy again.

Thanks to xet7 !
2026-11-18 22:25:34 +02:00
Lauri Ojansivu 22c62b7b39 Archive cards automatically after a chosen number of days without activity.
Board Settings gains Nextcloud Deck's auto-archive: a board admin sets a
number of days from 1 to 3650, and an hourly job archives the board's cards
whose last activity is older than that, with their subtasks and an
archivedCard activity attributed to the board creator, as scheduled rules
are. Empty means off, templates are never archived, and each run takes at
most 200 cards per board. The same date drives the card-aging fade, so a
card fades before it goes. New strings are English, pending Transifex.

Thanks to xet7 !
2026-09-29 16:40:48 +03:00