Skip to content

fix(connections): improve PostgreSQL connection UX and error typing - #263

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/255-256-259-postgres-connection-ux
Jul 10, 2026
Merged

fix(connections): improve PostgreSQL connection UX and error typing#263
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/255-256-259-postgres-connection-ux

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #255
Closes #256
Closes #259

Summary

Follow-up P2 fixes for PostgreSQL connection handling: keep display metadata for URI-only rows, type connection errors, and make the pool wrap factory failures consistently.

Changes

  • Extract host and port from the PostgreSQL URI so the connection tree shows meaningful info for URI-only rows.
  • connect() now throws PostgresConnectionException with the original cause and stack trace preserved.
  • PostgresConnectionPool.acquire rethrows PostgresConnectionException unchanged and wraps unexpected factory errors in the same typed exception.

Test plan

  • flutter test test/core/database/postgres_connection_test.dart
  • flutter test test/core/database/postgres_connection_pool_test.dart
  • flutter test test/features/postgresql/postgresql_connection_form_test.dart

@github-actions github-actions Bot added bug Something isn't working enhancement New feature or request labels Jul 10, 2026
…255, #256, #259)

- Extract host and port from the connection URI so URI-only PostgreSQL rows
  show meaningful metadata in the sidebar.
- Throw PostgresConnectionException from connect() with original cause and
  stack trace preserved.
- Wrap unexpected factory failures in PostgresConnectionPool.acquire and
  rethrow typed PostgreSQL exceptions unchanged.
- Update tests for exception fields, typed connect errors, pool wrapping,
  and URI-derived display metadata.
@ZhuchkaTriplesix
ZhuchkaTriplesix force-pushed the issue/255-256-259-postgres-connection-ux branch from c840b63 to 5b86b2e Compare July 10, 2026 09:01
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit e992cbe into dev Jul 10, 2026
4 checks passed
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jul 12, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/255-256-259-postgres-connection-ux branch July 26, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant