Commit 7cb771e
fix: Strip module prefix correctly for Part tables in diagrams
Previously, Part table names like `scan.Scans.Scan` would display with
the full module prefix because the logic used rsplit(".", 1) which only
split at the last dot. This meant the prefix `scan.Scans` didn't match
the cluster label `scan`.
Now uses startswith() to check if the name begins with the cluster label,
then strips that prefix. This correctly displays Part tables as
`Scans.Scan` instead of `scan.Scans.Scan`.
Fixes #1390
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent a1ab055 commit 7cb771e
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
763 | | - | |
764 | | - | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
| 962 | + | |
| 963 | + | |
966 | 964 | | |
967 | 965 | | |
968 | 966 | | |
| |||
0 commit comments