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

feat: add/edit database modal form sections UI #10745

Merged
merged 20 commits into from
Sep 11, 2020

Conversation

riahk
Copy link
Contributor

@riahk riahk commented Aug 31, 2020

SUMMARY

  • Add UI for all modal tab sections
  • Update buttons on AntD Modal
  • Adds useSingleViewResource hook for get/post/put functionality

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2020-09-04 at 11 52 00 AM

Screen Shot 2020-08-31 at 2 18 51 PM

Screen Shot 2020-08-31 at 2 19 03 PM

Screen Shot 2020-08-31 at 2 19 12 PM

Screen Shot 2020-08-31 at 2 19 22 PM

TEST PLAN

  • Update DatabaseModal_spec.jsx

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@riahk riahk force-pushed the moriah/db-modal-forms branch 2 times, most recently from 8ed4b70 to 3fb83c8 Compare September 2, 2020 23:46
@pull-request-size pull-request-size bot added size/XL and removed size/L labels Sep 2, 2020
@codecov-commenter
Copy link

codecov-commenter commented Sep 2, 2020

Codecov Report

Merging #10745 into master will decrease coverage by 4.16%.
The diff coverage is 48.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10745      +/-   ##
==========================================
- Coverage   65.49%   61.33%   -4.17%     
==========================================
  Files         803      803              
  Lines       37931    38044     +113     
  Branches     3561     3605      +44     
==========================================
- Hits        24843    23334    -1509     
- Misses      12982    14524    +1542     
- Partials      106      186      +80     
Flag Coverage Δ
#cypress ?
#javascript 61.59% <48.46%> (+<0.01%) ⬆️
#python 61.18% <ø> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
superset-frontend/src/common/components/Modal.tsx 93.75% <ø> (ø)
superset-frontend/src/common/components/Tabs.tsx 100.00% <ø> (+40.00%) ⬆️
superset/databases/commands/test_connection.py 94.73% <ø> (ø)
superset-frontend/src/views/CRUD/hooks.ts 68.53% <45.16%> (-24.57%) ⬇️
...end/src/views/CRUD/data/database/DatabaseModal.tsx 60.76% <49.43%> (+7.06%) ⬆️
...tend/src/views/CRUD/data/database/DatabaseList.tsx 82.05% <50.00%> (-4.91%) ⬇️
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
... and 166 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 e4ffaec...fa434ad. Read the comment docs.

@mistercrunch
Copy link
Member

The "Test Connection" button on the screenshot looks out-of-theme. On the source side it looks normal though, I'm unclear why.

@willbarrett willbarrett requested a review from nytai September 3, 2020 22:49
Copy link
Member

@nytai nytai left a comment

Choose a reason for hiding this comment

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

A couple things stand out to me after a first pass. Overall, looks good though, I like the use of hooks and thanks for adding tests.

@nytai
Copy link
Member

nytai commented Sep 3, 2020

@mistercrunch It seems the recent button work yielded this slightly taller CTA button. I'm guessing somewhere in the consolidation we inherited some extra styling on this flavor of button.

@riahk riahk requested a review from nytai September 4, 2020 21:17
Copy link
Member

@lilykuang lilykuang left a comment

Choose a reason for hiding this comment

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

LGTM

@riahk riahk force-pushed the moriah/db-modal-forms branch 2 times, most recently from d58af92 to 6c24371 Compare September 9, 2020 17:56
@willbarrett
Copy link
Member

@riahk looks like this needs a rebase

@riahk riahk force-pushed the moriah/db-modal-forms branch from 6c24371 to fa434ad Compare September 10, 2020 01:41
@riahk riahk force-pushed the moriah/db-modal-forms branch from a2e97bb to 5183cd5 Compare September 10, 2020 21:17
Copy link
Member

@nytai nytai left a comment

Choose a reason for hiding this comment

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

lgtm, just one (optional) suggestion.

@nytai nytai merged commit 7cd96ed into apache:master Sep 11, 2020
@nytai nytai deleted the moriah/db-modal-forms branch September 11, 2020 16:53
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.38.0 labels Mar 12, 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/XL 🚢 0.38.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants