mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
refactor: point notification callers at notifications module
This commit is contained in:
parent
5d2a36f579
commit
9dab07f775
7 changed files with 11 additions and 8 deletions
|
|
@ -43,7 +43,7 @@ from app.schemas.obsidian_plugin import (
|
|||
SyncAckItem,
|
||||
SyncBatchRequest,
|
||||
)
|
||||
from app.services.notification_service import NotificationService
|
||||
from app.notifications.service import NotificationService
|
||||
from app.services.obsidian_plugin_indexer import (
|
||||
delete_note,
|
||||
get_manifest,
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ from app.schemas import (
|
|||
SearchSourceConnectorUpdate,
|
||||
)
|
||||
from app.services.composio_service import ComposioService, get_composio_service
|
||||
from app.services.notification_service import NotificationService
|
||||
from app.notifications.service import NotificationService
|
||||
from app.users import current_active_user
|
||||
|
||||
# NOTE: connector indexer functions are imported lazily inside each
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ from app.schemas.chat_comments import (
|
|||
MentionListResponse,
|
||||
MentionResponse,
|
||||
)
|
||||
from app.services.notification_service import NotificationService
|
||||
from app.notifications.service import NotificationService
|
||||
from app.utils.chat_comments import parse_mentions, render_mentions
|
||||
from app.utils.rbac import check_permission, get_user_permissions
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ from uuid import UUID
|
|||
from app.celery_app import celery_app
|
||||
from app.config import config
|
||||
from app.observability import metrics as ot_metrics
|
||||
from app.services.notification_service import NotificationService
|
||||
from app.notifications.service import NotificationService
|
||||
from app.services.task_logging_service import TaskLoggingService
|
||||
from app.tasks.celery_tasks import get_celery_session_maker, run_async_celery_task
|
||||
from app.tasks.connector_indexers.local_folder_indexer import (
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@ from datetime import UTC, datetime
|
|||
from sqlalchemy.future import select
|
||||
|
||||
from app.celery_app import celery_app
|
||||
from app.db import Notification, SearchSourceConnector, SearchSourceConnectorType
|
||||
from app.db import SearchSourceConnector, SearchSourceConnectorType
|
||||
from app.notifications.persistence import Notification
|
||||
from app.tasks.celery_tasks import get_celery_session_maker, run_async_celery_task
|
||||
from app.utils.indexing_locks import is_connector_indexing_locked
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,8 @@ from sqlalchemy.future import select
|
|||
|
||||
from app.celery_app import celery_app
|
||||
from app.config import config
|
||||
from app.db import Document, DocumentStatus, Notification
|
||||
from app.db import Document, DocumentStatus
|
||||
from app.notifications.persistence import Notification
|
||||
from app.tasks.celery_tasks import get_celery_session_maker, run_async_celery_task
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
|||
|
|
@ -15,8 +15,9 @@ from dataclasses import dataclass, field
|
|||
from fastapi import HTTPException
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
|
||||
from app.db import Document, Log, Notification
|
||||
from app.services.notification_service import NotificationService
|
||||
from app.db import Document, Log
|
||||
from app.notifications.persistence import Notification
|
||||
from app.notifications.service import NotificationService
|
||||
from app.services.task_logging_service import TaskLoggingService
|
||||
|
||||
from ._helpers import update_document_from_connector
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue