You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2023/01/03 22:22:51 UTC
[superset] branch master updated (a7a4561550 -> ebaad10d6c)
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
from a7a4561550 fix(explore): support saving undefined time grain (#22565)
add ebaad10d6c feat(ssh-tunnelling): Setup SSH Tunneling Commands for Database Connections (#21912)
No new revisions were added by this update.
Summary of changes:
requirements/base.txt | 13 +-
setup.py | 1 +
superset/config.py | 24 +-
superset/constants.py | 1 +
superset/databases/api.py | 111 ++++++++
superset/databases/commands/create.py | 30 +-
superset/databases/commands/test_connection.py | 9 +-
superset/databases/commands/update.py | 35 ++-
superset/databases/dao.py | 11 +
superset/databases/schemas.py | 17 ++
.../ssh_tunnel}/__init__.py | 0
.../ssh_tunnel/commands}/__init__.py | 0
superset/databases/ssh_tunnel/commands/create.py | 92 ++++++
.../ssh_tunnel}/commands/delete.py | 27 +-
.../ssh_tunnel}/commands/exceptions.py | 33 ++-
.../ssh_tunnel}/commands/update.py | 56 ++--
.../databases/ssh_tunnel/dao.py | 11 +-
superset/databases/ssh_tunnel/models.py | 76 +++++
superset/db_engine_specs/base.py | 1 +
superset/db_engine_specs/postgres.py | 1 +
superset/extensions/__init__.py | 2 +
superset/extensions/ssh.py | 88 ++++++
superset/initialization/__init__.py | 5 +
...c2d8ec8595_create_ssh_tunnel_credentials_tbl.py | 89 ++++++
superset/models/core.py | 132 ++++++---
.../utils/ssh_tunnel.py | 23 +-
tests/conftest.py | 8 +-
tests/integration_tests/databases/api_tests.py | 310 +++++++++++++++++++++
.../databases/ssh_tunnel}/__init__.py | 0
.../databases/ssh_tunnel/commands}/__init__.py | 0
.../ssh_tunnel/commands/commands_tests.py | 76 +++++
tests/unit_tests/databases/api_test.py | 144 ++++++++++
.../unit_tests/databases/dao}/__init__.py | 0
.../{datasets => databases}/dao/dao_tests.py | 36 ++-
.../unit_tests/databases/ssh_tunnel}/__init__.py | 0
.../databases/ssh_tunnel/commands}/__init__.py | 0
.../databases/ssh_tunnel/commands/create_test.py | 68 +++++
.../ssh_tunnel/commands/delete_test.py} | 35 +--
.../databases/ssh_tunnel/commands/update_test.py | 93 +++++++
.../databases/ssh_tunnel/dao_tests.py} | 38 +--
40 files changed, 1516 insertions(+), 180 deletions(-)
copy superset/{advanced_data_type => databases/ssh_tunnel}/__init__.py (100%)
copy superset/{advanced_data_type => databases/ssh_tunnel/commands}/__init__.py (100%)
create mode 100644 superset/databases/ssh_tunnel/commands/create.py
copy superset/{annotation_layers/annotations => databases/ssh_tunnel}/commands/delete.py (67%)
copy superset/{temporary_cache => databases/ssh_tunnel}/commands/exceptions.py (53%)
copy superset/{annotation_layers => databases/ssh_tunnel}/commands/update.py (51%)
copy tests/unit_tests/fixtures/common.py => superset/databases/ssh_tunnel/dao.py (79%)
create mode 100644 superset/databases/ssh_tunnel/models.py
create mode 100644 superset/extensions/ssh.py
create mode 100644 superset/migrations/versions/2022-10-20_10-48_f3c2d8ec8595_create_ssh_tunnel_credentials_tbl.py
copy tests/example_data/data_loading/base_data_loader.py => superset/utils/ssh_tunnel.py (61%)
copy {superset/advanced_data_type => tests/integration_tests/databases/ssh_tunnel}/__init__.py (100%)
copy {superset/advanced_data_type => tests/integration_tests/databases/ssh_tunnel/commands}/__init__.py (100%)
create mode 100644 tests/integration_tests/databases/ssh_tunnel/commands/commands_tests.py
copy {superset/advanced_data_type => tests/unit_tests/databases/dao}/__init__.py (100%)
copy tests/unit_tests/{datasets => databases}/dao/dao_tests.py (68%)
copy {superset/advanced_data_type => tests/unit_tests/databases/ssh_tunnel}/__init__.py (100%)
copy {superset/advanced_data_type => tests/unit_tests/databases/ssh_tunnel/commands}/__init__.py (100%)
create mode 100644 tests/unit_tests/databases/ssh_tunnel/commands/create_test.py
copy tests/unit_tests/{datasets/dao/dao_tests.py => databases/ssh_tunnel/commands/delete_test.py} (68%)
create mode 100644 tests/unit_tests/databases/ssh_tunnel/commands/update_test.py
copy tests/{integration_tests/log_model_view_tests.py => unit_tests/databases/ssh_tunnel/dao_tests.py} (55%)