[pgAdmin][RM4659]Change default privileges docs to clarify more on grantor

2019-11-25 Thread Abhilasha Narendra
Hi Hackers,

I have updated the description for the Grantor field in all the RST files,
where it was mentioned.

PFA the patch.

Regards,
Abhilasha


rm4659.patch
Description: Binary data


Re: [pgAdmin][RM4659]Change default privileges docs to clarify more on grantor

2019-11-25 Thread Akshay Joshi
Thanks, patch applied.

On Mon, Nov 25, 2019 at 3:19 PM Abhilasha Narendra <
abhilasha.naren...@enterprisedb.com> wrote:

> Hi Hackers,
>
> I have updated the description for the Grantor field in all the RST files,
> where it was mentioned.
>
> PFA the patch.
>
> Regards,
> Abhilasha
>
>

-- 
*Thanks & Regards*
*Akshay Joshi*

*Sr. Software Architect*
*EnterpriseDB Software India Private Limited*
*Mobile: +91 976-788-8246*


pgAdmin 4 commit: Updated documentation for default privileges to clari

2019-11-25 Thread Akshay Joshi
Updated documentation for default privileges to clarify more on the grantor. 
Fixes #4659.

Branch
--
master

Details
---
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=700e01708bf06b05028ab5e1efd35898bd670237
Author: Abhilasha Narendra 

Modified Files
--
docs/en_US/database_dialog.rst |  4 +---
docs/en_US/foreign_data_wrapper_dialog.rst |  6 +-
docs/en_US/foreign_server_dialog.rst   |  4 +---
docs/en_US/foreign_table_dialog.rst|  6 +-
docs/en_US/function_dialog.rst |  6 +-
docs/en_US/grant_wizard.rst|  5 ++---
docs/en_US/language_dialog.rst |  5 +
docs/en_US/materialized_view_dialog.rst|  3 +--
docs/en_US/package_dialog.rst  |  5 +
docs/en_US/procedure_dialog.rst|  5 ++---
docs/en_US/release_notes_4_16.rst  |  1 +
docs/en_US/schema_dialog.rst   | 10 ++
docs/en_US/sequence_dialog.rst |  9 +
docs/en_US/table_dialog.rst|  3 +--
docs/en_US/tablespace_dialog.rst   |  6 +-
docs/en_US/trigger_function_dialog.rst |  5 +
docs/en_US/type_dialog.rst |  7 +--
docs/en_US/view_dialog.rst |  7 +--
18 files changed, 21 insertions(+), 76 deletions(-)



pgAdmin 4 commit: 1) Fix network disconnect issue while establishing th

2019-11-25 Thread Akshay Joshi
1) Fix network disconnect issue while establishing the connection via SSH 
Tunnel and it impossible to expand the Servers node. Fixes #4724.
2) Fix server connection drops out issue in query tool. Fixes #4818
3) Fix VPN network disconnect issue where pgAdmin4 hangs on expanding the 
Servers node. Fixes #4926.
4) Ensure that the Servers collection node should expand independently of 
server connections. Fixes #4933.

Set the default connection timeout to 10 seconds instead of 0.

Branch
--
master

Details
---
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=4ed2d74d9ca2078a7d93273195edd701459ce551
Author: Aditya Toshniwal 

Modified Files
--
docs/en_US/images/server_advanced.png  | Bin 42899 -> 56042 bytes
docs/en_US/release_notes_4_16.rst  |   4 +
docs/en_US/server_dialog.rst   |   3 +-
web/migrations/versions/aff1436e3c8c_.py   |  27 
.../browser/server_groups/servers/__init__.py  |  96 +-
.../server_groups/servers/static/js/server.js  |  47 ++-
web/pgadmin/browser/utils.py   |   9 +-
web/pgadmin/dashboard/static/js/dashboard.js   |  10 +-
web/pgadmin/model/__init__.py  |   2 +-
web/pgadmin/static/js/sqleditor/execute_query.js   |   9 +-
.../js/sqleditor/query_txn_status_constants.js |  11 ++
web/pgadmin/static/js/tree/tree.js |   4 +
web/pgadmin/tools/sqleditor/static/js/sqleditor.js |   8 +-
web/pgadmin/utils/driver/psycopg2/__init__.py  |  39 --
.../utils/driver/psycopg2/server_manager.py| 142 ++---
15 files changed, 274 insertions(+), 137 deletions(-)



Re: [pgAdmin][RM4818] Unable to handle loss of connection to server

2019-11-25 Thread Akshay Joshi
Thanks, patch applied.

On Mon, Nov 25, 2019 at 12:37 PM Aditya Toshniwal <
aditya.toshni...@enterprisedb.com> wrote:

> Hi Hackers,
>
> Attached is the updated patch to fix the review comments.
>
> On Thu, Nov 21, 2019 at 4:48 PM Akshay Joshi <
> akshay.jo...@enterprisedb.com> wrote:
>
>> Hi Aditya
>>
>> Following are the review comments:
>>
>>
>>- Update the timeout in the comment section from 30 seconds to 10
>>seconds in aff1436e3c8c_.py.
>>
>>
>>- Asking for the database server password even if it is saved.
>>Reproduction steps:
>>
>>
>>- Connect to the database server, saved the password.
>>   - Disabled the network. Try to connect to the database server.
>>   - Enable the network, try to connect to the database server.
>>
>>
>>- No error/spinner visible on GUI when the database server is
>>connected using SSH Tunnel. Reproduction steps:
>>
>>
>>- Connect to the database server with SSH Tunnel, saved both the
>>   password.
>>   - Disabled the network and Reset the Layout.
>>   - Expand the Servers node and try to connect the same database
>>   server.
>>
>>
>> On Thu, Nov 21, 2019 at 11:58 AM Aditya Toshniwal <
>> aditya.toshni...@enterprisedb.com> wrote:
>>
>>> Hi,
>>>
>>> I forgot to mention, I've also changed the dashboard code. The dashboard
>>> was sending graph data requests, but when the server lost connection the
>>> requests remains pending for longer time. Because of this the server gets
>>> flooded with lot of pending request and in turn slowing down the entire
>>> application.
>>> Code is changed so that only a certain number of requests remain pending
>>> (currently 3), above which the request won't be sent.
>>>
>>> On Thu, Nov 21, 2019 at 11:50 AM Aditya Toshniwal <
>>> aditya.toshni...@enterprisedb.com> wrote:
>>>
 Hi Hackers,

 Attached is the updated patch to fix the review comments.
 Please note, there is some problem with psycopg2/libpq where it hangs
 when network is lost - https://github.com/psycopg/psycopg2/issues/561
 I've also changed the code to make connections after the "Servers" node
 is expanded to fix - RM4933, so that the servers are listed first.

 Kindly review.

 On Fri, Nov 15, 2019 at 2:34 PM Akshay Joshi <
 akshay.jo...@enterprisedb.com> wrote:

> Hi Aditya
>
> Following are the review comments:
>
>1. The default connection timeout should be *10* seconds.
>2. In case the network is disabled and when we expand the
>"Servers" node the database server(for which network is disabled) 
> should be
>shown in the disconnected state.
>3.  For the above case when you try to connect to the server and
>at the same time trying to fetch the properties of the valid database
>server, it takes long time to fetch it.
>4.  Case when the network is disabled, the database servers
>password is saved and pgAdmin4 tries to connect the server, after
>connection timeout, there is no message to the user, only spinner gets
>disappeared. We should show a message.
>5. We should improve the error messages "timeout expired" and
>"Connection to the servers has been lost." to the more meaningful 
> messages
>like "Check the network settings, check the firewall status."
>6. Install database server on Windows and Enable Windows Firewall.
>Try to connect to the same database server. Spinner is not showing, as 
> a
>user I am not able to understand is there any action started at the 
> backend
>or not. As a user, I'll keep trying to connect multiple times and 
> after the
>connection timeout of each request dialog pops up.
>
>
> On Thu, Nov 14, 2019 at 12:15 PM Aditya Toshniwal <
> aditya.toshni...@enterprisedb.com> wrote:
>
>> Hi Hackers,
>>
>> Attached is the workaround patch to set the default connection
>> timeout to 30 seconds instead of the current value of infinite - 0, zero.
>> The input is present in the server properties dialogs advanced tab. The
>> workaround applies to the RM4724 as well.
>> The permanent solution would be to expand the nodes asynchronously -
>> https://redmine.postgresql.org/issues/4933
>>
>> Also fixed a bug where sql editor is not closing if the server is
>> disconnected in between.
>>
>> Kindly review.
>>
>> --
>> Thanks and Regards,
>> Aditya Toshniwal
>> Sr. Software Engineer | EnterpriseDB India | Pune
>> "Don't Complain about Heat, Plant a TREE"
>>
>
>
> --
> *Thanks & Regards*
> *Akshay Joshi*
>
> *Sr. Software Architect*
> *EnterpriseDB Software India Private Limited*
> *Mobile: +91 976-788-8246*
>


 --
 Thanks and Regards,
 Aditya Toshniwal
 Sr. Software Engineer | EnterpriseDB India | Pune
 "Don't Compla