Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP4Gj-00046e-Le for pgadmin-hackers@arkaria.postgresql.org; Mon, 18 Jul 2016 08:51:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bP4Gj-00076E-3f for pgadmin-hackers@arkaria.postgresql.org; Mon, 18 Jul 2016 08:51:17 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bP4GW-0006po-AT for pgadmin-hackers@postgresql.org; Mon, 18 Jul 2016 08:51:04 +0000 Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bP4GS-0001lH-6O for pgadmin-hackers@postgresql.org; Mon, 18 Jul 2016 08:51:03 +0000 Received: by mail-io0-x231.google.com with SMTP id q83so154143190iod.1 for ; Mon, 18 Jul 2016 01:50:59 -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=VdSfg/FWE462m31Qd6/C35305bnRQk88i1w3KEJtoD4=; b=KdmQqnOLC6IcUM9QRmwq+5jc0XsNEd877ruZWEf0FErpJY9TVVwO6c7zig4J7NCKfr RgGluGt6+X3ZApXsTs/e+bMddC/Nb+QnuEW0fmI1RDDWIw+yqJAKG+7Iz14YOaoDNZI5 /46B2RhzSA4IFNGDSLJfUXQNQLw5dhRtLPF/Jv7xXtUsjhpc0BpGCapMpktA5AQKD2hM l3Sl+HCe7f+JAjMCcGPL0FJNvtloCQP3CS1WFP1SH6R2xUMxggx4qcsFsAr2SIQfUztc QE+93Ip3Fujl01lt+eMrNFM9+yTrwpMMq3LRCbL0t6MRj1F8vYdap3xajG/weNshFInr TOGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VdSfg/FWE462m31Qd6/C35305bnRQk88i1w3KEJtoD4=; b=PZNe8zmoFd44vV6DeLEIiUDGLC39INn+0g5xylyEEPoZNkSLJq6FrD1hlAJcXPNdRi d1ykKlWp6oZf4yRO6eL6B9J5+nX0az4honVmOZKmKcI059bCY9hRZzEr1jt1yrNNhc3Y IVrnoeL3NBtjN+WCR5fFM5icCdLMowGpKm6hpzQnZisklA2WWYRtbaWCeArykRdbacMX F5hk7nIXMbE4iPjuQTjwuaBDmhq/iRDH0WvdDtcodl7eEbGtn6ZCCCqjqxic8RlEblx4 HTGtvbY08Wczn0nqUKthxy8R/pwDcPlak/LjzPiuEBKva6B82Pq8mhOaES8q+tSF1G4/ 9RIg== X-Gm-Message-State: ALyK8tIuHr+i23LGp3yM+U/0FXtayxZNZlPa4dmyJiGKxXYZ0bFNomvm1hJ4urubgE5lCttCRqv5wn3o6WcyIg== X-Received: by 10.107.205.129 with SMTP id d123mr33164114iog.70.1468831857865; Mon, 18 Jul 2016 01:50:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Mon, 18 Jul 2016 01:50:57 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Mon, 18 Jul 2016 09:50:57 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: RM#1462- AJAX request do not get fired second time To: Surinder Kumar Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi On Mon, Jul 18, 2016 at 8:34 AM, Surinder Kumar wrote: > Hi > > Please find attached patch for the fix: > Issue: > This issue is regression of one of the flickering issue of RM#1242. > "Aside from displaying/hiding the spinner, panes should have their content > refreshed until and unless the new data differs from the previous, to reduce > flicker" > > Solution: > Along with caching the node node, we should also keep track of the previous > node clicked. > Fetch new data iff previous node and current node clicked differs. This doesn't fix the issue for me. My test case: 1) Select the SQL tab 2) Click a schema, and the SQL is displayed. 3) Click Schemas, and "-- No SQL could be generated for the selected object." is displayed. 4) Click the same schema as in step 2 again, and "-- No SQL could be generated for the selected object." remains displayed. Note that clicking any other schema in step 4 works fine. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers