Skip to content

refactor(erd): ErdView takes an ErdSource only (#1147) - #1196

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1147-erd-source
Oct 9, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1147-erd-source

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Refs #1147

Changes

  • ErdView takes an ErdSource only. The delegate and dialect pair is gone; the SQL workspace's Diagram tab passes SqlErdSource(delegate, dialect). The table browser already passed its own source.
  • The tests build the same SqlErdSource.

Already on dev before this PR

  • ErdSource with loadSchema and loadNeighbourhood, and SqlErdSource / TableDataSqlAdapter (table browser's own session).
  • Schema-aware catalog: other PostgreSQL schemas are named schema.table; the foreign-key query covers all user schemas.
  • Neighbourhood loads only the needed tables; cycles and self references are tested.
  • Extension SQL workspaces have no Diagram button (showDiagram: false).

Not in this PR

  • ErdTable.schema and an ErdTableRef type. Schema qualification is still carried inside the name string (schema.table), so a table name containing a dot is still ambiguous. This is why the issue stays open.
  • loadSchema({String? schema}): the source has no schema argument yet.

The Diagram tab of the SQL workspace passes its delegate and dialect as a
SqlErdSource, so ErdView no longer carries a delegate and dialect pair next
to the source. The table browser already passes its own source; the tests
build the same SqlErdSource.
@github-actions github-actions Bot added enhancement New feature or request frontend Theme parser epic label: frontend core Core library logic and services P2 Medium priority / Parity & Refactoring labels Oct 9, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 02615f3 into dev Oct 9, 2026
14 checks passed
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

Grid scroll benchmark

metric base PR change
p50 16.94 ms 14.02 ms -17.2%
p90 22.31 ms 23.45 ms +5.1% ⚠️
p99 47.65 ms 54.74 ms +14.9% ⚠️
stutters 298.00 298.00 +0.0%

Informational only (threshold 5%). Shared CI runners are noisy; re-run before trusting a single result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core library logic and services enhancement New feature or request frontend Theme parser epic label: frontend P2 Medium priority / Parity & Refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant