- 
                Notifications
    
You must be signed in to change notification settings  - Fork 16.1k
 
fix: use local db model in migration #34875
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 | 
|---|---|---|
| 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.
| try: | ||
| driver = url.get_driver_name() | ||
| except Exception: | ||
| driver = None | 
      
        
              This comment was marked as resolved.
        
          
      
    
    This comment was marked as resolved.
Sorry, something went wrong.
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.
Ah, thanks!!
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.
LGTM
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 #273f77
Actionable Suggestions - 3
- 
tests/unit_tests/migrations/shared/catalogs_test.py - 3
- Missing required catalog_access permission · Line 731-744
 - Unused mock function breaks test logic · Line 361-363
 - SQLAlchemy metadata registry inconsistency · Line 689-691
 
 
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
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>
c6dc953    to
    33ff67d      
    Compare
  
    
          Code Review Agent Run #004fe9Actionable Suggestions - 0Review Details
 Bito Usage GuideCommands Type the following command in the pull request comment and save the comment. 
 Refer to the documentation for additional commands. Configuration This repository uses  Documentation & Help  | 
    
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