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
@@ -3516,6 +3516,7 @@ class TestDatabaseApi(SupersetTestCase):
"description": "Database port",
"maximum": 65536,
"minimum": 0,
"nullable": True,
"type": "integer",
},
"query": {
@@ -3533,7 +3534,10 @@ class TestDatabaseApi(SupersetTestCase):
"type": "string",
},
},
"required": ["database", "host", "port", "username"],
# ``port`` is intentionally not required: a blank port falls
# back to the default (5432) in
# ``PostgresEngineSpec.build_sqlalchemy_uri``.
"required": ["database", "host", "username"],
"type": "object",
},
"preferred": True,