Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNDxu-0001he-IF for pgadmin-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 06:48:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bNDxu-0008Se-4o for pgadmin-hackers@arkaria.postgresql.org; Wed, 13 Jul 2016 06:48:14 +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.84_2) (envelope-from ) id 1bNDxh-0008E7-D9 for pgadmin-hackers@postgresql.org; Wed, 13 Jul 2016 06:48:01 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bNDxe-00060t-I3 for pgadmin-hackers@postgresql.org; Wed, 13 Jul 2016 06:47:59 +0000 Received: by mail-wm0-x22f.google.com with SMTP id f126so15506905wma.1 for ; Tue, 12 Jul 2016 23:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=NvMHdeCw/RxSYH6fURh4sVUqE3l92AwCjgfSvTvF7UA=; b=aA5oTtd28wcBG+HGLRZTQZoAFAYJ3n1lbu7OZg13Nv2YXBxvenNiygGqveVux6DSp0 ryLgZHPL/vZwkTtG0AOAW3O6446P9BIrd0wylTVyiRHS4pllRRADtyeWUXd2dQMlnYog EbPOXj5ia0bQipKP8hPmI5EfgVuZNOd9FWXahd/HvMhWrnBGUd6EQMi6DsYSrhzopK63 TRbqi8Jw9Xv/Td/VHcf96bBI7YXuKm1QOK4Y+eeuaunIVs1fy9dygt+AqNwN10lZ+hxl pWCU94g+TYFB0Yquq26wvyy8H6F18cdZR69xQXAMtnMhi+rz2xZYDk3OaNF1KdNVVX1c Bjpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NvMHdeCw/RxSYH6fURh4sVUqE3l92AwCjgfSvTvF7UA=; b=Pl9PgVTWiCOxe453JlqtuF9c2QIa5s42/fxeQYFXU+5/OfEPaZvPpwh5bYQlBhkVfA MFfKn9wdUxsJRbzuZ86e73TwKM45qogx6sshtf5LQ7FHNa22b0n0Zd3K4a3PFi3GVUie TQnxVJ1tbkg8EgJX6eFi3JeiqqqoyfDvKA6QDC+wz7vjAfB1Yv/ILGrUJo23ZOlU0L1z sNQVUayVJOSheKMmXjZaU3m/fvPGBtKv5pt7iQWXlTNSEjblUSS+9nohuoWp3HosGsfQ tPuODtMRpdPmUMNZx4t7Bk90+3wKihlELcfwMGEyqSo4cbAoxXhjZ3ipMOMCR3rcrTwA f9pQ== X-Gm-Message-State: ALyK8tLBj+eUMnX2b9ytTMDZwsqZ/L9fbNjE/4YuK+AIrGKShTUocR0pbCLlzz9ZYUIl+XfyGWiCuslZbWHjan0O X-Received: by 10.28.54.147 with SMTP id y19mr8181683wmh.68.1468392476672; Tue, 12 Jul 2016 23:47:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.54.164 with HTTP; Tue, 12 Jul 2016 23:47:26 -0700 (PDT) From: Surinder Kumar Date: Wed, 13 Jul 2016 12:17:26 +0530 Message-ID: Subject: [pgAdmin4][Patch]: Render data grid only if Dashboard Panel is active To: pgadmin-hackers Content-Type: multipart/mixed; boundary=001a11431106f6a97d05377ec328 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 --001a11431106f6a97d05377ec328 Content-Type: multipart/alternative; boundary=001a11431106f6a97805377ec326 --001a11431106f6a97805377ec326 Content-Type: text/plain; charset=UTF-8 Hi In Dashboard, the ajax calls to *render data grid* should only made, if dashboard panel is active. Currently it make ajax calls even if other panels like properties, sql are active. Please find attached patch and review. Thanks, Surinder Kumar --001a11431106f6a97805377ec326 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi

In Dashboard, the ajax calls to r= ender data grid should only made, if dashboard panel is active.
Currently it make ajax calls even if other panels like properties, sql a= re active.

Please find attached patch and review.<= /div>

Thanks,
Surinder Kumar
--001a11431106f6a97805377ec326-- --001a11431106f6a97d05377ec328 Content-Type: application/octet-stream; name="dashboard_render_if_panel_is_opened.patch" Content-Disposition: attachment; filename="dashboard_render_if_panel_is_opened.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_iqkj0spe0 ZGlmZiAtLWdpdCBhL3dlYi9wZ2FkbWluL2Rhc2hib2FyZC90ZW1wbGF0ZXMv ZGFzaGJvYXJkL2pzL2Rhc2hib2FyZC5qcyBiL3dlYi9wZ2FkbWluL2Rhc2hi b2FyZC90ZW1wbGF0ZXMvZGFzaGJvYXJkL2pzL2Rhc2hib2FyZC5qcwppbmRl eCA5YTQ3MGQ5Li5hNjdjZWVlIDEwMDY0NAotLS0gYS93ZWIvcGdhZG1pbi9k YXNoYm9hcmQvdGVtcGxhdGVzL2Rhc2hib2FyZC9qcy9kYXNoYm9hcmQuanMK KysrIGIvd2ViL3BnYWRtaW4vZGFzaGJvYXJkL3RlbXBsYXRlcy9kYXNoYm9h cmQvanMvZGFzaGJvYXJkLmpzCkBAIC0zMDksNiArMzA5LDExIEBAIGZ1bmN0 aW9uKHIsICQsIHBnQWRtaW4sIF8sIEJhY2tib25lKSB7CiAgICAgICAgICAg ICAgIHJldHVybiBudWxsOwogICAgICAgICAgICAgfQoKKyAgICAgICAgICAg IHZhciBkYXNoYm9hcmRQYW5lbCA9IHBnQnJvd3Nlci5wYW5lbHNbJ2Rhc2hi b2FyZCddLnBhbmVsOworICAgICAgICAgICAgaWYgKGRhc2hib2FyZFBhbmVs ICYmICFkYXNoYm9hcmRQYW5lbC5pc1Zpc2libGUoKSkgeworICAgICAgICAg ICAgICByZXR1cm47CisgICAgICAgICAgICB9CisKICAgICAgICAgICAgIGRh dGEuZmV0Y2goewogICAgICAgICAgICAgICAgIHJlc2V0OiB0cnVlLAogICAg ICAgICAgICAgICAgIHN1Y2Nlc3M6IGZ1bmN0aW9uKCkgewo= --001a11431106f6a97d05377ec328 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers --001a11431106f6a97d05377ec328--