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 modal crashed when use SQLAlchemy URI string #21342

Merged
merged 2 commits into from
Sep 6, 2022

Conversation

zhaoyongjie
Copy link
Member

@zhaoyongjie zhaoyongjie commented Sep 6, 2022

SUMMARY

This PR intend to fix an issue from a previous #20095 raised and the PR has reverted by #21277.

Compared with the original PR, only 1 commit has been added. This issue is caused by the translation key cannot find.

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

prosdev0107 and others added 2 commits September 6, 2022 19:22
…pache#20095)

* fix(database): make to display validation error msg when all cases

* fix(db): make to update the alert error condition

* fix(db): make to add error detail display

* fix(db): make to update error alert display by superset error style guide.

* fix(db): make to style modal header title with h4

* fix(db): make to place see more on bottom instead of top

* fix(db): make to fix shortly

* fix(db): make to fix lint issue

Co-authored-by: Evan Rusackas <evan@preset.io>
@zhaoyongjie zhaoyongjie marked this pull request as ready for review September 6, 2022 11:38
Comment on lines 1158 to 1160
description={t(alertErrors[0])}
subtitle={t(validationErrors?.description)}
copyText={t(validationErrors?.description)}
description={alertErrors[0]}
subtitle={validationErrors?.description}
copyText={validationErrors?.description}
Copy link
Member Author

Choose a reason for hiding this comment

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

the error message should translate on the backend.

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

@codecov
Copy link

codecov bot commented Sep 6, 2022

Codecov Report

Merging #21342 (bbdc3bd) into master (f71ee2e) will increase coverage by 0.09%.
The diff coverage is 41.66%.

@@            Coverage Diff             @@
##           master   #21342      +/-   ##
==========================================
+ Coverage   66.45%   66.55%   +0.09%     
==========================================
  Files        1789     1790       +1     
  Lines       68291    68316      +25     
  Branches     7273     7281       +8     
==========================================
+ Hits        45382    45466      +84     
+ Misses      21034    20973      -61     
- Partials     1875     1877       +2     
Flag Coverage Δ
javascript 52.68% <41.66%> (+0.20%) ⬆️

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

Impacted Files Coverage Δ
...onents/ErrorMessage/ErrorMessageWithStackTrace.tsx 60.00% <ø> (ø)
...c/views/CRUD/data/database/DatabaseModal/index.tsx 32.28% <12.50%> (+0.24%) ⬆️
...rontend/src/components/ErrorMessage/ErrorAlert.tsx 90.24% <100.00%> (+0.77%) ⬆️
...cy-preset-chart-nvd3/src/TimePivot/controlPanel.ts 33.33% <0.00%> (-16.67%) ⬇️
...rontend/src/views/CRUD/dashboard/DashboardList.tsx 56.60% <0.00%> (-0.54%) ⬇️
...perset-frontend/src/views/CRUD/chart/ChartList.tsx 58.97% <0.00%> (-0.16%) ⬇️
...end/src/dashboard/components/dnd/DragDroppable.jsx 76.92% <0.00%> (ø)
...aseModal/DatabaseConnectionForm/EncryptedField.tsx 10.00% <0.00%> (ø)
...ashboard/components/gridComponents/ChartHolder.jsx
...ashboard/components/gridComponents/ChartHolder.tsx 88.88% <0.00%> (ø)
... and 13 more

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

@zhaoyongjie zhaoyongjie merged commit d130b4a into apache:master Sep 6, 2022
@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 size/M 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants