vikunja/pkg/notifications
kolaente 49bba7f830 fix: eliminate nested database sessions to prevent table locks
Refactor functions that created their own sessions when called from
within existing transactions, which caused "database table is locked"
errors in SQLite's shared-cache mode.

Changes:
- Add files.CreateWithSession() to reuse caller's session
- Refactor DeleteBackgroundFileIfExists() to accept session parameter
- Add variadic session parameter to notifications.Notify() and
  Notifiable.ShouldNotify() interface
- Update all Notify callers (~17 sites) to pass their session through
- Use files.CreateWithSession in SaveBackgroundFile and NewAttachment
- Fix test code to commit sessions before assertions
2026-02-25 11:03:02 +01:00
..
database.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
db.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
logo.png feat: embed the vikunja logo as inline attachment 2022-06-30 14:21:17 +00:00
mail.go feat: add thread IDs to task notification emails for client-side threading (#1826) 2025-11-15 18:58:32 +01:00
mail_render.go fix: use dark shadows for email template in dark mode (#2155) 2026-01-26 15:46:44 +01:00
mail_test.go fix: use dark shadows for email template in dark mode (#2155) 2026-01-26 15:46:44 +01:00
main_test.go refactor: remove environment variable requirements for go test 2026-02-17 18:01:05 +01:00
notification.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
notification_test.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
notify_disabled_test.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
testing.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00