[pgAdmin4][Patch]: RM1569 - Right-clicking an disconnected EPAS server shows "Create Resource Group" option - Mailing list pgadmin-hackers

From Surinder Kumar
Subject [pgAdmin4][Patch]: RM1569 - Right-clicking an disconnected EPAS server shows "Create Resource Group" option
Date
Msg-id CAM5-9D-DqsVjBrR6odyvr8H6dY=n=Wd4qF07KPGgst8HYP56Cw@mail.gmail.com
Whole thread Raw
Responses Re: [pgAdmin4][Patch]: RM1569 - Right-clicking an disconnected EPAS server shows "Create Resource Group" option
List pgadmin-hackers
Hi

Issue:
Two reasons:
1) In Resource group menu, the check for server connected or not is missing.
2) When server is disconnected, server type is always set to 'pg' which is wrong and thus function always returns true.

Solution:
If server is disconnected, we should check server type based on its maintenance db.
If maintenance db is 'edb' its ppas server, otherwise 'pg'.

Please review attached patch.

Thanks,
Surinder Kumar
Attachment

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: PATCH/s: RM#1387 - Bad handling of missing connection database server
Next
From: Surinder Kumar
Date:
Subject: [pgAdmin4][Patch]: RM1251 - Tab complete for combo boxes