mirror of
https://github.com/apache/superset.git
synced 2026-09-01 21:11:28 +00:00
fix(sqllab): default PostgreSQL port to 5432 in the dynamic connection form
This commit is contained in:
@@ -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,10 @@ 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"],
|
||||
"additionalProperties": False,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user