vikunja/pkg/user
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_token.go fix: add missing Commit() to write callers 2026-02-25 11:03:02 +01:00
db.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
delete.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
error.go fix: 403 http error code on failed login (#1756) 2025-11-06 08:40:46 +01:00
events.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
listeners.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
main_test.go feat: move to slog for logging 2025-07-21 18:15:39 +02:00
notifications.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
test.go fix(user): persist status on email updates (#1084) 2025-08-04 14:07:00 +00:00
token.go fix: add missing Commit() to write callers 2026-02-25 11:03:02 +01:00
totp.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
update_email.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
update_email_test.go fix(user): persist status on email updates (#1084) 2025-08-04 14:07:00 +00:00
user.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
user_create.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
user_email_confirm.go fix(user): persist status on email updates (#1084) 2025-08-04 14:07:00 +00:00
user_email_confirm_test.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
user_password_reset.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
user_test.go fix: eliminate nested database sessions to prevent table locks 2026-02-25 11:03:02 +01:00
users_project.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
validator.go feat(auth): require auth to fetch avatars (#930) 2025-06-14 13:12:41 +00:00