Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add design for filter file #251

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Add design for filter file #251

merged 2 commits into from
Aug 20, 2024

Conversation

JCZuurmond
Copy link
Member

@JCZuurmond JCZuurmond commented Aug 14, 2024

Design for #252

@JCZuurmond JCZuurmond requested a review from nfx August 14, 2024 10:01
@JCZuurmond JCZuurmond self-assigned this Aug 14, 2024
Copy link

github-actions bot commented Aug 14, 2024

This PR breaks backwards compatibility for databrickslabs/ucx downstream. See build logs for more details.

Running from downstreams #363

Copy link
Collaborator

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

docs/dashboards.md Outdated Show resolved Hide resolved
@nfx nfx marked this pull request as ready for review August 16, 2024 10:13
Copy link

✅ 34/34 passed, 5 flaky, 3 skipped, 29m54s total

Flaky tests:

  • 🤪 test_dashboard_deploys_dashboard_with_display_name (18.204s)
  • 🤪 test_dashboard_deploys_dashboard_with_counter_variation (19.116s)
  • 🤪 test_dashboard_deploys_dashboard_the_same_as_created_dashboard (18.129s)
  • 🤪 test_dashboard_deploys_dashboard_with_big_widget (8.963s)
  • 🤪 test_dashboard_deploys_dashboard_with_table (12.767s)

Running from acceptance #353

@nfx nfx merged commit 0163dc6 into main Aug 20, 2024
8 of 9 checks passed
@nfx nfx deleted the feat/add-design-for-separate-filter branch August 20, 2024 09:46
nfx added a commit that referenced this pull request Aug 26, 2024
* 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.
@nfx nfx mentioned this pull request Aug 26, 2024
nfx added a commit that referenced this pull request Aug 26, 2024
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants