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(database-import): Support importing a DB connection with a version set #26116

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

Vitor-Avila
Copy link
Contributor

SUMMARY

Add support for importing a DB connection with a version set.

TESTING INSTRUCTIONS

Unit test added for this case. To manually test it:

  1. Create a DB connection.
  2. Set a version for this connection in the ADVANCED tab, under the Other section.
  3. Export the DB connection.
  4. Import it.

ADDITIONAL INFORMATION

Copy link

codecov bot commented Nov 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (849ca64) 69.10% compared to head (15de153) 66.91%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #26116      +/-   ##
==========================================
- Coverage   69.10%   66.91%   -2.19%     
==========================================
  Files        1940     1940              
  Lines       75869    75870       +1     
  Branches     8445     8445              
==========================================
- Hits        52428    50768    -1660     
- Misses      21266    22927    +1661     
  Partials     2175     2175              
Flag Coverage Δ
hive ?
mysql 78.13% <100.00%> (-0.03%) ⬇️
postgres 78.25% <100.00%> (+<0.01%) ⬆️
presto ?
python 78.39% <100.00%> (-4.56%) ⬇️
sqlite 76.91% <100.00%> (+<0.01%) ⬆️
unit ?

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

This is great, thanks for the fix!

@betodealmeida betodealmeida merged commit c033ca9 into apache:master Dec 1, 2023
34 checks passed
@michael-s-molina
Copy link
Member

@Vitor-Avila shouldn't we fill the version when a new database connection is created from the interface?

@Vitor-Avila
Copy link
Contributor Author

@Vitor-Avila shouldn't we fill the version when a new database connection is created from the interface?

@michael-s-molina the field is visible in the connection dialog (in the ADVANCED tab under the Other section), however the field is not required. I know it's used for Presto and Dremio, but not all engine dialects have variations on the version value.

the issue was that an export for a connection with a version set couldn't be imported.
Let me know if you have any other questions!

@michael-s-molina michael-s-molina added v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch labels Dec 4, 2023
michael-s-molina pushed a commit that referenced this pull request Dec 4, 2023
michael-s-molina pushed a commit that referenced this pull request Dec 4, 2023
josedev-union pushed a commit to Ortege-xyz/studio that referenced this pull request Jan 22, 2024
@mistercrunch mistercrunch added 🍒 3.0.3 🍒 3.0.4 🍒 3.1.0 🍒 3.1.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Mar 8, 2024
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 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/S v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch 🍒 3.0.3 🍒 3.0.4 🍒 3.1.0 🍒 3.1.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants