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 1glsP5-0003ba-Ol for pgadmin-hackers@arkaria.postgresql.org; Tue, 22 Jan 2019 09:31:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1glsP4-0008Sx-Du for pgadmin-hackers@arkaria.postgresql.org; Tue, 22 Jan 2019 09:31:30 +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 1glsP4-0008PQ-4d for pgadmin-hackers@lists.postgresql.org; Tue, 22 Jan 2019 09:31:30 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glsP1-0000l8-By for pgadmin-hackers@postgresql.org; Tue, 22 Jan 2019 09:31:28 +0000 Received: by mail-ed1-x543.google.com with SMTP id f9so18700179eds.10 for ; Tue, 22 Jan 2019 01:31:27 -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=BKthxHDcKYPFiMOvW29XLvSTNB9+pb4gb3WvDBp5wbU=; b=EsBNHHlxZ/inUV00VpGAbQPL7MXguh2ioKCWuavq4FzEaavXbWXPOPi5CT3DmiPTg9 wu+8RiPeyCOdIFrTT01bZPluKikzMZh8VqHK5T8dQ7tzBp2aeLZC1LlgzZ86kgXRmX3O /24vXXghV99e6JCDUbonomA+AcF36/7GwEBMpYke1Idr8RoN2g8nxun2ZlA3zzdCr5rZ gdLz7s/17fXlfB6dcf0jqevVI2rAWsJZDoOqSIetD+iWwkR/sdqg9Ip3cNfPD/3bmy7Q tOhvn96PKrh+MdBRcCNbrQibQnWu8OmMR+Mp0/bd85OFOGu7Io9sfzYzt9FPEwSBl+Rb GRyw== 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=BKthxHDcKYPFiMOvW29XLvSTNB9+pb4gb3WvDBp5wbU=; b=OABt2VvKt92O3mZ9+5mG3yFGTR4piFsrWbwA/SqBmXTW2M+OUPOj92YLXAlVe3b9Xr QoPqYarHv5jdZq/GqgnXnwY6vxNbkOk6L2OCzFoQvVBW9Bntmipf50PO4/TIhuyipNbF QCdicJmZfIulKZ5zs6p/uh6O7+F60uCFOG8mjuBByeEgC7mKZgbcLlSeo2ZERvqLAhYa NeOKzFQovKI43i4rNL0P9hwZXqPsMAemVGWtzHC8i79N1koDWm6ZX6OE+uOpSLCRBhz3 QZgb71ZHx+o62rdiUJewMJUTT7EoYQNcXZXa8q3q+l8W2RqyWQYO7MzYfY6ACD+fJhDG PWFA== X-Gm-Message-State: AJcUukctWn07iY4NLeFzFAWTv6iOTz1oWQRaS6TNkFhGIeimXT/1sIsT 2m6Im/CwLw28wjfMGIo8c90cOOlmoARLLEsHN1oxCyZOi1JwHv1AqkWHoP2us3gPcdjf25BLwh8 +uOMBVGYjRk7rBfpY9BDcv9ZM7LD7yiF3IbZ6JSTwIIjU8SZ92eag9aJX6HmuNDkFasK2GCrW2/ BNpqn/eByWt4U= X-Google-Smtp-Source: ALg8bN5T7ucqtGrYvOZbEge91AQ8pNK1O2xn68XXpvoTNtBmiqWECjDKS5be1ZecQUJToL32J9Q2CQ== X-Received: by 2002:a17:906:c5a:: with SMTP id t26-v6mr26927992ejf.140.1548149485150; Tue, 22 Jan 2019 01:31:25 -0800 (PST) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com. [209.85.221.46]) by smtp.gmail.com with ESMTPSA id q26-v6sm3498820ejb.33.2019.01.22.01.31.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 01:31:24 -0800 (PST) Received: by mail-wr1-f46.google.com with SMTP id x10so26419324wrs.8 for ; Tue, 22 Jan 2019 01:31:24 -0800 (PST) X-Received: by 2002:adf:97d1:: with SMTP id t17mr32128934wrb.283.1548149483813; Tue, 22 Jan 2019 01:31:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dave Page Date: Tue, 22 Jan 2019 09:31:12 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [pgAdmin4][RM3849] Ask to save unsaved query changes stopped working To: Akshay Joshi Cc: Aditya Toshniwal , pgadmin-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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