Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ssh): Editting Database w/ SSH Tunneling #24552

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Jun 29, 2023

SUMMARY

User's aren't able to update/edit ssh tunnel setting for any DBs inside superset. This PR fixes the API to first establish the ssh tunnel before doing a test connection.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Merging #24552 (2d93b60) into master (38df1a8) will increase coverage by 0.00%.
The diff coverage is 50.00%.

❗ Current head 2d93b60 differs from pull request most recent head 223ae36. Consider uploading reports for the commit 223ae36 to get more accurate results

@@           Coverage Diff           @@
##           master   #24552   +/-   ##
=======================================
  Coverage   69.08%   69.08%           
=======================================
  Files        1906     1906           
  Lines       74114    74115    +1     
  Branches     8155     8155           
=======================================
+ Hits        51200    51201    +1     
  Misses      20795    20795           
  Partials     2119     2119           
Flag Coverage Δ
hive 53.92% <0.00%> (-0.01%) ⬇️
mysql 79.40% <50.00%> (+<0.01%) ⬆️
postgres 79.48% <50.00%> (+<0.01%) ⬆️
presto 53.82% <0.00%> (-0.01%) ⬇️
python 83.48% <50.00%> (+<0.01%) ⬆️
sqlite 78.04% <15.00%> (+<0.01%) ⬆️
unit 54.69% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/databases/commands/update.py 74.44% <50.00%> (+0.28%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@michael-s-molina
Copy link
Member

@hughhhh Can you add a description explaining the PR?

Copy link
Member

@Antonio-RiveroMartnez Antonio-RiveroMartnez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hughhhh hughhhh merged commit d041648 into apache:master Jul 6, 2023
32 checks passed
@hughhhh hughhhh deleted the ssh-edit branch July 6, 2023 19:43
@sadpandajoe
Copy link
Contributor

🏷️ preset:2023.27

sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Jul 6, 2023
@eschutho
Copy link
Member

eschutho commented Jul 6, 2023

@hughhhh can you add a test for this change too?

@michael-s-molina michael-s-molina added the v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch label Jul 7, 2023
michael-s-molina pushed a commit that referenced this pull request Jul 26, 2023
@mistercrunch mistercrunch added 🍒 3.0.0 🍒 3.0.1 🍒 3.0.2 🍒 3.0.3 🍒 3.0.4 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.1.0 labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch 🍒 3.0.0 🍒 3.0.1 🍒 3.0.2 🍒 3.0.3 🍒 3.0.4 🚢 3.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants