From: | Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | pgAdmin 4 commit: Resolved few intialization issue with Node model data |
Date: | 2015-12-23 06:47:40 |
Message-ID: | E1aBdD2-00029i-4R@gothos.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Ashesh Vashi | 2015-12-23 12:42:06 | pgAdmin 4 commit: Resolved a typo in collection.js, which leads to not |
Previous Message | Don O'Hara | 2015-12-23 02:34:48 |