You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR introduces a comprehensive lineage visualization feature that allows users to explore data relationships across datasets, charts, and dashboards using interactive Sankey diagrams.
Three Lineage Perspectives:
Dataset Lineage: Shows upstream database and downstream charts/dashboards that use the dataset
Chart Lineage: Displays the complete data pipeline from database → dataset → chart → dashboards
Dashboard Lineage: Reveals all upstream databases, datasets, and charts feeding into a dashboard
Implementation:
Backend: Three new REST API endpoints (/api/v1/lineage/{dataset|chart|dashboard}/<id>) with proper permissions and comprehensive unit tests
Frontend: LineageView component with ECharts Sankey chart, API hooks, and LineageModal for reusable display across the application
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
lineage-demo.mp4
TESTING INSTRUCTIONS
View Dataset Lineage:
Navigate to Data → Datasets
Click on any dataset to open the edit dialog
Click the Lineage tab
Verify you see a Sankey diagram showing the database, dataset, and all charts/dashboards using it
Click on any node in the diagram and verify details appear at the bottom
Click Close to dismiss the details panel
View Chart Lineage:
Navigate to Charts
Click the three-dot menu (⋮) on any chart card
Select View Lineage
Verify the modal shows the data flow: database → dataset → chart → dashboards
Click on the chart node and click Open Chart to verify navigation works
Alternatively, open any chart in Explore view, click the header menu (⋮), and select View Lineage
View Dashboard Lineage:
Navigate to Dashboards
In dashboard edit mode, click the three-dot menu (⋮) on any dashboard card
Select View Lineage
Verify the diagram shows all databases, datasets, and charts feeding into the dashboard
Click on a dashboard node and click Open Dashboard to verify navigation
Alternatively, open any dashboard, click the header menu (⋮), and select View Lineage
Test Interactive Features:
Click different nodes and verify the details panel updates with correct information
Verify database and dataset nodes show only a Close button
Verify chart and dashboard nodes show both Open and Close buttons
Verify the legend at the top matches the node colors in the diagram
❌ Patch coverage is 70.62147% with 52 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.61%. Comparing base (e10237f) to head (c2c78b8). ⚠️ Report is 11 commits behind head on master.
Thank you for this excellent feature, @qf-jonathan! 🙏 I've adopted it in #40912 (on the origin repo) with you credited as co-author. It's the same lineage feature, rebased onto current master with the conflicts resolved and updated for drift since February — the lineage imports moved from the removed @apache-superset/core/ui to /translation + /theme, and the dataset lineage tab was re-applied onto the now-TypeScript DatasourceEditor. Closing this in favor of #40912.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
This PR introduces a comprehensive lineage visualization feature that allows users to explore data relationships across datasets, charts, and dashboards using interactive Sankey diagrams.
Three Lineage Perspectives:
Implementation:
/api/v1/lineage/{dataset|chart|dashboard}/<id>) with proper permissions and comprehensive unit testsBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
lineage-demo.mp4
TESTING INSTRUCTIONS
View Dataset Lineage:
View Chart Lineage:
View Dashboard Lineage:
Test Interactive Features:
ADDITIONAL INFORMATION