pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

Using arrows to minimize server groups results in blank server browser

Open freightverifianbrian opened this issue 2 years ago • 2 comments

When I use my keyboard arrow keys to minimize/collapse my list of servers in my server browser it will (virtually every single time) blank out my server browser menu. I therefore can not view servers, server groups, connect to servers, etc.

This has happened a number of times in past, seemingly for no reason, or I would re-size the browser side bar and it would go blank, however this latest occurrence is reproducible any time.

This has been happening for multiple versions of PgAdmin, I am finally taking the time to submit the bug however if you go back two or even three versions you will still see the problem.

This is very frustrating because I then have to either reset my layout, or close PgAdmin and re-open it. The fact that PgAdmin doesn't save work in open tabs adds to the frustration as I either have to copy/paste my queries into Notepad++ before rebooting the app, or I have to save all of my tabs and remember which ones I had opened last.

Steps to reproduce

  1. Open PgAdmin
  2. Expand at least one or more server groups
  3. Connect to servers from each group
  4. Expand one of the servers down to the database>>schema>>table level
  5. While having the table (or it's indexes etc.) selected, quickly keep pressing the left arrow key on your keyboard to minimize the tables, schema, database, server, server group
  6. At this point the whole server browser screen should go blank.

Version : 6.19 Application Mode : Desktop Current User : [email protected] NW.js Version : 0.72.0 Browser : Chromium 109.0.5414.87 Operating System : Windows-10-10.0.22621-SP0

freightverifianbrian avatar Jan 23 '23 22:01 freightverifianbrian

After resolving this issue I'm willing to test #7025 Looks similar (?same technical flaw?) but it has different reproduction-path.

casparsch avatar Apr 26 '24 14:04 casparsch

After resolving this issue I'm willing to test #7025 Looks similar (?same technical flaw?) but it has different reproduction-path.

@casparsch At least this path is reproducible, but #7025 is not even reproducible.

adityatoshniwal avatar Apr 27 '24 05:04 adityatoshniwal

The issue is with the underlying react-aspen library and is unlikely to be fixed as they are currently focusing on aspen2. We have to wait for the new version.

pravesh-sharma avatar May 27 '24 13:05 pravesh-sharma

Also encounter this problem with the following log...

--------------[UI error]--------------- TypeError: Cannot read properties of undefined (reading 'constructor') at d.getItemAtIndex (http://127.0.0.1:50218/static/js/generated/vendor.others.js?ver=80600:312:1428092) at getItemKey (http://127.0.0.1:50218/static/js/generated/vendor.others.js?ver=80600:312:1428543) at w.render (http://127.0.0.1:50218/static/js/generated/vendor.react.js?ver=80600:2:276166) at Ul (http://127.0.0.1:50218/static/js/generated/vendor.react.js?ver=80600:2:113101) at Gl (http://127.0.0.1:50218/static/js/generated/vendor.react.js?ver=80600:2:112901) at Ka (http://127.0.0.1:50218/static/js/generated/vendor.react.js?ver=80600:2:153516) at Pu (http://127.0.0.1:50218/static/js/generated/vendor.react.js?ver=80600:2:139807) at Iu (http://127.0.0.1:50218/static/js/generated/vendor.react.js?ver=80600:2:139735) at _u (http://127.0.0.1:50218/static/js/generated/vendor.react.js?ver=80600:2:139598) at bu (http://127.0.0.1:50218/static/js/generated/vendor.react.js?ver=80600:2:136595) ------------[UI End]----------------

japaroooo avatar Jun 05 '24 03:06 japaroooo

Hi @freightverifianbrian,

Could you please try using the latest version of pgAdmin 4 and check if the issue is still reproducible? You can download the latest version from here.

pravesh-sharma avatar Sep 26 '24 09:09 pravesh-sharma

Hi @freightverifianbrian,

Could you please try using the latest version of pgAdmin 4 and check if the issue is still reproducible? You can download the latest version from here.

I just ran a few tests and it appears to be working just fine now, thank you @pravesh-sharma !

freightverifianbrian avatar Sep 27 '24 15:09 freightverifianbrian