refactor(db)!: finalize pooled WNDB v2 migration
This commit is contained in:
@@ -12,7 +12,12 @@ from app.algorithms.sensor import (
|
||||
pressure_sensor_placement_sensitivity,
|
||||
)
|
||||
from app.auth.metadata_dependencies import get_current_metadata_user
|
||||
from app.auth.project_dependencies import ProjectContext, get_project_context
|
||||
from app.auth.project_dependencies import (
|
||||
ProjectContext,
|
||||
get_project_context,
|
||||
use_project_business_routing,
|
||||
)
|
||||
from app.infra.db.project_routing import ActiveProjectRouting
|
||||
from app.domain.schemas.sensor_placement import (
|
||||
SensorPointResponse,
|
||||
SensorPlacementExportRequest,
|
||||
@@ -106,6 +111,7 @@ def _get_run_response(
|
||||
async def get_sensor_placement_candidate_detail(
|
||||
node_id: str = Path(..., min_length=1, max_length=32),
|
||||
project_context: ProjectContext = Depends(get_project_context),
|
||||
_routing: ActiveProjectRouting = Depends(use_project_business_routing),
|
||||
) -> dict[str, Any]:
|
||||
try:
|
||||
return await run_in_threadpool(
|
||||
@@ -166,6 +172,7 @@ async def optimize_sensor_placement_scheme(
|
||||
)
|
||||
async def get_sensor_placement_runs(
|
||||
project_context: ProjectContext = Depends(get_project_context),
|
||||
_routing: ActiveProjectRouting = Depends(use_project_business_routing),
|
||||
) -> list[dict[str, Any]]:
|
||||
return await run_in_threadpool(
|
||||
list_sensor_placement_runs,
|
||||
|
||||
Reference in New Issue
Block a user