Merges duplicate @superset-ui/core/components import, replaces direct
window.location navigation with the redirect() helper and drops the
hard-coded /superset/ dashboard path per navigationUtils invariants,
and fixes new drill_info RBAC tests calling insert_dataset() with a
nonexistent owners kwarg instead of editor_user_ids.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Wrap untranslated "Details" JSX text in t() (fixes pre-commit custom
rules + babel-extract regression)
- Filter dataset/chart/dashboard lineage endpoints by the current user's
permissions so they never expose charts, dashboards, or datasource
metadata the user cannot access (mirrors existing related_objects /
get_datasets redaction patterns)
- Register DashboardLineageResponseSchema in openapi_spec_component_schemas
to resolve the dangling $ref in the generated API spec
- Key Sankey graph nodes and the node-details map by a stable unique
identity (type:id) so entities sharing a display name no longer collapse
into a single node; keep the human-readable title as a separate label
- Add a skip mechanism to useApiV1Resource / lineage hooks so empty-id
callers (e.g. LineageModal) no longer fire requests against invalid
endpoints like /api/v1/chart//lineage
- Defer the dataset edit page lineage fetch until the Lineage tab is active
- Make "View lineage" available in dashboard view mode, not only edit mode
- Compare data["result"] in lineage integration tests to match the
result-wrapped API contract
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adopts #37701 by @qf-jonathan. Adds interactive Sankey-based lineage that shows
the data relationships for a dataset, chart, or dashboard: three REST endpoints
(/api/v1/lineage/{dataset|chart|dashboard}/<id>) plus a LineageView/LineageModal
frontend surfaced from the dataset editor and the chart/dashboard menus.
Rebased onto current master and updated for drift since the original branch:
- repointed lineage imports from the removed '@apache-superset/core/ui' to
'@apache-superset/core/translation' and '/theme'
- re-applied the dataset lineage tab onto the migrated (TypeScript) DatasourceEditor
Closes#37701
Co-authored-by: Jonathan Alberth Quispe Fuentes <qf.jonathan@gmail.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>