Skip to content

fix(sqllab): query deletion not updating UI in query history#34334

Closed
mistercrunch wants to merge 1 commit intomasterfrom
fix_sqllab_delete_query
Closed

fix(sqllab): query deletion not updating UI in query history#34334
mistercrunch wants to merge 1 commit intomasterfrom
fix_sqllab_delete_query

Conversation

@mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Jul 27, 2025

The delete API call succeeded but the RTK Query cache wasn't invalidated, causing deleted queries to remain visible until page refresh. Added cache invalidation to immediately update the UI.

Also fixing various issues in Query History, ordering was wrong, failed status wasn't reported properly, ...


Actually deadended here, will require more time/attention to fix

The delete API call succeeded but the RTK Query cache wasn't invalidated, causing deleted queries to remain visible until page refresh. Added cache invalidation to immediately update the UI.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link

@korbit-ai korbit-ai bot left a 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
Functionality Missing Cache Invalidation on Error ▹ view 🧠 Not in standard
Files scanned
File Path Reviewed
superset-frontend/src/SqlLab/actions/sqlLab.js

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

.then(() => {
dispatch({ type: REMOVE_QUERY, query });
// Invalidate RTK Query cache to update the UI
dispatch(api.util.invalidateTags(['EditorQueries']));

This comment was marked as resolved.

@mistercrunch mistercrunch marked this pull request as draft July 28, 2025 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants