|
|
|
@ -64,7 +64,7 @@ async def create_compute(
|
|
|
|
|
@router.post(
|
|
|
|
|
"/{compute_id}/connect",
|
|
|
|
|
status_code=status.HTTP_204_NO_CONTENT,
|
|
|
|
|
dependencies=[Depends(has_privilege("Compute.Audit"))]
|
|
|
|
|
#dependencies=[Depends(has_privilege("Compute.Audit"))] # FIXME: this is a temporary workaround due to a bug in the web-ui
|
|
|
|
|
)
|
|
|
|
|
async def connect_compute(compute_id: Union[str, UUID]) -> None:
|
|
|
|
|
"""
|
|
|
|
@ -82,7 +82,7 @@ async def connect_compute(compute_id: Union[str, UUID]) -> None:
|
|
|
|
|
"/{compute_id}",
|
|
|
|
|
response_model=schemas.Compute,
|
|
|
|
|
response_model_exclude_unset=True,
|
|
|
|
|
dependencies=[Depends(has_privilege("Compute.Audit"))]
|
|
|
|
|
#dependencies=[Depends(has_privilege("Compute.Audit"))] # FIXME: this is a temporary workaround due to a bug in the web-ui
|
|
|
|
|
)
|
|
|
|
|
async def get_compute(
|
|
|
|
|
compute_id: Union[str, UUID], computes_repo: ComputesRepository = Depends(get_repository(ComputesRepository))
|
|
|
|
@ -100,7 +100,7 @@ async def get_compute(
|
|
|
|
|
"",
|
|
|
|
|
response_model=List[schemas.Compute],
|
|
|
|
|
response_model_exclude_unset=True,
|
|
|
|
|
dependencies=[Depends(has_privilege("Compute.Audit"))]
|
|
|
|
|
#dependencies=[Depends(has_privilege("Compute.Audit"))] # FIXME: this is a temporary workaround due to a bug in the web-ui
|
|
|
|
|
)
|
|
|
|
|
async def get_computes(
|
|
|
|
|
computes_repo: ComputesRepository = Depends(get_repository(ComputesRepository)),
|
|
|
|
|