Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSm3y-0000AC-PO for pgadmin-hackers@arkaria.postgresql.org; Tue, 12 Jun 2018 16:22:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSm3w-0006mQ-SN for pgadmin-hackers@arkaria.postgresql.org; Tue, 12 Jun 2018 16:22:28 +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 1fSm3w-0006mG-Jb for pgadmin-hackers@lists.postgresql.org; Tue, 12 Jun 2018 16:22:28 +0000 Received: from mx0a-00296801.pphosted.com ([148.163.150.38]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSm3s-0005eU-2x for pgadmin-hackers@postgresql.org; Tue, 12 Jun 2018 16:22:26 +0000 Received: from pps.filterd (m0114581.ppops.net [127.0.0.1]) by mx0a-00296801.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5CGLPYG014083 for ; Tue, 12 Jun 2018 16:22:21 GMT Received: from mail-io0-f197.google.com (mail-io0-f197.google.com [209.85.223.197]) by mx0a-00296801.pphosted.com with ESMTP id 2jjga8r2ph-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 12 Jun 2018 16:22:21 +0000 Received: by mail-io0-f197.google.com with SMTP id 140-v6so20958iou.14 for ; Tue, 12 Jun 2018 09:22:21 -0700 (PDT) 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=Diq3KUq4NAv7ZFqbTLp1ejIJB4aomv2wedhpd6VgJJg=; b=bR7eSDkFo/L6gKfuwJvqiDd9+MIZ4PdtnLtWsUBSHVLlKVOpDm0PER0jQmihY8o9By x1GVln4Tjd/huWKC4sqNwqEm4Je0YN0B67ir0rGkUJrOQedzRg8nLiheB7wmNjICbsrP mLqb+NrF/hTe+u2Z30FFpDIWiiCk7ZGsXmZUCWT5z7zneb8AgvRb1+DvjVOK4swLNEjb qLjEm4KOOt1gB3u9UyEHZhEUbUxOHNeieu8l/PiLdZLrdGXuLfj8O+Q/pjjlBMDbPsx3 cAgPzguRR4H4fW+lf82rtbfsJCVApn+kBgm5d1xjuK/lFsmOfeEtGXM7rHiu28aWzMjV Cerg== X-Gm-Message-State: APt69E3KE4hMccm6xn0abJpy+0D4E58PST6BWByTad3gstij2FKzJ1Wd Fmim2i2RqrZcIdNh0WtXYsLJ9lSvt0V8fpT0GXt+LGL2DnG1JLI9RgUG0zINUwqipKarJNF3swh +/dLaGlQnq4rQ1nLMBUb+MvFSf839/2DZYSXk+56sk5Ue7s4QUiS2QpCdBRb2quvD+3rZ X-Received: by 2002:a24:4516:: with SMTP id y22-v6mr1113253ita.109.1528820540469; Tue, 12 Jun 2018 09:22:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIuf6H69UlgDftXwoWvlM7aFGOtZZnyvXxwFB/t8rBZstAnXBMxh67vEkyWw4v/hY2xk6N5/L65Q/CrcurfKSs= X-Received: by 2002:a24:4516:: with SMTP id y22-v6mr1113230ita.109.1528820540216; Tue, 12 Jun 2018 09:22:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Victoria Henry Date: Tue, 12 Jun 2018 12:22:09 -0400 Message-ID: Subject: Re: RM#3294 - User need to reset the layout to see the changed preferences parameters To: Aditya Toshniwal Cc: harshal.dhumal@enterprisedb.com, pgadmin-hackers Content-Type: multipart/alternative; boundary="00000000000039b7ba056e744503" X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-12_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=932 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806120183 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000039b7ba056e744503 Content-Type: text/plain; charset="UTF-8" Hi Aditya, It is not possible to fire event in another tab/new browser window. For >>> example, query tool can be open in another tab. And thus, changes are not >>> reflected there. There are solutions available like updating the >>> localStorage of the browser but those are not reliable and does not work >>> properly on different browsers. >>> >> To communicate between browser tabs we can use cookie polling on client >> side it self (at least it will avoid polling over http). >> The main tab will update only preference specific cookie when preference >> is updated and other tabs will poll required cookies (not all) >> with specific interval (1 second can be configurable). >> > Polling is a solution but I think it should be the last option. http polls > will not be required anyway as we have preference cache in the browser > object. > Maybe it's better to poll only when an editor is open in a separate window? What would we be polling for and how would be tell the backend that something changed during the poll? Thanks Victoria & Joao --00000000000039b7ba056e744503 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Aditya,


=
It is not possible to fire event in another tab/new browser = window. For example, query tool can be open in another tab. And thus, chang= es are not reflected there. There are solutions available like updating the= localStorage of the browser but those are not reliable and does not work p= roperly on different browsers.
To commu= nicate between browser tabs we can use cookie polling on client side it sel= f (at least it will avoid polling over http).
The main tab will u= pdate only preference specific cookie when preference is updated and other = tabs will poll required cookies (not all)
with specific interval = (1 second can be configurable).
Po= lling is a solution but I think it should be the last option. http polls wi= ll not be required anyway as we have preference cache in the browser object= .
=C2=A0
Maybe it's = better to poll only when an editor is open in a separate window?=C2=A0 What= would we be polling for and how would be tell the backend that something c= hanged during the poll?

Thanks
Victoria = & Joao
--00000000000039b7ba056e744503--