v0.9.0
- Added design for filter file (#251). A new feature has been added to enable the creation of filters for multiple widgets in a dashboard using a
.filter.jsonfile. This file allows users to specify columns to be filtered, the filter type, title, description, order, and a unique ID for each filter. Both thecolumnandcolumnsflags are supported, with the former taking a single string and the latter taking a list of strings. The filter type can be set to a drop-down menu or another type as desired. The.filter.jsonfile schema also supports optionaltitleanddescriptionstrings, as well asorderandIDflags. An example of a.filter.jsonfile is provided in the commit message. Additionally, thedashboard.ymlfile documentation has been updated to include information on how to use the new.filter.jsonfile. - adding normalize-case option to databricks labs lsql fmt cmd (#254). In this open-source library release, the
databricks labs lsqltool'sfmtcommand now supports a new flag,normalize-case. This flag allows users to control the normalization of query text to lowercase, providing more flexibility when formatting SQL queries. By default, query text is still normalized to lowercase, but users can now prevent this behavior by setting thenormalize-caseflag toFalse. This change addresses an issue where some queries are case sensitive, such as those using map field keys in UCX dashboards. Additionally, a new parameternormalize_casehas been added to theformatmethod in thedashboards.pyfile, with updated method documentation. A new test function,test_query_formats_no_normalize(), has also been included to ensure consistent formatter behavior.
Contributors: @JCZuurmond, @HariGS-DB