       @sharedMachinesList.updateList data.shared.concat data.collaboration
 
 
-    # @machineTree.removeAllNodes()
-    # @listMachines machines
-
-    # @selectWorkspace()
-
-
   invalidateWorkspaces: (machine)->
 
     return  unless machine?

    @addSubView list

    return list



  # handleMachineItemClick: (machineItem, event) ->

  #   machine  = machineItem.getData()
  #   {status} = machine
  #   {Building, Running} = Machine.State

  #   @activityLink?.unsetClass 'selected'

  #   if event.target.nodeName is 'SPAN'

  #     if status?.state is Running
  #       KD.utils.stopDOMEvent event
  #       KD.singletons.mainView.openMachineModal machine, machineItem
  #     else return

  #   else if machineItem.getData().status?.state is Machine.State.Building

  #     return


  # handleMoreVMsClick: (ev) ->

  #   KD.utils.stopDOMEvent ev

  #   if 'add-icon' in ev.target.classList
  #   then ComputeHelpers.handleNewMachineRequest()
  #   else new MoreVMsModal {}, KD.userMachines


  # handleMoreWorkspacesClick: (data) ->
  #   workspaces = for workspace in KD.userWorkspaces when workspace.machineUId is data.machineUId
  #     workspace.machineLabel = data.machineLabel
  #     workspace

  # ======= start of conflict block
  # ======= preserved conflict since it's already commented out on refactor
  # handleMoreWorkspacesClick: (data) ->

  #   machine = m for m in KD.userMachines when m.uid is data.machineUId

  #   return no  if not machine or not machine.isMine()

  #   workspaces = for workspace in KD.userWorkspaces when workspace.machineUId is data.machineUId
  #     workspace.machineLabel = data.machineLabel
  #     workspace
  # ======= end of conflict block

  #   data.workspaces = workspaces or []

  #   new MoreWorkspacesModal {}, data


  addFollowedTopics: ->

    for machineList in @machineLists
      machineList.selectMachineAndWorkspace machine.uid, workspace.slug


  # TODO: Rename this method to fetchEnvironment - acet!
  fetchMachines: (callback) ->

    environmentDataProvider.fetch (data) =>
      callback data


  addMachineList: ->
