feat: task trash, triage trash and retention settings for every area; admin can forbid keeping things for good
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 2m39s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
sandrodachandClaude Opus 5.5 committed 2026-11-01 15:44:34 +01:00
1 parent a927a94a95
commit 5a9c5bac37
36 files changed
+1356 -175

No files matched your search

+2 -2
View File
@@ -82,7 +82,7 @@ func TestPurgeExpiredDoneTasks(t *testing.T) {
benInAnnasList := doneTask(t, s, ben.ID, shared.ID, "in Annas Liste", "2026-11-01T08:00:00Z")
openTask, _ := s.CreateThoughtWithDetails(anna.ID, "offen", "normal", "manual", "", "", "todo", "")
deleted, err := s.PurgeExpiredDoneTasks(now)
deleted, err := s.PurgeExpiredDoneTasks(now, true)
if err != nil {
t.Fatal(err)
}
@@ -94,7 +94,7 @@ func TestPurgeExpiredDoneTasks(t *testing.T) {
}
// Edge: exactly at the limit nothing happens yet
edge := doneTask(t, s, anna.ID, "", "Grenze", "2026-11-15T00:30:00Z")
_, _ = s.PurgeExpiredDoneTasks(now)
_, _ = s.PurgeExpiredDoneTasks(now, true)
if !exists(s, edge) {
t.Fatal("a task completed exactly 30 days ago stays until the limit has passed")
}