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: No back button in save dataset modal #20964

Conversation

AAfghahi
Copy link
Member

@AAfghahi AAfghahi commented Aug 3, 2022

SUMMARY

We only want the back button to appear when a user has already selected the dataset that they are going to over write and are in the confirmation portion of the model.

This adds a line of logic to get to that effect.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2022-08-03.at.3.55.19.PM.mov

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

@hughhhh hughhhh self-requested a review August 3, 2022 19:59
@codecov
Copy link

codecov bot commented Aug 3, 2022

Codecov Report

Merging #20964 (e93da34) into master (655646d) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head e93da34 differs from pull request most recent head 0ee1a02. Consider uploading reports for the commit 0ee1a02 to get more accurate results

@@            Coverage Diff             @@
##           master   #20964      +/-   ##
==========================================
- Coverage   66.38%   66.37%   -0.01%     
==========================================
  Files        1766     1767       +1     
  Lines       67225    67231       +6     
  Branches     7137     7138       +1     
==========================================
  Hits        44625    44625              
- Misses      20774    20779       +5     
- Partials     1826     1827       +1     
Flag Coverage Δ
javascript 52.10% <0.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...d/src/SqlLab/components/SaveDatasetModal/index.tsx 49.42% <0.00%> (-0.58%) ⬇️
superset-frontend/src/views/App.tsx 0.00% <ø> (ø)
superset-frontend/src/views/ScrollToTop.tsx 0.00% <0.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Copy link
Member

@lyndsiWilliams lyndsiWilliams left a comment

Choose a reason for hiding this comment

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

Please update the test in SaveDatasetModal.test.tsx to reflect this change.

@AAfghahi AAfghahi force-pushed the arash.afghahi/sc-54452/sql-lab-back-button-on-save-overwrite-modal branch from 3bad98c to 0ee1a02 Compare August 3, 2022 21:04
@pull-request-size pull-request-size bot added size/S and removed size/XS labels Aug 3, 2022
Copy link
Member

@lyndsiWilliams lyndsiWilliams left a comment

Choose a reason for hiding this comment

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

Thank you! Just a note for the PR: We'll be meeting later in the week so we can figure out how to separate that final test properly.

@hughhhh hughhhh merged commit eb5369f into master Aug 4, 2022
jinghua-qa pushed a commit to preset-io/superset that referenced this pull request Aug 4, 2022
* back button fix

* fixed test

(cherry picked from commit eb5369f)
@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
@mistercrunch mistercrunch deleted the arash.afghahi/sc-54452/sql-lab-back-button-on-save-overwrite-modal branch March 26, 2024 16:07
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:2022.31 size/S 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants