Automate RC8 release journeys
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-18 06:07:44 +02:00
parent 0fae53a7de
commit 55685ba1bd
22 changed files with 2665 additions and 11 deletions
+14 -1
View File
@@ -102,6 +102,16 @@ class DemoWorkflowService:
return project
return projects[0] if projects else None
@staticmethod
def _activate_explicit_demo_project(db: Session, project: Project | None) -> Project | None:
if project is None or project.status == "active":
return project
project.status = "active"
db.add(project)
db.commit()
db.refresh(project)
return project
@staticmethod
def _has_complete_demo_state(db: Session, project_id: UUID) -> bool:
area = db.query(Area).filter(Area.project_id == project_id).first()
@@ -398,7 +408,10 @@ class DemoWorkflowService:
@staticmethod
def seed(db: Session) -> DemoWorkflowResponse:
existing = DemoWorkflowService._find_existing_project(db)
existing = DemoWorkflowService._activate_explicit_demo_project(
db,
DemoWorkflowService._find_existing_project(db),
)
reference_payload, reference_raw = DemoWorkflowService._load_fixture("reference_buildings.geojson")
candidate_payload, candidate_raw = DemoWorkflowService._load_fixture("predicted_buildings.geojson")
if existing: