pgadmin-org / pgadmin4

pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
https://www.pgadmin.org
Other
2.27k stars 611 forks source link

Autocomplete not working after update connection. #7593

Closed anilsahoo20 closed 1 week ago

anilsahoo20 commented 1 week ago

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug

When we update the connection from one database to other database, the autocomplete is not working.

To Reproduce

Steps to reproduce the behavior:

  1. Open query tool
  2. Type something, autocomplete will work
  3. Now update the connection
  4. try typing something
  5. autocomplete not working

Expected behavior

It should work.

Error message

data: null
errormsg: "Transaction ID not found in the session."
info: "DATAGRID_TRANSACTION_REQUIRED"
result: null
success: 0

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context

Add any other context about the problem here.

pravesh-sharma commented 1 week ago

Found below issue:

If autocomplete is off and ctrl+space is used to trigger autocomplete it can not be done after updating the connection. If autocomplete is enabled in that case everything works fine.

adityatoshniwal commented 1 week ago

Hi @pravesh-sharma, I checked again and API is being called with correct txn id, which was fixed.

pravesh-sharma commented 1 week ago

Hi @pravesh-sharma, I checked again and API is being called with correct txn id, which was fixed.

Okay. What I mentioned seems to be another issue will create a separate one for it.

pravesh-sharma commented 1 week ago

Issue fixed. Tested on snapshot build.

Env: OS - macOS Sonoma 14.5 Mode - Desktop