I3eka opened a new pull request, #43278: URL: https://github.com/apache/superset/pull/43278
## Summary - preserve a local SQL Lab tab when its saved database connection no longer exists - clear only the stale database, catalog, and schema before backend migration - persist the tab with a null database ID while keeping its SQL and other state ## Problem SQL Lab retries local-to-backend migration every five seconds. If the cached tab references a deleted database, POST /tabstateview/ violates the tab_state database foreign key and returns 400 forever. The initial SQL Lab payload already contains the current database map, so the client can normalize a removed selection before the migration request without guessing a replacement database. ## Testing - npx jest src/SqlLab/actions/sqlLab.test.ts --runInBand --silent (78 passed, 1 skipped) - npx oxfmt --check src/SqlLab/actions/sqlLab.ts src/SqlLab/actions/sqlLab.test.ts - npx oxlint --config oxlint.json --quiet src/SqlLab/actions/sqlLab.ts src/SqlLab/actions/sqlLab.test.ts -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
