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: select database fix #16472

Merged
merged 2 commits into from
Aug 31, 2021

Conversation

AAfghahi
Copy link
Member

@AAfghahi AAfghahi commented Aug 26, 2021

SUMMARY

This fixes the issue where the first database in the select database list shows undefined for its backend.

The reason that this issue was occurring is that backend is not available on the first render, which is why there is a placeholder.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
Clipboard 2021-26-08 at 6 19 20 PM

After:
Screen Shot 2021-08-26 at 4 54 03 PM

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 Aug 26, 2021

Codecov Report

Merging #16472 (6f5c20a) into master (ac1d779) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #16472   +/-   ##
=======================================
  Coverage   76.61%   76.61%           
=======================================
  Files        1002     1002           
  Lines       53671    53674    +3     
  Branches     6857     6857           
=======================================
+ Hits        41121    41124    +3     
  Misses      12311    12311           
  Partials      239      239           
Flag Coverage Δ
hive 81.26% <100.00%> (+<0.01%) ⬆️
mysql 81.52% <100.00%> (+<0.01%) ⬆️
postgres 81.55% <100.00%> (+<0.01%) ⬆️
presto 81.32% <100.00%> (+<0.01%) ⬆️
python 82.06% <100.00%> (+<0.01%) ⬆️
sqlite 81.19% <100.00%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
superset/views/core.py 75.34% <100.00%> (+0.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ac1d779...6f5c20a. Read the comment docs.

@yousoph
Copy link
Member

yousoph commented Aug 26, 2021

/testenv up

@github-actions
Copy link
Contributor

@yousoph Ephemeral environment spinning up at http://34.222.20.224:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@yousoph
Copy link
Member

yousoph commented Aug 26, 2021

/testenv up

@github-actions
Copy link
Contributor

@yousoph Ephemeral environment spinning up at http://54.184.0.64:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix! We may want to clean up some of these methods at some point, as we seem to have multiple different codepaths to get more or less the same data (see e.g. Database.data() which has essentially the same data but slightly different property names)

@AAfghahi
Copy link
Member Author

@villebro yeah that has been in our backlog for a while

@betodealmeida betodealmeida merged commit e246916 into apache:master Aug 31, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@jinghua-qa
Copy link
Member

🏷 2021.34

stevenuray pushed a commit to preset-io/superset that referenced this pull request Aug 31, 2021
* select database fix

* made a backend change

(cherry picked from commit e246916)
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
* select database fix

* made a backend change
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
* select database fix

* made a backend change
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.0 labels Mar 13, 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 preset:2021.34 size/XS 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants