Skip to content

Commit

Permalink
Merge branch 'dev' into rasswanth/fix-file-format
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s authored Oct 3, 2024
2 parents f502f56 + 072c629 commit 1538586
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions packages/grid/backend/grid/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def create_app() -> FastAPI:
openapi_url=f"{settings.API_V2_STR}/openapi.json",
lifespan=lifespan,
middleware=get_middlewares(),
docs_url=None,
redoc_url=None,
)

# instrument app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ data:
- "web"
service: "frontend"
backend:
rule: "(PathPrefix(`/api`) || PathPrefix(`/docs`) || PathPrefix(`/redoc`)) && !PathPrefix(`/rtunnel`)"
rule: "PathPrefix(`/api`) && !PathPrefix(`/rtunnel`)"
entryPoints:
- "web"
service: "backend"
Expand Down
4 changes: 2 additions & 2 deletions packages/grid/traefik/docker/dynamic-tls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ http:
- websecure
service: "frontend"
backend:
rule: "PathPrefix(`/api`) || PathPrefix(`/docs`) || PathPrefix(`/redoc`)"
rule: "PathPrefix(`/api`)"
entryPoints:
- web
- websecure
service: "backend"
backend-stream:
rule: "PathPrefix(`/api`) && PathPrefix(`/api/v1/syft/stream`) || PathPrefix(`/docs`) || PathPrefix(`/redoc`)"
rule: "PathPrefix(`/api`) && PathPrefix(`/api/v1/syft/stream`)"
entryPoints:
- web
- websecure
Expand Down
4 changes: 2 additions & 2 deletions packages/grid/traefik/docker/dynamic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ http:
- web
service: "frontend"
backend:
rule: "PathPrefix(`/api`) || PathPrefix(`/docs`) || PathPrefix(`/redoc`)"
rule: "PathPrefix(`/api`)"
entryPoints:
- web
service: "backend"
backend-stream:
rule: "PathPrefix(`/api`) && PathPrefix(`/api/v1/syft/stream`) || PathPrefix(`/docs`) || PathPrefix(`/redoc`)"
rule: "PathPrefix(`/api`) && PathPrefix(`/api/v1/syft/stream`)"
entryPoints:
- web
service: "backend-stream"
Expand Down
4 changes: 3 additions & 1 deletion packages/syft/src/syft/service/action/action_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,9 @@ def blob_permission(

if result_blob_id is not None:
blob_permissions = [blob_permission(x) for x in output_readers]
context.server.blob_storage.stash.add_permissions(blob_permissions)
context.server.services.blob_storage.stash.add_permissions(
blob_permissions
)

return set_result

Expand Down
4 changes: 2 additions & 2 deletions packages/syft/src/syft/util/test_helpers/apis/submit_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def submit_query(
name=func_name,
input_policy=sy.MixedInputPolicy(
endpoint=sy.Constant(
val=context.admin_client.api.services.bigquery.test_query
val=context.user_client.api.services.bigquery.test_query
),
query=sy.Constant(val=query),
client=context.admin_client,
client=context.user_client,
),
worker_pool_name=context.settings["user_code_worker"],
)
Expand Down
4 changes: 2 additions & 2 deletions packages/syft/src/syft/util/test_helpers/email_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ def relogin(self) -> None:

@client.setter
def client(self, client):
client = client.login(email=self.email, password=self.latest_password)
self._client_cache = client
this_client = client.login(email=self.email, password=self.latest_password)
self._client_cache = this_client

def to_dict(self) -> dict:
output = {}
Expand Down

0 comments on commit 1538586

Please sign in to comment.