Fixed an issue where the Query tool kept prompting for a password when using a shared server. #9789#9790
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough_init_sqleditor now checks if a resolved Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@web/pgadmin/tools/sqleditor/__init__.py`:
- Around line 516-521: The code calls ServerModule.get_shared_server(sgid) and
then immediately passes shared_server into
ServerModule.get_shared_server_properties(server, shared_server) which will
raise an AttributeError if get_shared_server returns None; add a None check
after obtaining shared_server and only call get_shared_server_properties when
shared_server is not None (otherwise leave server unchanged or handle the error
path as appropriate), and fix the indentation of the
get_shared_server_properties call so it aligns correctly with surrounding code
(adjust the indentation of the continued argument lines).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 9e0fc8c4-8a59-41e0-b4f7-491cc3ba0bed
📒 Files selected for processing (1)
web/pgadmin/tools/sqleditor/__init__.py
Summary by CodeRabbit