     datacenters.reset()
     machines.reset()
     issues.reset()
+    directory.reset()
 
 # Process updates from the server and apply the diffs to our view of the data. Used by our version of Backbone.sync and POST / PUT responses for form actions
 apply_diffs = (updates) ->

    model: Issue
    url: '/ajax/issues'

class DashboardView extends Backbone.View
    className: 'dashboard-view'
    template: Handlebars.compile $('#dashboard_view-template').html()

    update_data_streams: (datastreams) ->
        timestamp = new Date(Date.now())
        
        for stream in datastreams
           stream.update(timestamp)


set_issues = (issue_data_from_server) ->
    issues.reset(_.map(issue_data_from_server, (issue) -> {critical: false, type: "master_down", time: ISODateString}))

set_directory = (attributes_from_server) ->
    # Convert directory representation from RethinkDB into backbone friendly one
    dir_machines = []
    for key, value of attributes_from_server
        value['id'] = key
        dir_machines[dir_machines.length] = value
    directory.reset(dir_machines)

$ ->
    bind_dev_tools()

