Unable to share saved SQL queries - user gets an error wen trying to load the query
yousoph opened this issue · 2 comments
Bug description
Description
Users are unable to share saved SQL queries to other users. The owner of a saved query can access it via the shared URL, but any other user attempting to access the same URL receives an error message: “The query couldn’t be loaded."
How to reproduce the bug
- Log in and save a query in SQL Lab.
- Copy the query URL using the "Copy Query URL" option.
- Share the URL with a different user.
- Have the other user try to load the shared query URL.
- Observe that the second user receives the error message: “The query couldn’t be loaded.”
Expected results
Any user with access to SQL Lab should be able to load and view saved SQL queries via a shared URL.
Actual results
Only the creator of the query can load the query from the shared URL. Other users receive an error message stating: "The query couldn’t be loaded."
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
- I have searched Superset docs and Slack and didn't find a solution to my problem.
- I have searched the GitHub issue tracker and didn't find a similar bug report.
- I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
🎉 Preset Bounty Available: $150 USD 🎉
To claim this bounty, please carefully follow the steps below.
📋 Steps to Participate
-
Review Guidelines:
Read through the Preset Bounty Program Contribution Guide for complete details on bounty requirements. -
Show Your Interest:
Complete the Preset Bounty Program Survey and comment this issue to express your interest. -
Join the Slack Channel:
After completing the survey, you’ll receive an invitation to the dedicated Apache Superset Slack channel. -
Get Assigned:
To officially start, ensure a Bounty Program Manager has assigned you to this issue. -
Submit Your Solution:
When ready, submit your solution with theFixes #{issue_number}
notation in your Pull Request description. -
Claim Your Bounty:
Sign up at GitPay.me and submit your solution via: https://gitpay.me/#/task/1013
💡 Additional Notes
- Only developers assigned by a Bounty Program Manager should start working on this issue to win the bounty.
- Be sure to follow the guide closely to avoid any delays in payment. Please, allow a few days after your PR has been merged for the bounty to be released.
Good luck, and happy coding! 🎉
Hey @geido I would love to work on this.