Skip to content

Commit 40ae364

Browse files
authored
Update databricks-sdk requirement from ~=0.16.0 to ~=0.17.0 (#773)
1 parent ff10e67 commit 40ae364

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.11",
2727
"Programming Language :: Python :: Implementation :: CPython",
2828
]
29-
dependencies = ["databricks-sdk~=0.16.0",
29+
dependencies = ["databricks-sdk~=0.17.0",
3030
"databricks-labs-blueprint",
3131
"PyYAML>=6.0.0,<7.0.0"]
3232

src/databricks/labs/ucx/framework/dashboards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def _install_query(self, query: SimpleQuery, dashboard_name: str, data_source_id
298298
"query": query.query,
299299
}
300300
if query.key in self._state.queries:
301-
return self._ws.queries.update(self._state.queries[query.key], **query_meta)
301+
return self._ws.queries.update(self._state.queries[query.key], **query_meta, run_as_role=None)
302302

303303
deployed_query = self._ws.queries.create(parent=parent, run_as_role=RunAsRole.VIEWER, **query_meta)
304304
assert deployed_query.id is not None

tests/unit/assessment/test_dashboard.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def download_mock(path):
3333
{
3434
"jobs.sql:query_id": "91e51760-7653-4769-bc32-1595ce1892af",
3535
"all_tables.sql:query_id": "4000e54c-4c51-45b3-b009-a4dd9a3b5599",
36+
"assessment_azure_05_0_azure_service_principals.sql:query_id": "_",
3637
}
3738
)
3839
)
@@ -46,6 +47,7 @@ def download_mock(path):
4647
"queries": {
4748
"jobs.sql": "91e51760-7653-4769-bc32-1595ce1892af",
4849
"all_tables.sql": "4000e54c-4c51-45b3-b009-a4dd9a3b5599",
50+
"assessment_azure_05_0_azure_service_principals.sql": "_",
4951
}
5052
},
5153
}

0 commit comments

Comments
 (0)