Repository navigation
fix(database-integrations): support legacy redshift metadata with undefined auth method - #146
Conversation
…efined auth method
📝 WalkthroughWalkthroughThis PR adds backward compatibility for legacy Redshift integrations missing an explicit Sequence DiagramsequenceDiagram
participant Input as Legacy/New Input
participant Schema as Schema Validation
participant Runtime as Runtime Processing
participant Output as SQLAlchemy URL
rect rgb(200, 220, 255)
Note over Schema,Runtime: New Flow: Preprocessing + Default
end
Input->>Schema: Raw metadata (authMethod missing)
Schema->>Schema: Preprocess: inject authMethod = UsernameAndPassword
Schema->>Schema: Validate union (now matches first branch)
Schema->>Runtime: Validated metadata
Runtime->>Runtime: Guard: default authMethod if still missing
Runtime->>Runtime: Federation checks (safe now)
Runtime->>Output: Generate SQLAlchemy URL with port
Output-->>Input: Success
Possibly related PRs
Suggested reviewers
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (4)packages/*/src/**/*.test.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
packages/*/src/**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
packages/*/src/**/*📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (4)packages/database-integrations/src/database-integration-env-vars.test.ts (2)
packages/database-integrations/src/database-integration-metadata-schemas.ts (1)
packages/database-integrations/src/database-integration-metadata-schemas.test.ts (2)
packages/database-integrations/src/database-integration-env-vars.ts (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #146 +/- ##
==========================================
+ Coverage 95.41% 95.45% +0.03%
==========================================
Files 26 26
Lines 742 748 +6
Branches 223 225 +2
==========================================
+ Hits 708 714 +6
Misses 34 34 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Bug Fixes
Tests