-
Notifications
You must be signed in to change notification settings - Fork 16.1k
fix(view-in-sqllab): unable to open virtual dataset after discarding chart edits #35931
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
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 |
|---|---|---|
| Swapped type annotations for pathname and state parameters ▹ view | ✅ Fix detected |
Files scanned
| File Path | Reviewed |
|---|---|
| superset-frontend/src/hooks/useUnsavedChangesPrompt/index.ts | ✅ |
| superset-frontend/src/explore/components/controls/DatasourceControl/index.jsx | ✅ |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review Agent Run #29e13f
Actionable Suggestions - 1
-
superset-frontend/src/hooks/useUnsavedChangesPrompt/index.ts - 1
- Incorrect blockCallback parameter types · Line 77-77
Review Details
-
Files reviewed - 2 · Commit Range:
b59ac4d..b59ac4d- superset-frontend/src/explore/components/controls/DatasourceControl/index.jsx
- superset-frontend/src/hooks/useUnsavedChangesPrompt/index.ts
-
Files skipped - 0
-
Tools
- Eslint (Linter) - ✔︎ Successful
- Whispers (Secret Scanner) - ✔︎ Successful
- Detect-secrets (Secret Scanner) - ✔︎ Successful
Bito Usage Guide
Commands
Type the following command in the pull request comment and save the comment.
-
/review- Manually triggers a full AI review. -
/pause- Pauses automatic reviews on this pull request. -
/resume- Resumes automatic reviews. -
/resolve- Marks all Bito-posted review comments as resolved. -
/abort- Cancels all in-progress reviews.
Refer to the documentation for additional commands.
Configuration
This repository uses Default Agent You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.
Documentation & Help
1a76b75 to
760c1bc
Compare
|
🎪 Showtime deployed environment on GHA for 760c1bc • Environment: http://44.243.242.40:8080 (admin/admin) |
|
🎪 Showtime deployed environment on GHA for 48b0bbe • Environment: http://52.37.68.90:8080 (admin/admin) |
SUMMARY
Problem
When modifying a chart and then trying to open the related dataset in SQL Lab without saving, the virtual dataset cannot be opened if you choose to discard the chart edits.
Solution
The navigation hook responsible for handling redirects was only pushing the pathname, causing the component to lose the state (which included the
requestedQuery).The fix ensures that both the pathname and state are preserved when redirecting.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
https://github.com/user-attachments/assets/9be29bea-a1c4-4f8b-8e73-f6d133998c75
After
https://github.com/user-attachments/assets/e2d0aae5-1183-49d6-8f1e-6d100ea800d6
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION