Repository navigation
feat(erd): show primary keys and relationship columns in generated diagram #45786
shubhamjrd4559-sudo
started this conversation in
Ideas
Replies: 1 comment
|
I’d be happy to work on this if the maintainers consider it a good fit. Please let me know if there are any design preferences or scope adjustments before I start. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
The generated PlantUML ERD lists model fields and their types and draws relationships between tables. It does not identify primary-key columns or show which columns connect related tables. Readers must inspect the model definitions to understand key fields and join paths.
Proposed solution
Enhance the existing ERD generation data and PlantUML template to:
Context
Superset already has ERD generation tooling in
scripts/erd/erd.pyand a PlantUML template. The generator currently collects column names and types and renders table-level relationships. This proposal builds on that tooling to make the generated diagram more useful to developers.Expected result
The generated ERD makes primary keys and join paths easier to understand without requiring readers to inspect each model definition.
Scope
This is a developer documentation and tooling improvement. It does not change Superset runtime behavior or database schemas.
Validation
All reactions