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: ensure known dashboard id is used in save first #16998

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

pkdotson
Copy link
Member

@pkdotson pkdotson commented Oct 7, 2021

SUMMARY

This pr fixes an issue where the user will get save selection for the wrong dashboard in save chart modal.

after

Screen.Recording.2021-10-06.at.4.57.42.PM.mov

TESTING INSTRUCTIONS

Go to dashboard and change controls and hit run. Ensure that dashboard is the dashboard the chart is saving from

ADDITIONAL INFORMATION

@pkdotson pkdotson requested review from geido, rusackas, zhaoyongjie, villebro and michael-s-molina and removed request for geido October 7, 2021 00:01
@pkdotson pkdotson changed the title Fix: ensure known dashboard id is used in save first fix: ensure known dashboard id is used in save first Oct 7, 2021
@codecov
Copy link

codecov bot commented Oct 7, 2021

Codecov Report

Merging #16998 (1f33cbd) into master (40861b3) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #16998   +/-   ##
=======================================
  Coverage   76.85%   76.85%           
=======================================
  Files        1030     1030           
  Lines       55031    55031           
  Branches     7465     7465           
=======================================
  Hits        42294    42294           
  Misses      12483    12483           
  Partials      254      254           
Flag Coverage Δ
javascript 70.90% <100.00%> (ø)

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

Impacted Files Coverage Δ
...rset-frontend/src/explore/components/SaveModal.tsx 86.81% <100.00%> (ø)

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 40861b3...1f33cbd. Read the comment docs.

Copy link
Member

@geido geido left a comment

Choose a reason for hiding this comment

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

Code LGTM! Thanks for the fix!

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM, but tagging @michael-s-molina for review as he added this line in #12125

@michael-s-molina
Copy link
Member

@pkdotson I found this while testing:

Screen.Recording.2021-10-07.at.7.51.48.AM.mov

On master, when you enter in Explore for the second time and click save, the dashboard is not empty but also it's not the correct one. So it seems we're still missing something to fix this.

@pkdotson
Copy link
Member Author

pkdotson commented Oct 8, 2021

/testenv up

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2021

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

@pkdotson
Copy link
Member Author

pkdotson commented Oct 8, 2021

@pkdotson I found this while testing:

Screen.Recording.2021-10-07.at.7.51.48.AM.mov
On master, when you enter in Explore for the second time and click save, the dashboard is not empty but also it's not the correct one. So it seems we're still missing something to fix this.

Yes this is the correct behavior when you not a owner of the chart.

@pkdotson pkdotson merged commit 2c8e06e into apache:master Oct 8, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2021

Ephemeral environment shutdown and build artifacts deleted.

opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
@eschutho eschutho added the v1.4 label Nov 23, 2021
eschutho pushed a commit that referenced this pull request Nov 23, 2021
(cherry picked from commit 2c8e06e)
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
@mistercrunch mistercrunch added 🍒 1.4.0 🍒 1.4.1 🍒 1.4.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.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/XS v1.4 🍒 1.4.0 🍒 1.4.1 🍒 1.4.2 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[explore] severe regression: ADD TO DASHBOARD refers to wrong chart origin dashboard
6 participants