-
Notifications
You must be signed in to change notification settings - Fork 841
Fixed infinite loading after idle connection loss on Linux Desktop. #6308 #9800
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
Open
ZoroXL
wants to merge
5
commits into
pgadmin-org:master
Choose a base branch
from
ZoroXL:fix/idle-connection-reconnect
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+143
−15
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9b09e2b
Fixed infinite loading after idle connection loss on Linux Desktop. #…
ZoroXL 39f1c3b
Address review: fix stale closure, add cleanup, add abstract method
ZoroXL d08eac6
Clarify connection_ping() vs ping() contract in abstract base class docs
ZoroXL c66fc40
Extract shared refreshConnectionStatus helper and add layout listener…
ZoroXL e373d40
Cancel debounced handler on cleanup, gate visibility check by active …
ZoroXL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: pgadmin-org/pgadmin4
Length of output: 1836
🏁 Script executed:
fd -t f 'connection.py' web/pgadmin/utils/driverRepository: pgadmin-org/pgadmin4
Length of output: 111
🏁 Script executed:
Repository: pgadmin-org/pgadmin4
Length of output: 234
🏁 Script executed:
fd --type d --maxdepth 1 '' web/pgadmin/utils/driverRepository: pgadmin-org/pgadmin4
Length of output: 98
🏁 Script executed:
Repository: pgadmin-org/pgadmin4
Length of output: 416
🏁 Script executed:
Repository: pgadmin-org/pgadmin4
Length of output: 1035
🏁 Script executed:
rg -n "^class.*BaseConnection" web/pgadmin/utils/driver/psycopg3/connection.pyRepository: pgadmin-org/pgadmin4
Length of output: 100
🏁 Script executed:
rg -n "class.*BaseConnection" web/pgadmin/utils/driver/Repository: pgadmin-org/pgadmin4
Length of output: 296
🏁 Script executed:
Repository: pgadmin-org/pgadmin4
Length of output: 46
🏁 Script executed:
Repository: pgadmin-org/pgadmin4
Length of output: 236
🏁 Script executed:
rg -n "PG_DEFAULT_DRIVER" web/pgadmin/browser/utils.pyRepository: pgadmin-org/pgadmin4
Length of output: 175
🏁 Script executed:
Repository: pgadmin-org/pgadmin4
Length of output: 46
🏁 Script executed:
fd config.py | head -5Repository: pgadmin-org/pgadmin4
Length of output: 304
🏁 Script executed:
rg -n "PG_DEFAULT_DRIVER" web/config.pyRepository: pgadmin-org/pgadmin4
Length of output: 98
🏁 Script executed:
rg -n -B5 -A10 "connection_ping\(\)" web/pgadmin/browser/utils.pyRepository: pgadmin-org/pgadmin4
Length of output: 1042
🏁 Script executed:
Repository: pgadmin-org/pgadmin4
Length of output: 46
🏁 Script executed:
rg -n "connection_ping" web/pgadminRepository: pgadmin-org/pgadmin4
Length of output: 325
connection_ping()must be added to theBaseConnectionabstract contract.Currently,
web/pgadmin/browser/utils.py:441callsconnection_ping()on the connection object without this method being defined inweb/pgadmin/utils/driver/abstract.py. While only psycopg3 is currently deployed, this violates the driver abstraction contract and would causeAttributeErrorif any alternate driver or test double were introduced.Add the abstract method to
BaseConnectionin abstract.py and ensure all driver implementations provide it.🧰 Tools
🪛 Ruff (0.15.7)
[warning] 1433-1433: Do not catch blind exception:
Exception(BLE001)
[error] 1436-1437:
try-except-passdetected, consider logging the exception(S110)
[warning] 1436-1436: Do not catch blind exception:
Exception(BLE001)
🤖 Prompt for AI Agents