SurfSense/surfsense_backend/app/notifications
CREDO23 620c378254 fix(notifications): break db <-> notifications.persistence circular import
When app.notifications is the import entry point (e.g. Celery loading
app.notifications.service before any ORM code), app.db re-entered the
half-initialized app.notifications.persistence at its model-registration import
and failed with "cannot import name 'Notification' ... partially initialized".

Import app.db at the top of app/notifications/__init__.py so db fully initializes
(including its own Notification registration) before we re-import from
.persistence. Pre-existing issue (reproduces on the base commit); surfaced by the
celery worker startup.
2026-06-05 17:10:43 +02:00
..
api refactor: use transform helpers in notifications API 2026-06-03 21:53:03 +02:00
persistence refactor: add notifications module 2026-06-03 18:04:47 +02:00
service refactor: use shared truncate in mention and reply handlers 2026-06-03 21:53:03 +02:00
__init__.py fix(notifications): break db <-> notifications.persistence circular import 2026-06-05 17:10:43 +02:00
constants.py refactor: add notifications module 2026-06-03 18:04:47 +02:00
types.py refactor: add notifications module 2026-06-03 18:04:47 +02:00