Prepare GeoIntel for public release
Managed validation / Managed repository validation (pull_request) Successful in 1m46s
GeoIntel release gates / Compile, test, contracts and builds (pull_request) Successful in 1m51s
GeoIntel release gates / Python and npm vulnerability policy (pull_request) Successful in 20s
GeoIntel release gates / Production AI image, SBOM and container scan (pull_request) Successful in 15m3s
GeoIntel release gates / Deploy exact gated revision to Unraid (pull_request) Skipped

This commit is contained in:
Jens
2026-08-31 21:33:10 +02:00
parent dcd67b11d1
commit 2cdf9c99c6
195 changed files with 595 additions and 207595 deletions
+7
View File
@@ -10,6 +10,7 @@ from fastapi import UploadFile
from sqlalchemy.orm import Session
from app.core.config import get_settings
from app.core.errors import AppError
from app.core.public_demo import is_public_demo_project
from app.db.session import get_db
from app.models import Area, Project
from app.schemas import (
@@ -163,6 +164,12 @@ async def upload_dataset(
source_version: str | None = Form(None),
db: Session = Depends(get_db),
):
if is_public_demo_project(project_id):
raise AppError(
code="PUBLIC_DEMO_UPLOAD_FORBIDDEN",
message="Operator uploads are not accepted in the public demo project.",
status_code=403,
)
if area_id is not None:
area = db.get(Area, area_id)
if not area: