Skip to content

Conversation

@eschutho
Copy link
Member

SUMMARY

Using a local version of the db model so that this migration can be run in the future when there are changes to the model in future versions and this older migration needs to run before the newer one.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

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

@eschutho eschutho changed the title use local db model in migration fix: use local db model in migration Aug 28, 2025
@github-actions github-actions bot added risk:db-migration PRs that require a DB migration preset-io labels Aug 28, 2025
@dosubot dosubot bot added the change:backend Requires changing the backend label Aug 28, 2025
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
Security Overly broad exception handler in database driver detection ▹ view ✅ Fix detected
Files scanned
File Path Reviewed
superset/migrations/shared/catalogs.py

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

Comment on lines +59 to +62
try:
driver = url.get_driver_name()
except Exception:
driver = None

This comment was marked as resolved.

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks!!

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pull-request-size pull-request-size bot added size/L and removed size/S labels Sep 5, 2025
Copy link
Contributor

@bito-code-review bito-code-review bot left a 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 #273f77

Actionable Suggestions - 3
  • tests/unit_tests/migrations/shared/catalogs_test.py - 3
Review Details
  • Files reviewed - 2 · Commit Range: aec2369..fec70ea
    • superset/migrations/shared/catalogs.py
    • tests/unit_tests/migrations/shared/catalogs_test.py
  • Files skipped - 0
  • Tools
    • 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 [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

eschutho and others added 3 commits September 5, 2025 14:34
Co-authored-by: bito-code-review[bot] <188872107+bito-code-review[bot]@users.noreply.github.com>
Co-authored-by: bito-code-review[bot] <188872107+bito-code-review[bot]@users.noreply.github.com>
Co-authored-by: bito-code-review[bot] <188872107+bito-code-review[bot]@users.noreply.github.com>
@eschutho eschutho force-pushed the elizabeth/fix-catalog-migration branch from c6dc953 to 33ff67d Compare September 5, 2025 21:42
@bito-code-review
Copy link
Contributor

bito-code-review bot commented Sep 5, 2025

Code Review Agent Run #004fe9

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: fec70ea..33ff67d
    • tests/unit_tests/migrations/shared/catalogs_test.py
  • Files skipped - 0
  • Tools
    • 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 [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@eschutho eschutho marked this pull request as draft September 13, 2025 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:backend Requires changing the backend preset-io review:draft risk:db-migration PRs that require a DB migration size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants