fix(sqllab): default PostgreSQL port to 5432 in the dynamic connection form (#43351)

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Joe Li
2026-08-21 15:59:33 -07:00
committed by GitHub
co-authored by Claude Sonnet 5
parent 09bd8c98de
commit f2610e9dca
7 changed files with 385 additions and 7 deletions
@@ -491,6 +491,7 @@ def test_base_parameters_mixin():
"minimum": 0,
"maximum": 65536,
"description": "Database port",
"nullable": True,
},
"password": {"type": "string", "nullable": True, "description": "Password"},
"username": {"type": "string", "nullable": True, "description": "Username"},
@@ -504,7 +505,9 @@ def test_base_parameters_mixin():
"type": "boolean",
},
},
"required": ["database", "host", "port", "username"],
# ``port`` is intentionally not required: a blank port falls back to
# Postgres's own default (5432) in ``PostgresEngineSpec.build_sqlalchemy_uri``.
"required": ["database", "host", "username"],
}