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 1ghBNN-0001jV-N6 for pgadmin-hackers@arkaria.postgresql.org; Wed, 09 Jan 2019 10:46:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ghBNM-0000e3-Af for pgadmin-hackers@arkaria.postgresql.org; Wed, 09 Jan 2019 10:46:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghBNM-0000dw-1k for pgadmin-hackers@lists.postgresql.org; Wed, 09 Jan 2019 10:46:20 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghBNI-0005DK-NE for pgadmin-hackers@postgresql.org; Wed, 09 Jan 2019 10:46:18 +0000 Received: by mail-lj1-x243.google.com with SMTP id u89-v6so6085189lje.1 for ; Wed, 09 Jan 2019 02:46:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=ejfWAgUO3QWqi+6L+5fGe8JR9I8s8w6/Qh5G4N9aD+Y=; b=qWs1I05w2Ay+/wbprNWS7uJS6lTUgjbvpfmlb7WShb9ZiS3q8UxlqfKI5i7XO/NcSo scJnf7fCF1/Ttfcpie0Ww7FdlVsrV1VwPXR4A/5WWa7+arJsiaglE/cZoy/7AjKpgZ5g phdhIhYVUHfHecDqYxz4PtkoFPSOUAeeZAah0Dpf00jSyQH07MclcbNjjsI6mmmw3zY8 +kSQPasKvsBb1S25w0R28ws6h2SpwqdVQ2ajHwTcdbNhOGrRey0Sj6r5GXVI4rBFdfCA YFbov0kD66ADxSh+nN9SomOQ8noWV3G0fc7cdIujye0lnEexU9Re3h6iD7qEBKAZkRKo YlIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ejfWAgUO3QWqi+6L+5fGe8JR9I8s8w6/Qh5G4N9aD+Y=; b=TTFebA6+Vw7JCPYW1hKYNo5x0kMxaP5fTapni4rK6AonrLKGk7HziD/RIKok6uL9Up lOBeQjpvpfvzKrg2A58sezcTjh2gmcERiQjH4/DjeXmlpFiixMBBy0fxAsCNjyBs0dcm gn++PQh5a1gFVGiINrRWbza3k/U2RhAkzNCB/8oGAhSALuMXgwNKp3ossyykmFherqCM MPRKbmcYl++69Ht1dA7kdBhuuXNurqVauDS1Upv/lag4or07iDZTw+HKPDE7fgyB50Qy Q7tbEwPUAaZN4ISt8IJ/hu2dpGVSgMdnteAa/v0e7YJfkK/Iuvs4nUwUC6FJplbwlB2m p0vA== X-Gm-Message-State: AJcUukf4XvVbr4i8sYjfSXlAwZnoSRr0HFivV9miDDxajcr529trIFLF TrJWmy7yg14grdCbEs6iwNkcxV0OLyWRaFhP9B83jYhVRtc= X-Google-Smtp-Source: ALg8bN5S+TfZcTAJ2I5yDRbb/jXvKVwRmLOCqE1tcAQFzgOhowkJBZ9sdm6ukEarR6fw5OqXQfr155TscAqfITji7mY= X-Received: by 2002:a2e:9f0b:: with SMTP id u11-v6mr2690598ljk.99.1547030774443; Wed, 09 Jan 2019 02:46:14 -0800 (PST) MIME-Version: 1.0 From: Aditya Toshniwal Date: Wed, 9 Jan 2019 16:16:03 +0530 Message-ID: Subject: [pgAdmin4][RM3575] Right click does not work on database node if server name changed To: pgadmin-hackers Content-Type: multipart/mixed; boundary="000000000000c4b07e057f042b3a" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000c4b07e057f042b3a Content-Type: multipart/alternative; boundary="000000000000c4b07b057f042b38" --000000000000c4b07b057f042b38 Content-Type: text/plain; charset="UTF-8" Hi Hackers, Attached is the patch to fix the issue where changing the name (or any visible property on tree) of the server node breaks the context menu on the database nodes. The user information of the server is updated on successful connection. Here, the data is updated on the aciTreeNode(domNode). But, in the context menu the user data is referred from TreeNode object (a wrapper to aciTreeNode). After checking the code (and a lot of debugging) it was found that aciTreeNode and TreeNode point to two different data(I don't know why). Every time you change one, it should be synced to other, which is not done everywhere. Changes are done to point both aciTreeNode and TreeNode data to the same data object. Kindly review. -- Thanks and Regards, Aditya Toshniwal Software Engineer | EnterpriseDB Software Solutions | Pune "Don't Complain about Heat, Plant a tree" --000000000000c4b07b057f042b38 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Hackers,

Attached is the patch to fix the issue where c= hanging the name (or any visible property on tree) of the server node break= s the context menu on the database nodes.

The user information of the = server is updated on successful connection. Here, the data is updated on th= e aciTreeNode(domNode). But, in the context menu the user data is referred = from TreeNode object (a wrapper to aciTreeNode). After checking the code (a= nd a lot of debugging) it was found that aciTreeNode and TreeNode point to = two different data(I don't know why). Every time you change one, it sho= uld be synced to other, which is not done everywhere.
Changes are done to p= oint both aciTreeNode and TreeNode data to the same data object.

=
Kindl= y review.
--
Thanks and Regar= ds,
Aditya Toshniwal=
= Softwa= re Engineer |=C2=A0EnterpriseDB Software Solutions |=C2=A0Pune
&qu= ot;Don't Complain about Heat, Plant a tree"
--000000000000c4b07b057f042b38-- --000000000000c4b07e057f042b3a Content-Type: application/octet-stream; name="RM3575.patch" Content-Disposition: attachment; filename="RM3575.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jqp264xg0 ZGlmZiAtLWdpdCBhL3dlYi9wZ2FkbWluL3N0YXRpYy9qcy90cmVlL3RyZWUuanMgYi93ZWIvcGdh ZG1pbi9zdGF0aWMvanMvdHJlZS90cmVlLmpzCmluZGV4IGVkMmY2M2Q5Li43ODJmNGQ1OSAxMDA2 NDQKLS0tIGEvd2ViL3BnYWRtaW4vc3RhdGljL2pzL3RyZWUvdHJlZS5qcworKysgYi93ZWIvcGdh ZG1pbi9zdGF0aWMvanMvdHJlZS90cmVlLmpzCkBAIC0xMzUsNyArMTM1LDcgQEAgZXhwb3J0IGNs YXNzIFRyZWUgewogICAgIH0KICAgICBjb25zdCBvbGROb2RlID0gdGhpcy5maW5kTm9kZShvbGRO b2RlUGF0aCk7CiAgICAgaWYgKG9sZE5vZGUgIT09IG51bGwpIHsKLSAgICAgIG9sZE5vZGUuZGF0 YSA9IE9iamVjdC5hc3NpZ24oe30sIGRhdGEpOworICAgICAgb2xkTm9kZS5kYXRhID0gZGF0YTsK ICAgICAgIHJldHVybiBvbGROb2RlOwogICAgIH0KIAo= --000000000000c4b07e057f042b3a--