convertConnectionsInfoForUI() {
    return this.redisConnections.map((connection) => {
      let retObj = {
        'label': connection.label,
        'conId': connection.options.connectionId,
        'foldingChar': connection.options.foldingChar,
        'options': {
          'db': connection.options.db
        }
      };
      if (connection.options.type === 'socket') {
        retObj.options.type = 'Socket';
        retObj.options.host = 'UnixSocket';
        retObj.options.port = '-';
      }
      else if (connection.options.type === 'sentinel') {
        retObj.options.type = 'Sentinel';
        retObj.options.host = connection.options.sentinels[0].host;
        retObj.options.port = connection.options.sentinels[0].port;
        retObj.options.db = connection.options.name + '-' + connection.options.db;
      }
      else if (connection.options.type === 'cluster') {
        retObj.options.type = 'Cluster';
        retObj.options.host = connection.options.clusters[0].host;
        retObj.options.port = connection.options.clusters[0].port;
      }
      else {
        retObj.options.type = 'Standalone';
        retObj.options.host = connection.options.host;
        retObj.options.port = connection.options.port;
      }
      return retObj;
    })
  }
this function gets a connection object and converts this to a new object
 unable to display at the UI visible to users.
 This method takes care of special all the different kind of connections (socket, sentinel, ...)
 and all the different attributes needed to describe them and creates an object usable to display
 this information in a common way to not duplicate all this if-then decisions client-side (e.g. treeview,
 import/export connection drop-down).

 @param {object} connection connection information object as used in global app.locals.redisConnections array
 @return {{options: {db: *}, conId: *, label: *}} new object usable to display to users