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

chore: simplify error messaging in database modal #19165

Merged
merged 21 commits into from
Apr 21, 2022

Conversation

pkdotson
Copy link
Member

@pkdotson pkdotson commented Mar 16, 2022

SUMMARY

This pr removes the error alert popup in the database modal when the inline message and dberror are the same. This pr also fixes a bug where user can connect to db without name and or uri.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2022-03-30 at 4 34 09 PM

Screen Shot 2022-03-30 at 4 32 47 PM

TESTING INSTRUCTIONS

Go to database modal for googlesheet and try to create error mesages by either not including the name or correct uri.

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

@pkdotson pkdotson changed the title WIP: simplify error messaging in database modal chore(WIP): simplify error messaging in database modal Mar 16, 2022
@pkdotson
Copy link
Member Author

/testenv up

@github-actions
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Mar 31, 2022

Codecov Report

Merging #19165 (1439bc7) into master (fa68036) will decrease coverage by 0.18%.
The diff coverage is 12.50%.

❗ Current head 1439bc7 differs from pull request most recent head 37b500b. Consider uploading reports for the commit 37b500b to get more accurate results

@@            Coverage Diff             @@
##           master   #19165      +/-   ##
==========================================
- Coverage   66.54%   66.36%   -0.19%     
==========================================
  Files        1692     1691       -1     
  Lines       64807    64778      -29     
  Branches     6661     6651      -10     
==========================================
- Hits        43129    42991     -138     
- Misses      19978    20087     +109     
  Partials     1700     1700              
Flag Coverage Δ
hive ?
mysql 81.90% <ø> (ø)
postgres 81.94% <ø> (ø)
presto ?
python 82.03% <ø> (-0.34%) ⬇️
sqlite 81.71% <ø> (ø)
unit ?

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

Impacted Files Coverage Δ
...abaseModal/DatabaseConnectionForm/TableCatalog.tsx 10.00% <ø> (ø)
superset-frontend/src/views/CRUD/hooks.ts 46.15% <0.00%> (-0.26%) ⬇️
superset/db_engine_specs/gsheets.py 75.51% <ø> (ø)
...c/views/CRUD/data/database/DatabaseModal/index.tsx 32.51% <14.28%> (+0.34%) ⬆️
superset/db_engines/hive.py 0.00% <0.00%> (-85.19%) ⬇️
superset/db_engine_specs/hive.py 70.11% <0.00%> (-15.71%) ⬇️
...-frontend/src/components/CronPicker/CronPicker.tsx 85.71% <0.00%> (-14.29%) ⬇️
...CRUD/alert/components/AlertReportCronScheduler.tsx 76.92% <0.00%> (-10.58%) ⬇️
superset/db_engine_specs/presto.py 83.36% <0.00%> (-5.34%) ⬇️
...d/src/dashboard/components/gridComponents/Tabs.jsx 78.65% <0.00%> (-3.91%) ⬇️
... and 25 more

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 fa68036...37b500b. Read the comment docs.

@pkdotson pkdotson changed the title chore(WIP): simplify error messaging in database modal chore: simplify error messaging in database modal Mar 31, 2022
@pkdotson pkdotson closed this Apr 1, 2022
@pkdotson pkdotson reopened this Apr 1, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2022

Ephemeral environment shutdown and build artifacts deleted.

@pkdotson
Copy link
Member Author

pkdotson commented Apr 1, 2022

/testenv up

1 similar comment
@yousoph
Copy link
Member

yousoph commented Apr 1, 2022

/testenv up

@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2022

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

@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2022

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

@@ -34,7 +34,6 @@ export const TableCatalog = ({
}: FieldPropTypes) => {
const tableCatalog = db?.catalog || [];
const catalogError = validationErrors || {};

Copy link
Member

Choose a reason for hiding this comment

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

nit: Could we add this space back since it is the only change in this file.

Copy link
Member Author

Choose a reason for hiding this comment

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

yep

@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 18, 2022
@yousoph
Copy link
Member

yousoph commented Apr 20, 2022

/testenv up

@github-actions
Copy link
Contributor

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

@hughhhh hughhhh merged commit ad71542 into apache:master Apr 21, 2022
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

hughhhh pushed a commit to hve-labs/superset that referenced this pull request May 11, 2022
* testing for dbconn modal error message

* remove consoles and error alert mapping

* lint fix

* update url message

* add modal fix

* update comments

* fix err msg bugs

* fix pylint

* fix line

* fix tests

* fix assertions
philipher29 pushed a commit to ValtechMobility/superset that referenced this pull request Jun 9, 2022
* testing for dbconn modal error message

* remove consoles and error alert mapping

* lint fix

* update url message

* add modal fix

* update comments

* fix err msg bugs

* fix pylint

* fix line

* fix tests

* fix assertions
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.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-io size/L 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants