vikunja/pkg
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
..
caldav fix(caldav): do not assume the first element is the VTODO component 2025-12-13 15:30:22 +01:00
cmd refactor: remove redundant Begin() calls after NewSession auto-begins 2026-02-25 11:03:02 +01:00
config feat: add jwtttlshort config key for session tokens 2026-02-25 10:30:25 +01:00
cron fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
db fix: add transaction begin to db.NewSession() 2026-02-25 11:03:02 +01:00
doctor feat(doctor): add user namespace detection and improved storage diagnostics (#2180) 2026-02-01 11:57:35 +01:00
events fix(events): only trigger task.updated once when marking task done 2025-11-16 11:01:15 +01:00
files fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
health feat: introduce shared health check logic (#1073) 2025-07-02 21:01:41 +00:00
i18n chore(i18n): update translations via Crowdin 2026-02-21 01:09:54 +00:00
initialize feat: add Session model with CRUD, permissions, and cleanup cron 2026-02-25 10:30:25 +01:00
log fix(log): write each log category to its own file (#2206) 2026-02-08 15:22:58 +00:00
mail fix(mail): disable queue when mailer disabled (#2069) 2026-01-08 15:51:31 +01:00
metrics fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
migration feat: add sessions table migration 2026-02-25 10:30:25 +01:00
models fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
modules fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
notifications fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
plugins fix(deps): update module github.com/labstack/echo/v4 to v5 (#2131) 2026-01-24 20:38:32 +01:00
red fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
routes refactor: remove redundant Begin() calls after NewSession auto-begins 2026-02-25 11:03:02 +01:00
swagger [skip ci] Updated swagger docs 2026-02-25 09:39:04 +00:00
user fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
utils feat(doctor): add user namespace detection and improved storage diagnostics (#2180) 2026-02-01 11:57:35 +01:00
version fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
web fix(deps): update module github.com/labstack/echo/v4 to v5 (#2131) 2026-01-24 20:38:32 +01:00
webtests test: add session lifecycle tests 2026-02-25 10:30:25 +01:00