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(db): Show the only db install guide when the db is already installed and error is existed while importing file. #20442

Merged
merged 2 commits into from
Jun 28, 2022

Conversation

prosdev0107
Copy link
Contributor

SUMMARY

Add error message when user tries to import without having db driver installed

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE:
image

AFTER:
image

TESTING INSTRUCTIONS

  1. Import a file (dashboard, chart, dataset, database) that contains a database where the user doesn't have the database driver installed

  2. Current behavior:
    The db driver is installed and the error has nothing to do with the database, so the user getting this error text doesn't make sense.

  3. Expected behavior:
    User sees an error message when they don't have the db driver installed

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 20, 2022

Codecov Report

Merging #20442 (5fff274) into master (b7eb235) will decrease coverage by 0.00%.
The diff coverage is 33.33%.

❗ Current head 5fff274 differs from pull request most recent head fd81271. Consider uploading reports for the commit fd81271 to get more accurate results

@@            Coverage Diff             @@
##           master   #20442      +/-   ##
==========================================
- Coverage   66.58%   66.58%   -0.01%     
==========================================
  Files        1738     1738              
  Lines       65162    65163       +1     
  Branches     6895     6896       +1     
==========================================
  Hits        43387    43387              
- Misses      20026    20027       +1     
  Partials     1749     1749              
Flag Coverage Δ
javascript 51.76% <33.33%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...rset-frontend/src/components/ImportModal/index.tsx 73.17% <0.00%> (ø)
...frontend/src/components/ImportModal/ErrorAlert.tsx 33.33% <50.00%> (-6.67%) ⬇️

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 b7eb235...fd81271. Read the comment docs.

@yousoph
Copy link
Member

yousoph commented Jun 23, 2022

/testenv up

@github-actions
Copy link
Contributor

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

Copy link
Member

@stephenLYZ stephenLYZ left a comment

Choose a reason for hiding this comment

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

LGTM!

@stephenLYZ stephenLYZ merged commit 23e62d3 into apache:master Jun 28, 2022
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

michael-s-molina pushed a commit that referenced this pull request Jun 28, 2022
…led and error is existed while importing file. (#20442)

* fix(db): make to show the db error msg when db installed and error is exist

* fix(db): make to replace dbinstall str into showDbInstallInstructions

(cherry picked from commit 23e62d3)
michael-s-molina pushed a commit that referenced this pull request Jun 28, 2022
…led and error is existed while importing file. (#20442)

* fix(db): make to show the db error msg when db installed and error is exist

* fix(db): make to replace dbinstall str into showDbInstallInstructions

(cherry picked from commit 23e62d3)
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 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-Patch size/M v2.0 🍒 2.0.0 🍒 2.0.1 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants