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

fix(sqllab): regression of clearQueryResults #23007

Closed

Conversation

justinpark
Copy link
Member

@justinpark justinpark commented Feb 6, 2023

SUMMARY

This PR fixes a bug introduced by (#21186) that caused increasing local storage size dramatically (which makes the space limitation warning frequently). This is because the migration logic flip to query.cached from !nextProps.query.cached so clearQueryResults() never triggered.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

  • After:

Superset-3

Superset-2

  • Before:

Superset-4

Superset

TESTING INSTRUCTIONS

Go to SqlLab
Run a query and check the localStorage of sqlLab > queries > results > data

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
Member Author

Found a bunch of regression. I will post new PR to clean up all issues

@justinpark justinpark closed this Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant