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

feat: use shorten url in standalone iframe #10651

Merged

Conversation

graceguo-supercat
Copy link

@graceguo-supercat graceguo-supercat commented Aug 21, 2020

SUMMARY

Superset's chart has "standalone" mode, and also offers a button to generate code to embed standalone chart in an iframe. But sometimes the chart full url is too long that nginx server (depends on company's infrastructure setup) can't handle it, and user can't use this iframe code.

This PR is to improve this standalone chart link. Instead of using full url, we can use shorten link.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before
Screen Shot 2020-08-20 at 3 11 19 PM

After
Screen Shot 2020-08-20 at 4 46 55 PM

TEST PLAN

CI and manual test

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

@graceguo-supercat graceguo-supercat changed the title feat: use shorten url in standalone iframe [WIP]feat: use shorten url in standalone iframe Aug 21, 2020
@pull-request-size pull-request-size bot added size/M and removed size/S labels Aug 21, 2020
@graceguo-supercat graceguo-supercat changed the title [WIP]feat: use shorten url in standalone iframe feat: use shorten url in standalone iframe Aug 21, 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!

@graceguo-supercat graceguo-supercat merged commit aa8ff87 into apache:master Aug 21, 2020
@graceguo-supercat graceguo-supercat deleted the gg-ShorternIframeLink branch September 11, 2020 03:33
@villebro villebro added the v0.38 label Sep 11, 2020
Ofeknielsen pushed a commit to ofekisr/incubator-superset that referenced this pull request Oct 5, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.38.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 v0.38 🚢 0.38.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants