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

[dashboard] fix save/save-as flow #6350

Merged
merged 2 commits into from
Nov 9, 2018

Conversation

williaster
Copy link
Contributor

@williaster williaster commented Nov 9, 2018

Previously #6189 fixed a dashboard save as redirect bug, but introduced a dashboard save bug which was fixed today by #6349. However fixing the save bug re-introduced the save as bug 🙉

Basically save-as returns the new id for the redirect as json, but save returns HTML which throws if you parse it as json 🙄Putting the two together, this PR keeps parseMethod: null, and handles the json parsing within the save-as handler.

EDIT: updated to just make the return type consistent (json) and always parse as json.

Tested BOTH locally.

@michellethomas @graceguo-supercat @kristw @mistercrunch

@codecov-io
Copy link

codecov-io commented Nov 9, 2018

Codecov Report

Merging #6350 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6350   +/-   ##
=======================================
  Coverage   77.33%   77.33%           
=======================================
  Files          67       67           
  Lines        9578     9578           
=======================================
  Hits         7407     7407           
  Misses       2171     2171
Impacted Files Coverage Δ
superset/views/core.py 74.89% <100%> (ø) ⬆️

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 04865f0...95825d1. Read the comment docs.

@williaster williaster merged commit 8bf9a5b into apache:master Nov 9, 2018
@williaster williaster deleted the chris--dash-fix-iii branch November 9, 2018 19:15
kristw pushed a commit to kristw/incubator-superset that referenced this pull request Nov 9, 2018
* [dashboard] fix save/save-as flow

* [bugfix][dashboard] consistent response type for save/save-as

(cherry picked from commit 8bf9a5b)
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
* [dashboard] fix save/save-as flow

* [bugfix][dashboard] consistent response type for save/save-as
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 labels Feb 27, 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 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants