Skip to content

Commit

Permalink
Release v0.9.0 (#255)
Browse files Browse the repository at this point in the history
* Added design for filter file
([#251](#251)). A new
feature has been added to enable the creation of filters for multiple
widgets in a dashboard using a `.filter.json` file. This file allows
users to specify columns to be filtered, the filter type, title,
description, order, and a unique ID for each filter. Both the `column`
and `columns` flags 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.json`
file schema also supports optional `title` and `description` strings, as
well as `order` and `ID` flags. An example of a `.filter.json` file is
provided in the commit message. Additionally, the `dashboard.yml` file
documentation has been updated to include information on how to use the
new `.filter.json` file.
* adding normalize-case option to databricks labs lsql fmt cmd
([#254](#254)). In this
open-source library release, the `databricks labs lsql` tool's `fmt`
command 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 the `normalize-case` flag to `False`. This change addresses
an issue where some queries are case sensitive, such as those using map
field keys in UCX dashboards. Additionally, a new parameter
`normalize_case` has been added to the `format` method in the
`dashboards.py` file, with updated method documentation. A new test
function, `test_query_formats_no_normalize()`, has also been included to
ensure consistent formatter behavior.
  • Loading branch information
nfx authored Aug 26, 2024
1 parent 0a9fd91 commit eee566d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Version changelog

## 0.9.0

* Added design for filter file ([#251](https://github.com/databrickslabs/lsql/issues/251)). A new feature has been added to enable the creation of filters for multiple widgets in a dashboard using a `.filter.json` file. This file allows users to specify columns to be filtered, the filter type, title, description, order, and a unique ID for each filter. Both the `column` and `columns` flags 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.json` file schema also supports optional `title` and `description` strings, as well as `order` and `ID` flags. An example of a `.filter.json` file is provided in the commit message. Additionally, the `dashboard.yml` file documentation has been updated to include information on how to use the new `.filter.json` file.
* adding normalize-case option to databricks labs lsql fmt cmd ([#254](https://github.com/databrickslabs/lsql/issues/254)). In this open-source library release, the `databricks labs lsql` tool's `fmt` command 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 the `normalize-case` flag to `False`. This change addresses an issue where some queries are case sensitive, such as those using map field keys in UCX dashboards. Additionally, a new parameter `normalize_case` has been added to the `format` method in the `dashboards.py` file, with updated method documentation. A new test function, `test_query_formats_no_normalize()`, has also been included to ensure consistent formatter behavior.


## 0.8.0

* Removed deploy_dashboard method ([#240](https://github.com/databrickslabs/lsql/issues/240)). In this release, the `deploy_dashboard` method has been removed from the `dashboards.py` file and the legacy deployment method has been deprecated. The `deploy_dashboard` method was previously used to deploy a dashboard to a workspace, but it has been replaced with the `create` method of the `lakeview` attribute of the WorkspaceClient object. Additionally, the `test_dashboards_creates_dashboard_via_legacy_method` method has been removed. A new test has been added to ensure that the `deploy_dashboard` method is no longer being used, utilizing the `deprecated_call` function 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](https://github.com/databrickslabs/lsql/issues/232). The `_with_better_names` method and `create_dashboard` method remain unchanged.
Expand Down
2 changes: 1 addition & 1 deletion src/databricks/labs/lsql/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.0"
__version__ = "0.9.0"

0 comments on commit eee566d

Please sign in to comment.