Skip to content

fix(saved_query_url): restore the legacy link for backup - #34559

Closed
justinpark wants to merge 1 commit into
apache:5.0from
justinpark:hotfix--restore-shared-query-link
Closed

justinpark wants to merge 1 commit into
apache:5.0from
justinpark:hotfix--restore-shared-query-link

Conversation

@justinpark

Copy link
Copy Markdown
Member

SUMMARY

In #31421 the existing saved query link ID has been replaced with a new permalink API. This change is currently impacting Airbnb services that reference the previous saved query links.

To address this, in 5.0, we restored the original query link functionality to a "share link" action, while keeping the updated functionality for "copy query URL."
Additionally, please note that a saved query ID always reflects the latest information when a saved query is edited. In contrast, the "copy query URL" uses the permalink method, which means it does not capture any changes made to the query after the URL is generated. To clarify this behavior, this commit updates the label to "copy current query URL."

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

After:

Screenshot 2025-08-05 at 10 10 16 AM Screenshot 2025-08-05 at 10 10 20 AM

TESTING INSTRUCTIONS

Go to Saved queries and then check the actions

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

@justinpark

Copy link
Copy Markdown
Member Author

cc: @LevisNgigi

@dosubot dosubot Bot added the change:frontend Requires changing the frontend label Aug 5, 2025

@korbit-ai korbit-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Performance Unnecessary Promise for String Operation ▹ view 🧠 Not in scope
Files scanned ​
File Path Reviewed
superset-frontend/src/pages/SavedQueryList/index.tsx ✅

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

Comment on lines +237 to +239
copyTextToClipboard(() =>
Promise.resolve(`${window.location.origin}/sqllab?savedQueryId=${id}`),
)

This comment was marked as resolved.

@rusackas rusackas added v5.0 Label added by the release manager to track PRs to be included in the 5.0 branch review:checkpoint Last PR reviewed during the daily review standup labels Aug 5, 2025
@rusackas

rusackas commented Aug 5, 2025

Copy link
Copy Markdown
Member

I think this makes sense, but curious if @kasiazjc or @mistercrunch think having two links that copy different things is too confusing.

@sadpandajoe
sadpandajoe requested a review from geido August 5, 2025 21:31
@justinpark justinpark closed this Aug 5, 2025
@sadpandajoe sadpandajoe removed the review:checkpoint Last PR reviewed during the daily review standup label Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:frontend Requires changing the frontend size/M v5.0 Label added by the release manager to track PRs to be included in the 5.0 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants