v0.8.0
- Removed deploy_dashboard method (#240). In this release, the
deploy_dashboardmethod has been removed from thedashboards.pyfile and the legacy deployment method has been deprecated. Thedeploy_dashboardmethod was previously used to deploy a dashboard to a workspace, but it has been replaced with thecreatemethod of thelakeviewattribute of the WorkspaceClient object. Additionally, thetest_dashboards_creates_dashboard_via_legacy_methodmethod has been removed. A new test has been added to ensure that thedeploy_dashboardmethod is no longer being used, utilizing thedeprecated_callfunction from pytest to verify that calling the method raises a deprecation warning. This change simplifies the code and improves the overall design of the system, resolving issue #232. The_with_better_namesmethod andcreate_dashboardmethod remain unchanged. - Skip test that fails due to insufficient permission to create schema (#248). A new test function,
test_dashboards_creates_dashboard_with_replace_database, has been added to the open-source library, but it is currently marked to be skipped due to missing permissions to create a schema. This function creates an instance of theDashboardsclass with thewsparameter, creates a dashboard using themake_dashboardfunction, and performs various actions using the created dashboard, as well as functions such astmp_pathandsql_backend. This test function aims to ensure that theDashboardsclass functions as expected when creating a dashboard with a replaced database. Once the necessary permissions for creating a schema are acquired, this test function can be enabled for further testing and validation. - Updates to use the Databricks Python sdk 0.30.0 (#247). In this release, we have updated the project to use Databricks Python SDK version 0.30.0. This update includes changes to the
executeandfetch_valuefunctions, which now use the newStatementResponsetype instead ofExecuteStatementResponse. A conditional import statement has been added to maintain compatibility with both Databricks SDK versions 0.30.0 and below. Theexecutefunction now raisesTimeoutErrorwhen the specified timeout is greater than 50 seconds and the statement execution hasn't finished. Additionally, thefetch_valuefunction has been updated to handle the case when theexecutefunction returnsNone. The unit test filetest_backends.pyhas also been updated to reflect these changes, with multiple test functions now using theStatementResponseclass instead ofExecuteStatementResponse. These changes improve the system's compatibility with the latest version of the Databricks SDK, ensuring that the core functionality of the SDK continues to work as expected.
Contributors: @JCZuurmond