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 1glurK-0005Mh-8p for pgadmin-hackers@arkaria.postgresql.org; Tue, 22 Jan 2019 12:08:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1glurI-0004lZ-Lf for pgadmin-hackers@arkaria.postgresql.org; Tue, 22 Jan 2019 12:08:48 +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 1glurI-0004lS-G1 for pgadmin-hackers@lists.postgresql.org; Tue, 22 Jan 2019 12:08:48 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glurC-00053G-45 for pgadmin-hackers@postgresql.org; Tue, 22 Jan 2019 12:08:47 +0000 Received: by mail-ed1-x544.google.com with SMTP id b14so19083757edt.6 for ; Tue, 22 Jan 2019 04:08: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=R/4jeoQMDYDDDRnn4zD75YmFHY/EeWy5DJFiL7Odmn4=; b=X90y2ZaQO+BhHqIVie5yCFGBJ8ON7ta8YLmkSM+eE0F2g5RZlWUUIYZ/4RUotJHXZE 1uaxrjgKzHT2mO8fDjNTKqH3LmGDdllFAirf+X1ny9S6rtJ5b9rfbqr80wVjylnVtuJ+ IARrwME0/dkQ01HrIOm4aZsIL9Zc4thWgP/1hMvA/AGmKaAtQ1RM6Ti+6A35UaBevXeJ Op4boMKEA19nZD/tL0PJY7XjVMRD5xZXWZHWKowuEQvY+q/rfm/SkrChrISxhf/FcPX/ QDZyETV+QYU5YKYuEquHSYPTaqSEpO7DX+3AyJMX8MDs7hpNT2J9LoNtNqAp75Mi6tAf wsqw== 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=R/4jeoQMDYDDDRnn4zD75YmFHY/EeWy5DJFiL7Odmn4=; b=oMDeK8ZFrz23WMGL1T+u7PYLgtVuUm7kZYvH2f3dCmHJ4Rnlkjnk/HmGtBaN7A5ptW HZeLJ0Q1ie/o4mJAA1z0GqYbld947RkBGUhvq55DnAUhnJQJclA74iVW70/H1jDLOsVs iHtzcTmadPdtlWDSkZKYISpvB51hA1fAwx9U0wpQhpe5S/FmbcCDUwsTr8YxC51rjEEo IacGZUrZeP85m0Nky5eQRVyvnWeJZgI9SVD5KiZECZ+HdggP0nLpUqCHdCtmomde+jPN hlypzdHWhyW+5qb5+Bps9Q/GxXyNSnrRVJcWPDGDxJJmalw30dwkUOeEGiNCBTGS4CBF rZ+A== X-Gm-Message-State: AJcUukfN2ee38CL58VH8arzpkpJP7HLiLZhUr9fbPjdigNQ876lSlzks SxkZBuft3bDewWx4Tvog/3mo8TDItXwoo3pXdaptRLWACezoW2RBY8vjUSFQq9hKUkUplOmeODL MxE4UdQJ00nPWu8POXYt+KyzwOfYduTmbBU5XIiUm1MwSUyPt/aVbe31m1nZRlGGUsmWO/53yh9 jpDQhtPRm2AFw= X-Google-Smtp-Source: ALg8bN7FFyYIuNFhIJOii4EMcLkhNx7dCUebJK/TMC/Q9uUif9IHf6nrLmuAad3GYi/hC1JadYo0vw== X-Received: by 2002:a50:bf02:: with SMTP id f2mr29964111edk.157.1548158918954; Tue, 22 Jan 2019 04:08:38 -0800 (PST) Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com. [209.85.221.51]) by smtp.gmail.com with ESMTPSA id k32sm9788211edb.42.2019.01.22.04.08.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 04:08:38 -0800 (PST) Received: by mail-wr1-f51.google.com with SMTP id t6so26998906wrr.12 for ; Tue, 22 Jan 2019 04:08:38 -0800 (PST) X-Received: by 2002:adf:f649:: with SMTP id x9mr32065514wrp.247.1548158917595; Tue, 22 Jan 2019 04:08:37 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dave Page Date: Tue, 22 Jan 2019 12:08:26 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [pgAdmin4][RM3849] Ask to save unsaved query changes stopped working To: Aditya Toshniwal Cc: Akshay Joshi , pgadmin-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jan 22, 2019 at 12:01 PM Aditya Toshniwal wrote: > > > > On Tue, Jan 22, 2019 at 5:27 PM Dave Page wrote: >> >> On Tue, Jan 22, 2019 at 11:54 AM Aditya Toshniwal >> wrote: >> > >> > Any suggestions on preferences name/desc ? >> >> Name: "Confirm on close" >> Desc: "Confirm closure of the browser or browser tab is intended >> before proceeding." > > It also warns on refresh. Name: "Confirm on close or refresh" Desc: "Confirm closure or refresh of the browser or browser tab is intended before proceeding." >> >> >> >> > On Tue, Jan 22, 2019 at 3:01 PM Dave Page wrote: >> >> >> >> Hi >> >> >> >> On Tue, Jan 22, 2019 at 6:27 AM Akshay Joshi >> >> wrote: >> >> > >> >> > Hi Aditya >> >> > >> >> > Below are my review comments: >> >> > >> >> > You have added new config parameter "DISABLE_BEFOREUNLOAD_MESSAGE" to make this request configurable, should it be the part of preferences setting instead of configuration? @Dave can you please comment on this. >> >> >> >> That does seem like something that should be a per-user preference, >> >> not a global config option. >> >> >> >> > Name "DISABLE_BEFOREUNLOAD_MESSAGE" is not clear as users perspective, can you please change it to some meaningful name. >> >> > >> >> > Apart from that code looks good to me. >> >> > >> >> > On Mon, Jan 21, 2019 at 1:24 PM Aditya Toshniwal wrote: >> >> >> >> >> >> Hi Hackers, >> >> >> >> >> >> Attached is the patch to throw alert warning when user reloads or closes the browser. >> >> >> >> >> >> Kindly review. >> >> >> >> >> >> -- >> >> >> Thanks and Regards, >> >> >> Aditya Toshniwal >> >> >> Software Engineer | EnterpriseDB Software Solutions | Pune >> >> >> "Don't Complain about Heat, Plant a tree" >> >> > >> >> > >> >> > >> >> > -- >> >> > Akshay Joshi >> >> > Sr. Software Architect >> >> > >> >> > >> >> > Phone: +91 20-3058-9517 >> >> > Mobile: +91 976-788-8246 >> >> >> >> >> >> >> >> -- >> >> Dave Page >> >> VP, Chief Architect, Tools & Installers >> >> EnterpriseDB: http://www.enterprisedb.com >> >> The Enterprise PostgreSQL Company >> >> >> >> Blog: http://pgsnake.blogspot.com >> >> Twitter: @pgsnake >> > >> > >> > >> > -- >> > Thanks and Regards, >> > Aditya Toshniwal >> > Software Engineer | EnterpriseDB Software Solutions | Pune >> > "Don't Complain about Heat, Plant a tree" >> >> >> >> -- >> Dave Page >> VP, Chief Architect, Tools & Installers >> EnterpriseDB: http://www.enterprisedb.com >> The Enterprise PostgreSQL Company >> >> Blog: http://pgsnake.blogspot.com >> Twitter: @pgsnake > > > > -- > Thanks and Regards, > Aditya Toshniwal > Software Engineer | EnterpriseDB Software Solutions | Pune > "Don't Complain about Heat, Plant a tree" -- Dave Page VP, Chief Architect, Tools & Installers EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company Blog: http://pgsnake.blogspot.com Twitter: @pgsnake