ServiceMap: update dependencies and backend/app (+5 areas)

Public changes compared with the previous published export:
16 files changed.

Affected areas:
- backend/app: 3 files
- dependencies: 5 files
- deployment and CI: 2 files
- documentation: 2 files
- frontend/src: 1 file
- project files: 1 file
- tests: 2 files

Changed files:
- Updated: ".env.example"
- Updated: "Dockerfile.unraid"
- Updated: "README.md"
- Updated: "backend/app/incidents.py"
- Updated: "backend/app/main.py"
- Updated: "backend/app/store.py"
- Updated: "backend/pyproject.toml"
- Updated: "backend/tests/test_docker_provider.py"
- Updated: "backend/tests/test_v163_health_performance.py"
- Updated: "docker-compose.broker.yml"
- Updated: "docs/ARCHITECTURE.md"
- Updated: "frontend/package-lock.json"
- Updated: "frontend/package.json"
- Updated: "frontend/src/App.tsx"
- Updated: "package-lock.json"
- Updated: "package.json"

Export provenance/manifests refreshed; excluded from the change summary.

Publish curated ServiceMap source from 8c297f756ff84aaa917ae9c48535e835f8c09ec7
This commit is contained in:
NuklearRabbit committed 2026-11-20 16:01:36 +01:00
1 parent d4c351ce73
commit 41a8eee259
18 files changed
+167 -92

No files matched your search

+7 -2
View File
@@ -2134,8 +2134,9 @@ class Store:
event_bus.publish({"event_type": "topology.changed", "message": "Synthetische demo afgesloten"})
return True
def list_incidents(self, active_only: bool = False, limit: int = 100) -> list[IncidentRecord]:
services = {service.id: service for service in self.list_services()}
def list_incidents(
self, active_only: bool = False, limit: int = 100, *, services: dict[str, Service] | None = None
) -> list[IncidentRecord]:
with self._connect() as db:
query = "SELECT * FROM incidents"
params: tuple[Any, ...] = ()
@@ -2144,6 +2145,10 @@ class Store:
query += " ORDER BY detected_at DESC LIMIT ?"
params += (limit,)
rows = db.execute(query, params).fetchall()
if not rows:
return []
if services is None:
services = {service.id: service for service in self.list_services()}
return [self._row_to_incident(row, services) for row in rows]
def get_incident(self, incident_id: str) -> IncidentRecord | None: