CI caught two sibling test-expectation staleness issues missed in the prior
local round (a marshmallow==3.26.2/apispec==6.10.0 local mismatch vs. this
repo's pinned marshmallow==4.3.0/apispec==6.6.1 masked one of them):
- tests/integration_tests/databases/api_tests.py::test_available has its own
hardcoded /api/v1/database/available/ snapshot; its PostgreSQL entry still
listed port as required and was missing port's nullable:true.
- tests/integration_tests/db_engine_specs/postgres_tests.py::
test_base_parameters_mixin asserted a top-level additionalProperties:False
that PostgresEngineSpec.parameters_json_schema() does not actually
produce under the pinned marshmallow/apispec versions.
Verified both fixes against the pinned versions installed locally, plus a
full regression pass of the previously-touched integration test files.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* feat: cancel db query on stop
* fix pylint
* Add unit tests
* Do not bind multiple times
* Stop only running queries
* Postgres to cancel only the required query
* Remove extra log
* Add docstring
* Better types, docstring and naming
* Use python3 format strings
* Update superset/sql_lab.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* Add cancel_query_on_windows_unload option to database
* Return cancel_query as bool
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>