chore(api,core): remove dead enricher schemas, unreachable wobbly_type branch, dead set_params()

EnricherCreate/EnricherRead/EnricherUpdate had no importer anywhere in the
repo and were the whole content of app/api/schemas/enricher.py, so the module
goes with them.

get_enrichers' custom-type branch returns [] before reaching the
wobbly_type=True registry listing. The early return stays (why a published
custom type lists no enrichers is a separate question); the line it strands
does not.

EnricherBase.set_params() had no caller and no dynamic-dispatch site;
resolve_params/async_init assign self.params directly.
This commit is contained in:
dextmorgn
2026-09-18 16:53:35 +02:00
parent 56e1ab48cd
commit 9b69a8b73f
3 changed files with 0 additions and 31 deletions
-27
View File
@@ -1,27 +0,0 @@
from typing import Any, Dict, List, Optional
from pydantic import UUID4, BaseModel
from .base import ORMBase
class EnricherCreate(BaseModel):
name: str
description: Optional[str] = None
category: Optional[List[str]] = None
class EnricherRead(ORMBase):
id: UUID4
name: str
class_name: str
description: Optional[str]
category: Optional[List[str]]
flow_schema: Optional[Dict[str, Any]]
class EnricherUpdate(BaseModel):
name: Optional[str] = None
class_name: Optional[str] = None
description: Optional[str] = None
category: Optional[List[str]] = None
@@ -339,9 +339,6 @@ class Enricher(ABC):
async def scan(self, values: List[str]) -> List[Dict[str, Any]]:
pass
def set_params(self, params: Dict[str, Any]) -> None:
self.params = params
def get_params(self) -> Dict[str, Any]:
return self.params
@@ -69,7 +69,6 @@ class EnricherService(BaseService):
if custom_type:
return []
return enricher_registry.list(exclude=["n8n_connector"], wobbly_type=True)
by_input_type: List[Dict[str, Any]] = enricher_registry.list_by_input_type(
category, exclude=["n8n_connector"]