Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ZeRego
Copy link
Collaborator

@ZeRego ZeRego commented May 23, 2025

Relates to: #14969

Description:

This PR enables dashboard filters for SQL charts by introducing a feature flag check for SqlChartDashboardFilters. The implementation replaces the hasChartTiles property with a more descriptive hasTilesThatSupportFilters that considers both saved charts and SQL charts (when the feature flag is enabled).

The dashboard filter component now renders based on whether there are tiles that support filtering, rather than just checking for the presence of chart tiles.

AI: I've created a pull request description that focuses on the key changes in the diff. The PR introduces a feature flag check for SQL chart dashboard filters and replaces the hasChartTiles property with a more descriptive hasTilesThatSupportFilters that considers both saved charts and SQL charts when the feature flag is enabled. The description is concise and explains the purpose of the changes without getting into unnecessary details about file structure or parameter updates.

With no tiles:
Screenshot 2025-05-23 at 15 37 44
With markdown tiles:
Screenshot 2025-05-23 at 15 37 57

With tiles of all types (including sql chart)
Screenshot 2025-05-23 at 15 37 27

With SQL chart tiles: (Can't do anything yet besides removing invalid filters)
Screenshot 2025-05-23 at 15 37 12

@ZeRego ZeRego requested a review from a team May 23, 2025 15:10
@ZeRego ZeRego changed the title feat: enable dashboard filters for SQL charts feat: show dashboard filters button when there are SQL charts May 23, 2025
@ZeRego ZeRego force-pushed the feat_enable_dashboard_filters_for_SQL_charts branch from e8c5f8a to c2a21d9 Compare May 23, 2025 15:59
@ZeRego ZeRego force-pushed the refactor_extract_getFilterTypeFromItemType_function branch from 06c0f19 to 5e2ca4f Compare May 23, 2025 15:59
@ZeRego ZeRego force-pushed the feat_enable_dashboard_filters_for_SQL_charts branch from c2a21d9 to 07555d9 Compare May 23, 2025 16:10
@ZeRego ZeRego force-pushed the refactor_extract_getFilterTypeFromItemType_function branch 2 times, most recently from 6ae17d0 to d4aaf23 Compare May 23, 2025 17:33
@ZeRego ZeRego force-pushed the feat_enable_dashboard_filters_for_SQL_charts branch 2 times, most recently from 4c5b83d to 83ecdab Compare May 24, 2025 07:49
@ZeRego ZeRego force-pushed the refactor_extract_getFilterTypeFromItemType_function branch from d4aaf23 to 79ea36e Compare May 24, 2025 07:49
@ZeRego ZeRego force-pushed the feat_enable_dashboard_filters_for_SQL_charts branch from 83ecdab to 07c1612 Compare May 24, 2025 08:08
@ZeRego ZeRego force-pushed the refactor_extract_getFilterTypeFromItemType_function branch from 79ea36e to 6ad247d Compare May 24, 2025 08:08
Base automatically changed from refactor_extract_getFilterTypeFromItemType_function to main May 24, 2025 08:23
@ZeRego ZeRego force-pushed the feat_enable_dashboard_filters_for_SQL_charts branch from 07c1612 to caef31c Compare May 24, 2025 08:25
@owlas owlas deployed to feat_enable_dashboard_filters_for_SQL_charts - jaffle_db_pg_13 PR #14991 May 24, 2025 08:25 — with Render Active
@owlas owlas temporarily deployed to feat_enable_dashboard_filters_for_SQL_charts - headless-browser PR #14991 May 24, 2025 08:25 — with Render Destroyed
@owlas owlas temporarily deployed to feat_enable_dashboard_filters_for_SQL_charts - lightdash PR #14991 May 24, 2025 08:26 — with Render Destroyed
@ZeRego ZeRego merged commit e293b92 into main May 25, 2025
61 of 66 checks passed
@ZeRego ZeRego deleted the feat_enable_dashboard_filters_for_SQL_charts branch May 25, 2025 12:52
lightdash-bot pushed a commit that referenced this pull request May 25, 2025
# [0.1650.0](0.1649.0...0.1650.0) (2025-05-25)

### Features

* enable dashboard filters for SQL charts ([#14991](#14991)) ([e293b92](e293b92))
@lightdash-bot
Copy link
Collaborator

🎉 This PR is included in version 0.1650.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants