Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if0qL-00037G-0u for pgadmin-hackers@arkaria.postgresql.org; Wed, 11 Dec 2019 12:11:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1if0qJ-0003FR-Ow for pgadmin-hackers@arkaria.postgresql.org; Wed, 11 Dec 2019 12:11:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if0qJ-0003CF-Aa for pgadmin-hackers@lists.postgresql.org; Wed, 11 Dec 2019 12:11:47 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if0qE-0001pY-2P for pgadmin-hackers@postgresql.org; Wed, 11 Dec 2019 12:11:46 +0000 Received: by mail-ed1-x542.google.com with SMTP id cx19so19234399edb.1 for ; Wed, 11 Dec 2019 04:11:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t9haRGtRkw9juZTO8Z7BK3vlIP0RKKh7S2GQVyi0Tlo=; b=bEf2eQ95hRLMdr6/GnOCcAziCfLgh+hYq1owNj9YowLc/3IrWD8BrylEqBMImVuK+F ubgrrQTzCjAksUkJS9qtUPBRa9wtWOB9UbNkLNgK0iMePYOI7FqmFp+HVmALOda4zHSj IfT1JkD1cUilKX2buFI6bIDNMHMm6jwXokPMYmzworym29JjBLFHzJfUKiktr6bkG8Hr XGqgyGBkaE8eSiGaB1lo0q8s2Jfx2jHAyVIEYePsHobYOXyWQUSc6TyicgkTXd/7zXsP IuO4pZfjtMCTfio18Ogz4SVuLp6NSJkyVMZOr5Ff3OIXhOFBlHj3riu1Pb3W1KSG9hfY Dx8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t9haRGtRkw9juZTO8Z7BK3vlIP0RKKh7S2GQVyi0Tlo=; b=haT5HuX3oRUA6+Tr68elbOQvzXxDVCtwwMG9AOdUo34giWcDreudOCoFQ2e2bRG9CQ QvIvDcU/pKbx0eqxzvdtX/3wHnHRZ1i39SYR3BrDJCxk2Ax9Eaxrj4pgDFEJYr02yKYI SaD4kvpZk1Bx974RrqeHsvfkirqclFmuHQbiYoR4Mda97Gmn07eE2OVA7Tt+V7mmnXZM Ciox5KJbZfXeydkdUW9ayQ74SnaSIA1CFKc7dlPS33gayddMmnsWOhhGKUMuhxVCjyYm 2vVCUEtA/Ys6VohBelJ/a/rYQynbgPEfvtkDv0jA+j/DlCXpQQBZkszfF3qWYLm9pGB4 gg1Q== X-Gm-Message-State: APjAAAXXg/3K8/zYlOYz9TfqPcpXmfkoc2UYqVDtWBGBB8UgycN05h1x d2kP1XNeEMmK6YPLzs9loEvIiLQpg0x8TQ0YqR/Hvcex6z1y3U8qu404iTJHq9oe6IKRKDH57R3 EF3mYWgTsFDig1yhLr5s7mkJnoH7+5rXj7dvaGvuVOu6vAHZuwwUtH9nfeIEjI9mUBA7xb81YDG XTjjH4TheKVQhW/3NeIi3YAvO2DSwCkInMMPKjcqe7XB5U5bUA+7o= X-Google-Smtp-Source: APXvYqzJ7Jhu8UvUazT4yOh0yjzaIst99a/6Su/Y2KjSm5fAuk3A3l8r0oKhv6X1w9OqVuQLmPYl8Ca82GtH/ESLt9E= X-Received: by 2002:a17:906:2ecd:: with SMTP id s13mr2876956eji.195.1576066300129; Wed, 11 Dec 2019 04:11:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Aditya Toshniwal Date: Wed, 11 Dec 2019 17:41:03 +0530 Message-ID: Subject: Re: Re : [BUG #4943] To: Karan Takalkar Cc: pgadmin-hackers Content-Type: multipart/mixed; boundary="000000000000f6759a05996c8717" X-CLOUD-SEC-AV-Info: edb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000f6759a05996c8717 Content-Type: multipart/alternative; boundary="000000000000f6759905996c8715" --000000000000f6759905996c8715 Content-Type: text/plain; charset="UTF-8" Hi, I've updated your patch further to escape the info prefix so that it doesn't break if db name is something like - "". Fixed a pep8 issue. Otherwise, the patch looks good to me and test cases works fine. On Wed, Dec 11, 2019 at 5:19 PM Karan Takalkar wrote: > Hi, > > I have updated the disconnect messages. > Databases/extension tests are failing , i have attached the log below. > They are also failing if i undo the modifications. > i do not know if this a problem with my setup or i maybe not following a > convention. > Please check the updated patch. > > Regards, > Karan > > On Wed, Dec 11, 2019 at 3:03 PM Aditya Toshniwal < > aditya.toshniwal@enterprisedb.com> wrote: > >> Hi Karan, >> >> I've updated your patch a bit. Kindly test and share the logs if test >> cases fail. >> Test cases seems to be working fine for me. Kindly also change >> disconnected messages. >> >> On Tue, Dec 10, 2019 at 6:51 PM Karan Takalkar >> wrote: >> >>> Hi, >>> >>> "add more variables to the response along with info and use those in the >>> front end" >>> i have already implemented that , but am still failing (7) test cases >>> particularly in the databases/extensions tests(5). >>> i had run regression tests for browser node.(and all it's sub >>> directories). >>> Please check the patch attached. >>> >>> On Tue, Dec 10, 2019 at 6:34 PM Aditya Toshniwal < >>> aditya.toshniwal@enterprisedb.com> wrote: >>> >>>> [please use reply all to reply] >>>> >>>> You can add more variables to the response along with info and use >>>> those in the front end. >>>> >>>> On Tue, Dec 10, 2019, 18:24 Karan Takalkar >>>> wrote: >>>> >>>>> Hi >>>>> >>>>> I had been naively modifying jason response of connect function in >>>>> databases __init__.py, later realized there are a lot of dependencies on it >>>>> and most of regression tests use: >>>>> if db_con["info"] == "Database connected.": . >>>>> >>>>> I am now modifying the Alertify.success script* directly responsible >>>>> for the popup, i could append the database name in the message but am >>>>> having trouble finding the *variable to supply server name.* >>>>> The file and location of function is : >>>>> * >>>>> (web/pgadmin/browser/server_groups/servers/databases/static/js/database.js >>>>> line 523) >>>>> >>>>> the message should be: >>>>> Alertify.success("(?server_name_variable?}+'/'+data.label+' - '+ >>>>> res.info") >>>>> >>>>> data.label contains database name >>>>> res.info is the jason response coming from databases __init__.py >>>>> connect function ; which is "Database connected." >>>>> >>>>> On Mon, Dec 9, 2019 at 8:35 PM Aditya Toshniwal < >>>>> aditya.toshniwal@enterprisedb.com> wrote: >>>>> >>>>>> Hi Karan, >>>>>> >>>>>> Kindly add a hyphen between the message and names, create a patch to >>>>>> pgAdmin hackers(check cc). >>>>>> Kindly also run the test cases and pep8 before sending. >>>>>> >>>>>> On Mon, Dec 9, 2019, 20:17 Karan Takalkar >>>>>> wrote: >>>>>> >>>>>>> I have updated the success message. >>>>>>> Please check the screenshots attached. >>>>>>> Should i make a patch? >>>>>>> >>>>>>> Regards, >>>>>>> Karan >>>>>>> >>>>>>> On Mon, 9 Dec, 2019, 3:25 PM Aditya Toshniwal, < >>>>>>> aditya.toshniwal@enterprisedb.com> wrote: >>>>>>> >>>>>>>> ++pgadmin-hackers >>>>>>>> >>>>>>>> Hi Karan, >>>>>>>> >>>>>>>> It is good to know that you're contributing. >>>>>>>> I would suggest {server name}/{db name} as name instead of did is >>>>>>>> better for UX. You can get the db name from conn object and server name >>>>>>>> using the sid (refer >>>>>>>> - web/pgadmin/browser/server_groups/servers/__init__.py) >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Dec 9, 2019 at 3:11 PM Karan Takalkar < >>>>>>>> karan1533os@gmail.com> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I have been working on #4943 ("Database connected" success >>>>>>>>> message itself is not enough) added by you on pgAdmin4 issues. >>>>>>>>> I want to know what details of database should be included in >>>>>>>>> success message.(i have added 'did') >>>>>>>>> >>>>>>>>> The success message can be modified by altering json response in >>>>>>>>> the connect method in file >>>>>>>>> PGADMIN_SRC/web/pgadmin/browser/server_groups/servers/databases/__init__.py. >>>>>>>>> please have a look at the screenshots attached. >>>>>>>>> >>>>>>>>> original: >>>>>>>>> info=_( "Database connected.") >>>>>>>>> new: >>>>>>>>> info=_("Postgres version/{0} Database connected.".format(did)) >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> Karan >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Thanks and Regards, >>>>>>>> Aditya Toshniwal >>>>>>>> Sr. Software Engineer | EnterpriseDB India | Pune >>>>>>>> "Don't Complain about Heat, Plant a TREE" >>>>>>>> >>>>>>> >> >> -- >> Thanks and Regards, >> Aditya Toshniwal >> Sr. Software Engineer | EnterpriseDB India | Pune >> "Don't Complain about Heat, Plant a TREE" >> > -- Thanks and Regards, Aditya Toshniwal Sr. Software Engineer | EnterpriseDB India | Pune "Don't Complain about Heat, Plant a TREE" --000000000000f6759905996c8715 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I've updated your patch further to escape the info= prefix so that it doesn't break if db name is something like - "&= lt;script>alert(1)</script>". Fixed a pep8 issue.
Otherwise, = the patch looks=C2=A0good to me and test cases works fine.


On We= d, Dec 11, 2019 at 5:19 PM Karan Takalkar <karan1533os@gmail.com> wrote:
Hi,

I have updated the disconnect messages.
Databases/extens= ion tests are failing , i have attached the log below.
They are a= lso failing if i undo the modifications.
i do not know if th= is a=C2=A0 problem with my setup or i maybe not following a convention.
Please check the updated patch.

Regards,
Karan

On Wed, Dec 11, 2019 at 3:03 PM Aditya Toshniwal <= ;adi= tya.toshniwal@enterprisedb.com> wrote:
Hi Karan,

I've updated y= our patch a bit. Kindly test and share the logs if test cases fail.
Test ca= ses seems to be working fine for me. Kindly also change disconnected messag= es.

On Tue, Dec 10, 2019 at 6:51 PM Karan Takalkar <karan1533os@gmail.com> w= rote:
Hi,

"add more variables to the = response along with info and use those in the front end"
i h= ave already implemented that , but am still failing (7)=C2=A0 test cases pa= rticularly in the databases/extensions tests(5).
i had run regres= sion tests for browser node.(and all it's sub directories).
P= lease check the patch attached.

On Tue, Dec 10, 2019 at 6:34 PM Ad= itya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
[please u= se reply all to reply]

You can= add more variables to the response along with info and use those in the fr= ont end.

On Tue, Dec 10, 2019, 18:24 Karan Takalkar <karan1533os@gmail.com>= ; wrote:
Hi

I had been naively modifying jas= on response of connect function in databases __init__.py, later realized th= ere are a lot of dependencies on it and most of regression tests use:
=
if db_con["info"] =3D=3D "Database connected.": .<= /div>

I am now modifying the Alertify.success script* di= rectly responsible for the popup, i could append the database name in the m= essage but am having trouble finding the variable to supply server name.=
The file and location of function is :
* (web/= pgadmin/browser/server_groups/servers/databases/static/js/database.js line = 523)

the message should be:
Alertify= .success("(?server_name_variable?}+'/'+data.label+' - '= ;+res.info= ")

data.label contains database name
res.= info is the jason response coming from databases __init__.py connect fu= nction ; which is "Database connected."

On Mon, Dec 9, 2= 019 at 8:35 PM Aditya Toshniwal <aditya.toshniwal@enterpr= isedb.com> wrote:
Hi Karan,

Kindly add a hyphen between the message and names, create a patch= to pgAdmin hackers(check cc).
Kindly also run the t= est cases and pep8 before sending.

On Mon, Dec 9, 2019, 20:17 Karan Ta= kalkar <karan1533os@gmail.com> wrote:
I have updated the suc= cess message.=C2=A0
Please check the screenshots attached.=
Should i make a patch?

<= /div>
Regards,
Karan
On Mon, 9= Dec, 2019, 3:25 PM Aditya Toshniwal, <aditya.toshniwal@enterprisedb.com> wrote:
++pgadmin-hackers

=
Hi Karan,

It is good to know that you're contributing.
I would su= ggest {server name}/{db name} as name instead of did is better for UX. You = can get the db name from conn object and server name using the sid (refer -= =C2=A0web/pgadmin/browser/server_groups/servers/__init__.py)


On M= on, Dec 9, 2019 at 3:11 PM Karan Takalkar <karan1533os@gmail.com> wrote:
Hi,

<= div>I have been working on #4943 ("= Database connected" success message itself is not enough) added by you= on pgAdmin4 issues.
I = want to know what details of database should be included in success message= .(i have added 'did')

The suc= cess message can be modified by altering json response in the connect metho= d in file PGADMIN_SRC/web/pgadmin/browser/server_groups/servers/databases/_= _init__.py.
please have= a look at the screenshots attached.

original:
info=3D_( "= ;Database connected.")
new:
info= =3D_("Postgres version/{0} Database connected.".format(did))

Regards,
Karan
<= /span>


--
Th= anks and Regards,
Aditya = Toshniwal
Sr. Software Engineer |=C2=A0EnterpriseDB India |=C2=A0Pune
"Don't Complain a= bout Heat, Plant a TREE"


--
Th= anks and Regards,
Aditya = Toshniwal
Sr. Software Engineer |=C2=A0EnterpriseDB India |=C2=A0Pune
"Don't Complain a= bout Heat, Plant a TREE"


--
Thanks and Regards,
Aditya Toshniwal
Sr. Software Engineer |=C2=A0EnterpriseDB In= dia |=C2=A0Pune
"Don't Complain about Heat, Plant a TREE"
=
--000000000000f6759905996c8715-- --000000000000f6759a05996c8717 Content-Type: application/octet-stream; name="BUG_4943_updated_v3.patch" Content-Disposition: attachment; filename="BUG_4943_updated_v3.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k4194on50 ZGlmZiAtLWdpdCBhL3dlYi9wZ2FkbWluL2Jyb3dzZXIvc2VydmVyX2dyb3Vwcy9zZXJ2ZXJzL2Rh dGFiYXNlcy9fX2luaXRfXy5weSBiL3dlYi9wZ2FkbWluL2Jyb3dzZXIvc2VydmVyX2dyb3Vwcy9z ZXJ2ZXJzL2RhdGFiYXNlcy9fX2luaXRfXy5weQppbmRleCAyNmZkNWNjYWMuLmM0Y2I3MWExMSAx MDA2NDQKLS0tIGEvd2ViL3BnYWRtaW4vYnJvd3Nlci9zZXJ2ZXJfZ3JvdXBzL3NlcnZlcnMvZGF0 YWJhc2VzL19faW5pdF9fLnB5CisrKyBiL3dl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YXRhYmFzZScs IFsKICAgICAgICAgICAgICAgICBkYXRhLmljb24gPSByZXMuZGF0YS5pY29uOwogICAgICAgICAg ICAgICAgIHRyZWUuYWRkSWNvbihpdGVtLCB7aWNvbjogZGF0YS5pY29ufSk7CiAgICAgICAgICAg ICAgIH0KKyAgICAgICAgICAgICAgaWYocmVzLmRhdGEuaW5mb19wcmVmaXgpIHsKKyAgICAgICAg ICAgICAgICByZXMuaW5mbyA9IGAke18uZXNjYXBlKHJlcy5kYXRhLmluZm9fcHJlZml4KX0gLSAk e3Jlcy5pbmZvfWA7CisgICAgICAgICAgICAgIH0KIAogICAgICAgICAgICAgICBBbGVydGlmeS5z dWNjZXNzKHJlcy5pbmZvKTsKICAgICAgICAgICAgICAgb2JqLnRyaWdnZXIoJ2Nvbm5lY3RlZCcs IG9iaiwgaXRlbSwgZGF0YSk7Cg== --000000000000f6759a05996c8717--