MCPcopy
hub / github.com/joeferner/redis-commander / getRootConnection

Function getRootConnection

web/static/scripts/redisCommander.js:291–296  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

289}
290
291function getRootConnection (node) {
292 if (node.parent === '#') {
293 return node.id;
294 }
295 return node.parents[node.parents.length-2];
296}
297
298function loadKey (connectionId, key, index) {
299 if (index) {

Callers 11

getJsTreeDataFunction · 0.85
treeNodeSelectedFunction · 0.85
getFullKeyPathFunction · 0.85
addKeyFunction · 0.85
renameKeyFunction · 0.85
exportKeyFunction · 0.85
deleteKeyFunction · 0.85
decodeKeyFunction · 0.85
clusterNodesFunction · 0.85
removeServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected