pgAdmin 4 commit: Resolved few intialization issue with Node model data - Mailing list pgadmin-hackers

From Ashesh Vashi
Subject pgAdmin 4 commit: Resolved few intialization issue with Node model data
Date
Msg-id E1aBdD2-00029i-4R@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
Resolved few intialization issue with Node model data, moved the
privileges functionality out of the backform.pgadmin.js to make it more
modular. Now - privileges will expect the privileges data in following
format:
<name_of_the_property> : [{
    "privileges": [{
        "privilege_type": <privilege_type>,
        "privilege": true,
        "with_grant": false
    },
    ...
    ],
    "grantee": <grantee>,
    "grantor": <grantor>
    },
   ...
]

Example:
acl": [{
    "privileges": [{
        "privilege_type": "CONNECT",
        "privilege": true,
        "with_grant": false
         }],
    "grantee": '',
    "grantor": 'ashesh'
},{
    "privileges": [{
        "privilege_type": "CREATE",
        "privilege": true,
        "with_grant": false
    },{
        "privilege": true,
        "privilege_type": "TEMPORARY",
        "with_grant": false
    }],
    "grantee": test,
    "grantor": ashesh
}]

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=c51ecc69e4f9504dcbed4282a3d2f29241c2aff2

Modified Files
--------------
.../browser/server_groups/servers/__init__.py      |  25 +-
.../server_groups/servers/static/js/privilege.js   | 431 +++++++++++++++++++++
.../browser/templates/browser/js/browser.js        |  55 ++-
web/pgadmin/browser/templates/browser/js/node.js   |  80 ++--
web/pgadmin/browser/utils.py                       |   1 +
web/pgadmin/static/css/overrides.css               |  14 +-
web/pgadmin/static/js/backform.pgadmin.js          |  29 +-
web/pgadmin/static/js/backgrid/backgrid.pgadmin.js | 248 ------------
8 files changed, 575 insertions(+), 308 deletions(-)


pgadmin-hackers by date:

Previous
From: Ashesh Vashi
Date:
Subject: pgAdmin 4 commit: Changed the server properties a little bit to in-corp
Next
From: Ashesh Vashi
Date:
Subject: pgAdmin 4 commit: Remove any unwanted white-spaces while renderting any