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

Skip to content

Conversation

@ZeRego
Copy link
Collaborator

@ZeRego ZeRego commented May 23, 2025

Related to: #14969

Description:

This PR updates the SQL chart tile metadata to include column type information. Previously, only column references were stored, but now we're storing both the reference and type for each column. This change ensures that dashboard filters have access to the correct column type information when configuring filters.

Key changes:

  • Updated SqlChartTileMetadata type to store ResultColumn objects (with reference and type) instead of just strings
  • Modified DashboardSqlChartTile to extract both reference and type from query dimensions
  • Updated filter configuration components to properly access column references from the new metadata structure

Reviewer actions

  • I have manually tested the changes in the preview environment
  • I have reviewed the code
  • I understand that "request changes" will block this PR from merging

@ZeRego ZeRego force-pushed the 05-22-chore_optional_field_in_getfilterrulewithdefaultvalue branch from 26fba7a to 715f7eb Compare May 23, 2025 14:02
@ZeRego ZeRego force-pushed the 05-23-chore_store_sql_column_type_in_dashboard_context branch from 78410c9 to 499bfb0 Compare May 23, 2025 14:02
@ZeRego ZeRego changed the title fix: update SQL chart column metadata to include type information chore: update SQL chart column metadata to include type information May 23, 2025
@ZeRego ZeRego requested a review from a team May 23, 2025 14:18
Copy link
Contributor

@pimmey pimmey left a comment

Choose a reason for hiding this comment

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

Let's get them filters going 🚀

@ZeRego ZeRego force-pushed the 05-23-chore_store_sql_column_type_in_dashboard_context branch from 499bfb0 to b868221 Compare May 23, 2025 15:59
@ZeRego ZeRego force-pushed the 05-22-chore_optional_field_in_getfilterrulewithdefaultvalue branch from 715f7eb to a2c5c1c Compare May 23, 2025 15:59
@ZeRego ZeRego force-pushed the 05-23-chore_store_sql_column_type_in_dashboard_context branch from b868221 to ef368be Compare May 23, 2025 16:10
@ZeRego ZeRego force-pushed the 05-22-chore_optional_field_in_getfilterrulewithdefaultvalue branch from a2c5c1c to 8677db3 Compare May 23, 2025 16:10
@ZeRego ZeRego force-pushed the 05-22-chore_optional_field_in_getfilterrulewithdefaultvalue branch from 8677db3 to b499a5f Compare May 23, 2025 17:33
@ZeRego ZeRego force-pushed the 05-23-chore_store_sql_column_type_in_dashboard_context branch from ef368be to afd6514 Compare May 23, 2025 17:33
Base automatically changed from 05-22-chore_optional_field_in_getfilterrulewithdefaultvalue to main May 24, 2025 07:46
@ZeRego ZeRego merged commit ca3baf1 into main May 24, 2025
5 checks passed
@ZeRego ZeRego deleted the 05-23-chore_store_sql_column_type_in_dashboard_context branch May 24, 2025 07:47
@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.

4 participants