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: Fix chart save and go button #12125

Merged

Conversation

michael-s-molina
Copy link
Member

@michael-s-molina michael-s-molina commented Dec 18, 2020

Resolves #11748

ANIMATED GIF

preview

@rusackas @junlincc

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

@michael-s-molina michael-s-molina changed the title Improves chart save and go button fix: Improves chart save and go button Dec 18, 2020
@michael-s-molina michael-s-molina changed the title fix: Improves chart save and go button fix: Fix chart save and go button Dec 18, 2020
Copy link
Member

@ktmud ktmud left a comment

Choose a reason for hiding this comment

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

LGTM. Could you confirm whether this added dashboardId will persist in chart formData when you save? (It probably shouldn't. But shouldn't be a problem if it does.)

@ktmud
Copy link
Member

ktmud commented Dec 18, 2020

Thanks for catching this use case and making Superset more intuitive to use, @junlincc !

@rusackas rusackas merged commit a6ac2c1 into apache:master Dec 18, 2020
@rusackas
Copy link
Member

LGTM. Could you confirm whether this added dashboardId will persist in chart formData when you save? (It probably shouldn't. But shouldn't be a problem if it does.)

Thanks @ktmud - this is a good catch. Agree that it's non-blocking, so I hit the big green button, but @michael-s-molina if you could confirm and file another PR to fix if it's persisting that, it would be appreciated! And thank you for this great UX improvement!

@michael-s-molina
Copy link
Member Author

michael-s-molina commented Dec 21, 2020

@ktmud @rusackas I checked and it's not persisting.

The getFormDataFromControls(explore.controls) in ExploreViewContainer.jsx returns a form_data without the dashboardId because there is no such property in controls schema.

function mapStateToProps(state) {
  const { explore, charts, impressionId } = state;
  const form_data = getFormDataFromControls(explore.controls);
  ...
}

villebro pushed a commit to preset-io/superset that referenced this pull request Jan 7, 2021
villebro pushed a commit to preset-io/superset that referenced this pull request Jan 7, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.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/M 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ux]dashboard to explore to dashboard flow SAVE buttons
4 participants