fix: preserve pgpass setting when loading existing connections#366
fix: preserve pgpass setting when loading existing connections#366
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe connection type switching logic in ConnectionFormView is refactored to reinitialize additional connection fields and port within the hasLoadedData block when the user changes connection types after data has loaded, ensuring proper initialization order. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present. |
Summary
onChange(of: type)unconditionally resettingadditionalFieldValuesduring initial load, which wiped the persistedusePgpasssetting when editing an existing PostgreSQL connectionhasLoadedDataguard so it only runs when the user manually changes the database type, not during initial form populationSummary by CodeRabbit