Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm9pz-0000Xf-6t for pgadmin-hackers@arkaria.postgresql.org; Thu, 27 May 2021 06:49:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lm9py-0002Wi-75 for pgadmin-hackers@arkaria.postgresql.org; Thu, 27 May 2021 06:49:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lm9px-0002Wa-Tk for pgadmin-hackers@lists.postgresql.org; Thu, 27 May 2021 06:49:46 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lm9pv-0007cF-H1 for pgadmin-hackers@postgresql.org; Thu, 27 May 2021 06:49:44 +0000 Received: by mail-il1-x12b.google.com with SMTP id h11so3174654ili.9 for ; Wed, 26 May 2021 23:49:43 -0700 (PDT) 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=CbXxr6tqvddEg7wPABW2+AdBAYvriMS7Bl7gtzpfeYs=; b=Na2eu/YHhWdDg48K+eL3nA89N4QdkUZHZXxt4UjqUxSv3PnUb6UKT88tJLmTrO9DpP 2bxOYQAnHnX8fl+ZWcOYR0LgOCy90dtHKCXUKj9LpD26Wdr5ZhzWrrdXuXqcWXpCZnV0 UodBuipcn0pqyVa3AZA4ned7sXWJ7Z9qfp47i9CYxZMQbKR+9t6ZN0ITczNds+J1c2va Jtfsz9OUKVjaLz27wHk3Gxdl1jifwReFPOcdKwFEv6iQjbR1wSCDb9YCt/vtpXvdG4st bXBqHfGr2SNVeta22TLkDoZYSZE/ze74iz8cPhlsvW+N/3tGPg7gkf9wApvL/zlajkE/ fKLg== 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=CbXxr6tqvddEg7wPABW2+AdBAYvriMS7Bl7gtzpfeYs=; b=VLk9es6KL1ha1rPZUTzDGWFM5/frNo5xROnu7im5Af9vRSmWAAa2B9iVhMtPmx0VWn cosID4Nrb2slFfw06P0wiL0q+yC6ZHghz/aj2ynMM9/WdYxM/NtSY7MnsAwNw4YWYugu 6626YNNeZDnshaVeixPQ4zqAM/jqY07EKtvJWyuSjNTlWffPN22auIyxJF8BPOyyXJ4k t5HW7sR2qa+WefVOqV8T3qai2wS9Eom7QhPC75Uu0qWkuphVHqJUnOjUDFsC/kvkSN7B 3a52UnmKmL2G73unHuP1nAqsob38EQ/GsjTO88Es53xUgizZUsw3APZiLERKDrqNtlWN Kdfg== X-Gm-Message-State: AOAM5333XmMqdcM7tzB4/HluKKHiLJTzLqfvqX1HdnFog/DdSwpaEipC kptzzcL4fHMiPHtV32P/J84abN8hyx6waQdwfceJ+fznKNXkINRh8BTbMvEUzdYBjtscOmGSYyK KdXPIgs2GQT1CbHw6eVkZeuVdWC6cc8gqjzKbVC2XALZaG/liI61PtYlXi6uMCHWalD0D4RhRWw myjnckKlBV3+rQFsAoMjfL5YKuQP52iPxwt2J5pcbKJ5XK7nv7XzBzXCQewQ== X-Google-Smtp-Source: ABdhPJywgIHK3//y0h1yO0GjE8CoSxqZ3xqcX+FhU8MpX+7AKXq95MaxqCQBwXv90x2Cz4ziMd5R4wnwDo8Dvq1f+qg= X-Received: by 2002:a92:d48d:: with SMTP id p13mr1859054ilg.236.1622098182410; Wed, 26 May 2021 23:49:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Thu, 27 May 2021 12:19:31 +0530 Message-ID: Subject: Re: [Patch][pgAdmin] RM4203 Rename Database by another user To: Rahul Shirsat Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000f42ac505c34a2939" X-CLOUD-SEC-AV-Info: enterprisedb,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: Archived-At: Precedence: bulk --000000000000f42ac505c34a2939 Content-Type: text/plain; charset="UTF-8" Hi Rahul Following are the review comments: - Why you have changed the order of the toolbar button on the browser tree? It should not. - *sqleditor.js (check_db_name_change function)* - var declaration should be comma-separated instead of writing var, again and again. - Add proper comments. - Remove dots from the string "Database moved/renamed.." - "Please note that the database you are working on has been moved or renamed to ${data.actual_db_name}. Refresh databases in browser panel or click OK to continue.." should be changed to "Current database has been moved or renamed to ${data.actual_db_name}. Click on the OK button to refresh the database name." On Wed, May 26, 2021 at 2:07 PM Rahul Shirsat < rahul.shirsat@enterprisedb.com> wrote: > Hi Hackers, > > Please find the attached patch which resolves the issue of renaming the > database by another user. > > A minor issue of navigation button alignment is also fixed in this patch. > > -- > *Rahul Shirsat* > Senior Software Engineer | EnterpriseDB Corporation. > -- *Thanks & Regards* *Akshay Joshi* *pgAdmin Hacker | Principal Software Architect* *EDB Postgres * *Mobile: +91 976-788-8246* --000000000000f42ac505c34a2939 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Rahul

Following are the review = comments:
  • Why you have changed the order of the toolbar b= utton on the browser tree? It should not.=C2=A0
  • sqleditor.js (ch= eck_db_name_change function)
    • var declaration=C2=A0shoul= d be comma-separated instead of writing var, again and again.
    • Add p= roper comments.
    • Remove dots from the string "Database moved/re= named.."
    • "Please note that the database you are working o= n has been moved or renamed to ${data.actual_db_name}. Refresh databases in= browser panel or click OK to continue.." should be changed to "C= urrent database has been moved or renamed to=C2=A0${data.actual_db_name}. C= lick on the OK button to refresh the database name."=C2=A0


On Wed, May 26, 2021 at 2:07 PM Rahul Shirsat= <ra= hul.shirsat@enterprisedb.com> wrote:
Hi Hackers,

Please find the attached patch which resolves the issue of renaming the da= tabase by another user.

A minor issue of navigatio= n button alignment is also fixed in this patch.

<= /div>--
Rahul Shirsat
Senior Software Engineer=C2=A0|=C2=A0EnterpriseDB=C2=A0Corporation.=


--
Thank= s & Regards
Akshay Joshi
pgAdmin Hacker | Principal Softw= are Architect
EDB Po= stgres
Mobile: +91 976-788-8246

--000000000000f42ac505c34a2939--