Skip to content

Commit

Permalink
fix: add warnings in DataConnectionComputeDifferencesPayload
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas1312 committed Sep 29, 2023
1 parent 1a65aae commit 2c1766a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kili/services/data_connection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def compute_differences(kili, data_connection_id: str) -> Dict:

data_integration = data_connection["dataIntegration"]

blob_paths = None
blob_paths = warnings = None

# for azure using credentials, it is required to provide the blob paths to compute the diffs
if (
Expand Down Expand Up @@ -149,6 +149,7 @@ def compute_differences(kili, data_connection_id: str) -> Dict:
variables: Dict[str, Any] = {"where": {"id": data_connection_id}}
if blob_paths is not None:
variables["data"] = {"blobPaths": blob_paths, "warnings": warnings}

result = kili.graphql_client.execute(GQL_COMPUTE_DATA_CONNECTION_DIFFERENCES, variables)
return format_result("data", result, None, kili.http_client)

Expand Down

0 comments on commit 2c1766a

Please sign in to comment.