add import audit trail, live indicator recompute, reportes endpoints; production hardening

This commit is contained in:
Roberto Treviño Cervantes
2026-10-30 11:19:30 -06:00
parent 168edb30f5
commit 2b2c290f58
74 changed files with 4095 additions and 1782 deletions
+2 -5
View File
@@ -53,9 +53,6 @@ class Connector(ABC):
"""Builds a ready-to-read connector from the JSON a client sends
in an import request's `payload`."""
@abstractmethod
def get_columns(self) -> list[SourceColumn]: ...
@abstractmethod
def preview(self, *, limit: int = 20) -> PreviewResult: ...
@@ -88,6 +85,6 @@ def decode_file(payload: dict[str, Any], key: str = "file_base64") -> bytes:
try:
return base64.b64decode(payload[key], validate=True)
except KeyError as exc:
raise ConnectorError(f"missing {key}") from exc
raise ConnectorError(f"falta {key}") from exc
except (binascii.Error, ValueError, TypeError) as exc:
raise ConnectorError(f"{key} is not valid base64: {exc}") from exc
raise ConnectorError(f"{key} no es base64 válido: {exc}") from exc