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 1ghTkV-0002kc-Ru for pgadmin-hackers@arkaria.postgresql.org; Thu, 10 Jan 2019 06:23:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ghTkU-0001zf-Hd for pgadmin-hackers@arkaria.postgresql.org; Thu, 10 Jan 2019 06:23:26 +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 1ghTkU-0001zY-Bn for pgadmin-hackers@lists.postgresql.org; Thu, 10 Jan 2019 06:23:26 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ghTkN-0006pH-QJ for pgadmin-hackers@postgresql.org; Thu, 10 Jan 2019 06:23:25 +0000 Received: by mail-wr1-x441.google.com with SMTP id l9so9941452wrt.13 for ; Wed, 09 Jan 2019 22:23:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=yPsvT7oTPabw1iBH9UMhlPJC1YfDguEmbaM6/aU9IkE=; b=Pb/dB1gkG9dQFP32Zx83qLDjr0EXuPs19hIL54nnXpawJqQ5Vang8YEbUyS5JJP8n1 r57jjUhcO6/WxHqJ8TFc6e7iqetVCY6F1+x5WV26g0wEsq4sWMmndLGvVrOnGRx1kfj1 kmo+v82ZpqtiY2wkNonw1rLTRDemtvD/gnKJeS9l6jDK5D2pT3JV+9idfnPdV40wnX67 NKqszDI5PtUh0hVJEpEgw5iSPnAn3g8s1YC1qZitP8hXnSALhmUogRhRRd8SsQVS+YzF /tKhAGd+3kO4oMtmrNgEvppxVjVHxbUbzy8Peg0ZEqepR+7NrtNMqqDTOKZ5iGuTEh3O cMxQ== 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:content-transfer-encoding; bh=yPsvT7oTPabw1iBH9UMhlPJC1YfDguEmbaM6/aU9IkE=; b=rvvrq+DB/0NaBYbxUMPG0YU/k/d3eGPBvSb4H60i+ByB/s+IB6SrkIl+7F9wIY/yUQ wbafayqm3dvzPpw0PsU7q1OkaZSz+hQwbXewCv+xDxciY7MFKBmW95Ki7vTDhAhXYd5i N8UpmuQneC9rLPmemh159cX7v235HzmABDX1yP5x/1NQTtSckshyuBzA86GhNiGtF/QD rcrmru02SYK4r8Bj/uuMBoQy8aCjF/o0Ck/yuL/PitzJfNB6MNxSq4yFP4L3zQEdNzya C5dqEG7HHdwjR+HdLJ3LZRC6NWYsGrR/4jiFogWI9yHbNDyeYshtSkR2pdU1H5f4qRol c+qg== X-Gm-Message-State: AJcUukfP8dTtljBoxyvRC/f3fWvWMOFs3IvepqJ6JE6hEkfCgHkxaI5b tDpbYDgF2pT4oLFOKJd/9o5DhNBBOeZqmYPhn/4Q04D+bp/5iw== X-Google-Smtp-Source: ALg8bN4WydggM5mmvZaTlr7J9L8yvxRtzzSwW2Sia4czc7VNcEhf5sFcNXLPZecH/EN+y3DIewSonnLuV7hXv1XJmZQ= X-Received: by 2002:adf:f649:: with SMTP id x9mr7513711wrp.247.1547101397335; Wed, 09 Jan 2019 22:23:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dave Page Date: Thu, 10 Jan 2019 11:53:05 +0530 Message-ID: Subject: Re: [pgAdmin4][RM3575] Right click does not work on database node if server name changed To: Aditya Toshniwal Cc: pgadmin-hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thanks - patch applied. On Wed, Jan 9, 2019 at 4:16 PM Aditya Toshniwal wrote: > > Hi Hackers, > > Attached is the patch to fix the issue where changing the name (or any vi= sible property on tree) of the server node breaks the context menu on the d= atabase nodes. > > The user information of the server is updated on successful connection. H= ere, the data is updated on the aciTreeNode(domNode). But, in the context m= enu the user data is referred from TreeNode object (a wrapper to aciTreeNod= e). After checking the code (and a lot of debugging) it was found that aciT= reeNode and TreeNode point to two different data(I don't know why). Every t= ime you change one, it should be synced to other, which is not done everywh= ere. > 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" --=20 Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company