Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3MhZ-0005ja-Nd for pgadmin-hackers@arkaria.postgresql.org; Tue, 03 Apr 2018 14:14: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 1f3MhY-00063O-M1 for pgadmin-hackers@arkaria.postgresql.org; Tue, 03 Apr 2018 14:14:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3Mh3-0004gg-HZ for pgadmin-hackers@lists.postgresql.org; Tue, 03 Apr 2018 14:13:49 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f3Mgz-0000dq-Tp for pgadmin-hackers@postgresql.org; Tue, 03 Apr 2018 14:13:47 +0000 Received: by mail-wm0-x22d.google.com with SMTP id t67so14212312wmt.0 for ; Tue, 03 Apr 2018 07:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yH1tbSm86ZCt3JM3w3pwG0fy0G/ruolY5AFuEKv3Vv4=; b=hmmWE23pTBOTeHSEWSiW/aiFd92HaCD/W9sXB7FkRStbGrfKEYGN7sJlzFxIL1GLFh pisuzWNJLbvlfiVnMIsAhBR1h8eKStVv9vVh6O9FClCLemmwq/dt1g0wiSZtuo1gQVk6 0WycDB726v490VESo8FYV4zBGipRtelyaE1hz7E2z2Jy4o5PQwg9Q1UTlT87vXrwT15R ElkcE6yxd0zefcMxtD7CrM50/7XBfGSalC0ylgySmMutz5lYI9VZcAa+5UttF8bIphTk GtK/BqIu3CZTQ9+8pRTMDpchRNV8EsNmV1GEKM4v+W+olZJxjOyclQWUNs310RjxRYtU nrkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yH1tbSm86ZCt3JM3w3pwG0fy0G/ruolY5AFuEKv3Vv4=; b=Z+8gd8qhDpngI9aGHs7UReF5pwxfyxqNSUO6EX4P2W0mQOHbJB7IvRAxgUfpjJ02uV cVJLzt2+XiU0Ow+Jp/EFSf2Xbm50+6pjTAbwYacqTZ72YnW4YQgtxsA1oLq+xCTPkYJn PT+YfVEwXzyLIKwx3Ta7s5oGYNth+fWRbIwso9vs+1QYENoaVtHNDn2PFUePtncIlH8c mqTCSj/jwKk8yuUUNQdhDFnroo2ldS3N/jA92FYe8x5a5V6zQ790xAirNJyqLgqtTzyQ KxcmwcjFSFHfPBZ6Jl4sHFJme48GbiSb2mtwFPpUvPSQRKjI1h66JWdnpaF956NLjKS1 OdMA== X-Gm-Message-State: ALQs6tC66fBjkPvq51dJVLnR42/3OBwuIUZpbcXpkPR8o1gR8MaV2Knb aSoLrVc1onaOFnYZRs9jUGkgq5MtvgU9mhHRRIRWVA== X-Google-Smtp-Source: AIpwx4+S/24Vs1MAybc/+5Mdd8SVVG+I6LtRV7KH+y85aC5lFRzIJlUidWazMjR8P62MNWI10zc5J4gtJnTJlJa4sFs= X-Received: by 10.28.124.14 with SMTP id x14mr4645745wmc.86.1522764824085; Tue, 03 Apr 2018 07:13:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.69.220 with HTTP; Tue, 3 Apr 2018 07:13:43 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Tue, 3 Apr 2018 15:13:43 +0100 Message-ID: Subject: Re: [pgAdmin4][RM#3235] Code refactoring in Query tool To: Murtuza Zabuawala Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="089e082d11a06a9c290568f250b7" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --089e082d11a06a9c290568f250b7 Content-Type: text/plain; charset="UTF-8" HI On Tue, Apr 3, 2018 at 12:27 PM, Murtuza Zabuawala < murtuza.zabuawala@enterprisedb.com> wrote: > Hi, > > PFA patch to extract the common code from query tool to handle ajax errors > & connection handling, Also added unit tests around extracted code. > Looks good to me, except, I wonder if we should rename is_new_transaction_required.js/is_new_transaction_required_spec.js to something a little more generic; maybe conn_tx_handler_funcs.js? Not sure I like that though. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --089e082d11a06a9c290568f250b7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
HI

On Tue, Apr 3, 2018 at 12:27 PM, Murtuza Zabuawala = <murtuza.zabuawala@enterprisedb.com> wrote:
Hi,

PFA patch to extract the common code from query tool to handle ajax= errors & connection handling, Also added unit tests around extracted c= ode.=C2=A0

Looks good to me, ex= cept, I wonder if we should rename is_new_transaction_required.js/is_new_transaction_required_spec.js to something a little = more generic; maybe conn_tx_handler_funcs.js? Not sure I like that though.<= /span>


--
Dave Page
Blog: http://pgsnake.blogspot.= com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The = Enterprise PostgreSQL Company
--089e082d11a06a9c290568f250b7--