Re: server and database node type check in is_connected check [pgadmin4]

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: Harshal Dhumal <harshal(dot)dhumal(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: server and database node type check in is_connected check [pgadmin4]
Date: 2016-05-24 19:46:27
Message-ID: CAG7mmoxxqHcXuSG0Api7juu4_8eics1YxAoB-2oUNNOQ+uEVfQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Harshal,

I've committed a fix for the same.
Please take a look at the
commit-id: 748497916e71134d891e4b6f37f7b61749f9c878 for details.

--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
<http://www.enterprisedb.com>

*http://www.linkedin.com/in/asheshvashi*
<http://www.linkedin.com/in/asheshvashi>

On Tue, May 24, 2016 at 12:50 PM, Ashesh Vashi <
ashesh(dot)vashi(at)enterprisedb(dot)com> wrote:

> On Tue, May 24, 2016 at 12:26 PM, Harshal Dhumal <
> harshal(dot)dhumal(at)enterprisedb(dot)com> wrote:
>
>> Hi Ashesh,
>>
>> For change server password we have added check is_connected() in
>> server.js. Also same function is also available in database.js. So it was
>> causing change server password menu to enable on database node as well if
>> database is connected.
>>
>> This issue will appear for any other menu if that menu has check on
>> is_connected function.
>>
> In that case - we're fixing it at wrong end.
> We need make the menu educate about the node type it supports, and
> enable/disable it accordingly.
>
> Please modify the 'update' function 'pgAdmin.Browser.MenuItem' class in
> 'web/pgadmin/browser/static/js/menu.js' accordingly.
>
> --
> Thanks & Regards,
>
> Ashesh Vashi
>
>>
>>
>>
>>
>> --
>> *Harshal Dhumal*
>> *Software Engineer *
>>
>>
>>
>> EenterpriseDB <http://www.enterprisedb.com>
>>
>> On Tue, May 24, 2016 at 12:13 PM, Ashesh Vashi <
>> ashesh(dot)vashi(at)enterprisedb(dot)com> wrote:
>>
>>>
>>> On Tue, May 24, 2016 at 12:06 PM, Harshal Dhumal <
>>> harshal(dot)dhumal(at)enterprisedb(dot)com> wrote:
>>>
>>>> Hi,
>>>>
>>>>
>>>> PFA patch for server and database node:
>>>>
>>>> Issue fixed: Added node type check in is_connected check.
>>>>
>>>
>>> Can you please describe the situation, when these functions are being
>>> executed outside the respective node instance?
>>>
>>> --
>>>
>>> Thanks & Regards,
>>>
>>> Ashesh Vashi
>>> EnterpriseDB INDIA: Enterprise PostgreSQL Company
>>> <http://www.enterprisedb.com/>
>>>
>>>
>>> *http://www.linkedin.com/in/asheshvashi*
>>> <http://www.linkedin.com/in/asheshvashi>
>>>
>>>> --
>>>> *Harshal Dhumal*
>>>> *Software Engineer *
>>>>
>>>>
>>>>
>>>> EenterpriseDB <http://www.enterprisedb.com>
>>>>
>>>>
>>>> --
>>>> Sent via pgadmin-hackers mailing list (pgadmin-hackers(at)postgresql(dot)org)
>>>> To make changes to your subscription:
>>>> http://www.postgresql.org/mailpref/pgadmin-hackers
>>>>
>>>>
>>>
>>
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Thom Brown 2016-05-24 23:29:24 Re: [PATCH] Tables node (pgAdmin4)
Previous Message Ashesh Vashi 2016-05-24 19:45:24 pgAdmin 4 commit: Honour the node type (if provided) in the menu item,