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: save query should use the correct sql #16753

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

eschutho
Copy link
Member

SUMMARY

Currently, if you were to save a query without running it, the redux store does not update, and the save query button will save the old query. This updates the action to trigger the redux action in all cases.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

CleanShot.2021-09-15.at.13.22.55.mp4

After:

save.query.mov

TESTING INSTRUCTIONS

Write a query and then save it without hitting "run". Copy the link and paste it in a new window. The saved query should have the correct sql statement.

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

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

I think this is the 2nd or 3rd bug we've fixed by changing the order of dispatch vs. sync. Maybe we could update everything (in another PR)?

@yousoph
Copy link
Member

yousoph commented Sep 20, 2021

/testenv up

@github-actions
Copy link
Contributor

@yousoph Container image not yet published for this PR. Please try again when build is complete.

@github-actions
Copy link
Contributor

@yousoph Ephemeral environment creation failed. Please check the Actions logs for details.

@codecov
Copy link

codecov bot commented Sep 21, 2021

Codecov Report

Merging #16753 (0354152) into master (b92358b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #16753   +/-   ##
=======================================
  Coverage   76.98%   76.98%           
=======================================
  Files        1007     1007           
  Lines       54174    54175    +1     
  Branches     7463     7463           
=======================================
+ Hits        41708    41709    +1     
  Misses      12226    12226           
  Partials      240      240           
Flag Coverage Δ
javascript 71.30% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
superset-frontend/src/SqlLab/actions/sqlLab.js 59.10% <100.00%> (+0.08%) ⬆️

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 b92358b...0354152. Read the comment docs.

@eschutho
Copy link
Member Author

I think this is the 2nd or 3rd bug we've fixed by changing the order of dispatch vs. sync. Maybe we could update everything (in another PR)?

That's a good idea.

@eschutho
Copy link
Member Author

/testenv up

@github-actions
Copy link
Contributor

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

@eschutho eschutho merged commit f032cc2 into apache:master Sep 21, 2021
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@rosemarie-chiu
Copy link
Contributor

🏷 2021.38

stevenuray pushed a commit to preset-io/superset that referenced this pull request Sep 22, 2021
(cherry picked from commit f032cc2)
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.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:2021.38 preset-io size/M 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants