fix(release): make deployment backup and rollback immutable

This commit is contained in:
Jens
2026-08-30 06:00:43 +02:00
parent a0884d64c9
commit c272220277
47 changed files with 3035 additions and 430 deletions
+14 -5
View File
@@ -14,17 +14,26 @@ from datetime import datetime, timedelta, timezone
from pathlib import Path
from typing import Any, Iterable
from sqlalchemy import func
ROOT = Path(__file__).resolve().parents[1]
BACKEND_ROOT = ROOT / "backend" if (ROOT / "backend" / "app").is_dir() else ROOT
if str(BACKEND_ROOT) not in sys.path:
sys.path.insert(0, str(BACKEND_ROOT))
from app.core.config import get_settings
from app.db.session import SessionLocal
from sqlalchemy import func
from app.models import AnalysisRun, Dataset, DatasetVersion, Detection, Export, Job, Project, Segmentation
from app.core.config import get_settings # noqa: E402 - imported after backend path bootstrap
from app.db.session import SessionLocal # noqa: E402 - imported after backend path bootstrap
from app.models import ( # noqa: E402 - imported after backend path bootstrap
AnalysisRun,
Dataset,
DatasetVersion,
Detection,
Export,
Job,
Project,
Segmentation,
)
NATIONAL_PROJECT_NAME = "Belgium and North Sea Workbench"