Re: [pgAdmin4][Patch]: To fix database disconnect option

From: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][Patch]: To fix database disconnect option
Date: 2017-07-21 10:17:42
Message-ID: CAM5-9D8RO9UFvrC=yGsVK+eykdhXjdQ7-d3w8696Pu0cRWmVeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi

As discussed the disconnect option is not working due to javascript error:
"obj is undefined" and which is after web packing. so in some files global
variables needs to convert into local var.

We need to run eslint on each file to find out such issues and fix all at
once. So i am writing a new entry "yarn run eslint /path/to/module/" in
package.json > scripts as Ashesh suggested, so that everytime before
submitting/commiting a patch, running eslint can prompt such errors.

Thanks Murtuza for fix.

Thanks,
Surinder

On Fri, Jul 21, 2017 at 3:41 PM, Dave Page <dpage(at)pgadmin(dot)org> wrote:

> Thanks, applied.
>
> On Fri, Jul 21, 2017 at 10:08 AM, Murtuza Zabuawala <
> murtuza(dot)zabuawala(at)enterprisedb(dot)com> wrote:
>
>> Hi,
>>
>> PFA minor patch to fix the issue where database disconnect option is not
>> working.
>>
>> *Steps to re-produce:*
>> 1) Create a "test" database
>> 2) Connect to "test" database
>> 3) Right click on "test" database and try to disconnect it, you will get
>> an error on console.
>>
>> --
>> Regards,
>> Murtuza Zabuawala
>> EnterpriseDB: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>
>
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message pgAdmin 4 Jenkins 2017-07-21 10:42:06 Jenkins build is back to normal : pgadmin4-master-python27 #259
Previous Message Dave Page 2017-07-21 10:11:16 Re: [pgAdmin4][Patch]: To fix database disconnect option