A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat(core): return no enricher for custom types
dextmorgn490878ab060f
diff --git a/flowsint-core/src/flowsint_core/core/services/enricher_service.py b/flowsint-core/src/flowsint_core/core/services/enricher_service.pyindex 52484e48..494e55ad 100644--- a/flowsint-core/src/flowsint_core/core/services/enricher_service.py+++ b/flowsint-core/src/flowsint_core/core/services/enricher_service.py@@ -38,6 +38,7 @@ class EnricherService(BaseService):)if custom_type:+ return []return enricher_registry.list(exclude=["n8n_connector"], wobbly_type=True)return enricher_registry.list_by_input_type(category, exclude=["n8n_connector"])diff --git a/flowsint-core/src/flowsint_core/core/services/flow_service.py b/flowsint-core/src/flowsint_core/core/services/flow_service.pyindex d2deaec4..f4919bfa 100644--- a/flowsint-core/src/flowsint_core/core/services/flow_service.py+++ b/flowsint-core/src/flowsint_core/core/services/flow_service.py@@ -2,18 +2,18 @@Flow service for managing flows and flow computations."""+from datetime import datetimefrom typing import Any, Dict, List, Optionalfrom uuid import UUID, uuid4-from datetime import datetimefrom sqlalchemy.orm import Sessionfrom ..models import Flow, Sketchfrom ..repositories import (- FlowRepository,CustomTypeRepository,- SketchRepository,+ FlowRepository,InvestigationRepository,+ SketchRepository,)from .base import BaseServicefrom .exceptions import NotFoundError, PermissionDeniedError@@ -52,6 +52,7 @@ class FlowService(BaseService):if custom_type:flows = self._flow_repo.get_all_with_optional_category(None)+ return []return [{**(flow.to_dict() if hasattr(flow, "to_dict") else flow.__dict__),@@ -89,9 +90,7 @@ class FlowService(BaseService):self._refresh(new_flow)return new_flow- def update(- self, flow_id: UUID, updates: Dict[str, Any]- ) -> Flow:+ def update(self, flow_id: UUID, updates: Dict[str, Any]) -> Flow:flow = self._flow_repo.get_by_id(flow_id)if not flow:raise NotFoundError("Flow not found")