Issues resolved related to connection management and collection nodes:

- Allow to release connection using the database OID (did).
- Generate correct url for the collection nodes.
- Removed the server-type from the collection node module, from the
  generate_browser_collection_node(...) function.
- Show version string, and not version integer in the server properties
  (when connected).
This commit is contained in:
Ashesh Vashi
2015-11-20 14:55:47 +05:30
parent e52fd0d349
commit 9bc9025075
4 changed files with 26 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ class ServerModule(sg.ServerGroupPluginModule):
self.NODE_TYPE,
connected=connected,
server_type=manager.server_type if connected else "pg",
server_version=manager.sversion if connected else 0
version=manager.version
)
@property
@@ -137,7 +137,7 @@ class ServerNode(PGChildNodeView):
self.node_type,
connected=connected,
server_type=manager.server_type if connected else 'PG',
version=manager.sversion
version=manager.version
)
)
return make_json_response(result=res)
@@ -295,7 +295,7 @@ class ServerNode(PGChildNodeView):
'comment': server.comment,
'role': server.role,
'connected': connected,
'version': manager.sversion,
'version': manager.ver,
'server_type': manager.server_type if connected else 'PG'
}
)
@@ -522,7 +522,7 @@ class ServerNode(PGChildNodeView):
),
'connected': True,
'type': manager.server_type,
'version': manager.sversion
'version': manager.version
}
)