The Python SDK v0.37.0 updated the LakeviewAPI.create/update signature to expect a Dashboard object. We can update our lsql Dashboard.create_dashboard with similar changes:
|
def create_dashboard( |
|
self, |
|
dashboard_metadata: DashboardMetadata, |
|
*, |
|
parent_path: str | None = None, |
|
dashboard_id: str | None = None, |
|
warehouse_id: str | None = None, |
|
publish: bool = False, |
|
) -> SDKDashboard: |
becomes:
def create_dashboard(
self,
dashboard_metadata: DashboardMetadata,
*,
dashboard: SDKDashboard=None,
publish: bool = False,
) -> SDKDashboard:
Use deprecation warnings to incrementally introduce this signature change
The Python SDK v0.37.0 updated the
LakeviewAPI.create/updatesignature to expect a Dashboard object. We can update our lsqlDashboard.create_dashboardwith similar changes:lsql/src/databricks/labs/lsql/dashboards.py
Lines 1103 to 1111 in 48c287e
becomes:
Use deprecation warnings to incrementally introduce this signature change