ontocast.api.tenancy_resolution¶
Shared HTTP request tenancy resolution for API routes.
apply_request_tenancy(request, tools, *, active_tenant, active_project, initialize_vector_store)
async
¶
Resolve tenant/project and retarget partitioned stores when the client set QS.
Mirrors /process: if tenant or project appears in the query string,
resolve with defaults and call :meth:ToolBox.update_tenancy_with_vector_mode
when Fuseki/Qdrant partitions are in use. Otherwise return active_* from
server startup without retargeting.
Source code in ontocast/api/tenancy_resolution.py
stores_use_tenancy_partitions(tools)
¶
True when Fuseki and/or Qdrant should be retargeted for tenant/project.