)]}'
{"app/js/directives/fresh-check.js":[{"author":{"_account_id":17001,"name":"Tim Buckley","email":"timothy.jas.buckley@hpe.com","username":"timothy.jas.buckley"},"change_message_id":"f0952d8a21cb06632192ddf8db459f6e0dd82f1b","unresolved":false,"context_lines":[{"line_number":14,"context_line":"    $scope.date \u003d null;"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"    healthService.getRecentGroupedRuns(\u0027build_queue\u0027, \u0027gate\u0027, {"},{"line_number":17,"context_line":"      num_runs: 1"},{"line_number":18,"context_line":"    }).then(function(response) {"},{"line_number":19,"context_line":"      vm.lastRun \u003d response.data;"},{"line_number":20,"context_line":"    });"}],"source_content_type":"text/javascript","patch_set":1,"id":"9aed3d3a_0c6ef100","line":17,"range":{"start_line":17,"start_character":6,"end_line":17,"end_character":17},"updated":"2016-02-26 18:57:16.000000000","message":"As an aside, this API method actually doesn\u0027t actually use the options object being passed in, so num_runs here is being ignored. I\u0027ll get a patch up to fix that.","commit_id":"e673dfc54c1e50d16d48b5a77cc69aae0ac921ab"},{"author":{"_account_id":17001,"name":"Tim Buckley","email":"timothy.jas.buckley@hpe.com","username":"timothy.jas.buckley"},"change_message_id":"f0952d8a21cb06632192ddf8db459f6e0dd82f1b","unresolved":false,"context_lines":[{"line_number":16,"context_line":"    healthService.getRecentGroupedRuns(\u0027build_queue\u0027, \u0027gate\u0027, {"},{"line_number":17,"context_line":"      num_runs: 1"},{"line_number":18,"context_line":"    }).then(function(response) {"},{"line_number":19,"context_line":"      vm.lastRun \u003d response.data;"},{"line_number":20,"context_line":"    });"},{"line_number":21,"context_line":"    var today \u003d new Date();"},{"line_number":22,"context_line":"    var runDate \u003d new Date(lastRun.start_date)"}],"source_content_type":"text/javascript","patch_set":1,"id":"9aed3d3a_2c693526","line":19,"range":{"start_line":19,"start_character":6,"end_line":19,"end_character":16},"updated":"2016-02-26 18:57:16.000000000","message":"There\u0027s no `vm` here, so `vm.lastRun \u003d` should just be `var lastRun \u003d`.","commit_id":"e673dfc54c1e50d16d48b5a77cc69aae0ac921ab"},{"author":{"_account_id":17001,"name":"Tim Buckley","email":"timothy.jas.buckley@hpe.com","username":"timothy.jas.buckley"},"change_message_id":"f0952d8a21cb06632192ddf8db459f6e0dd82f1b","unresolved":false,"context_lines":[{"line_number":18,"context_line":"    }).then(function(response) {"},{"line_number":19,"context_line":"      vm.lastRun \u003d response.data;"},{"line_number":20,"context_line":"    });"},{"line_number":21,"context_line":"    var today \u003d new Date();"},{"line_number":22,"context_line":"    var runDate \u003d new Date(lastRun.start_date)"},{"line_number":23,"context_line":"    var diffSecs \u003d (today - runDate) / 1000"},{"line_number":24,"context_line":"    var diffDays \u003d diffSecs / (60 * 60 * 24)"},{"line_number":25,"context_line":"    if (diffSecs \u003e (60 * 60 * 24))  {"},{"line_number":26,"context_line":"      $scope.status \u003d \u0027stale\u0027"},{"line_number":27,"context_line":"      $scope.date \u003d runDate"},{"line_number":28,"context_line":"    }"},{"line_number":29,"context_line":"  };"},{"line_number":30,"context_line":"  return {"},{"line_number":31,"context_line":"    restrict : \u0027EA\u0027,"}],"source_content_type":"text/javascript","patch_set":1,"id":"9aed3d3a_ac7c25ec","line":28,"range":{"start_line":21,"start_character":4,"end_line":28,"end_character":5},"updated":"2016-02-26 18:57:16.000000000","message":"This block should be moved inside the \u0027then\u0027 function.","commit_id":"e673dfc54c1e50d16d48b5a77cc69aae0ac921ab"},{"author":{"_account_id":17001,"name":"Tim Buckley","email":"timothy.jas.buckley@hpe.com","username":"timothy.jas.buckley"},"change_message_id":"ab0be7307ac07b9e15f2bbe239d2b4caff419549","unresolved":false,"context_lines":[{"line_number":30,"context_line":"  return {"},{"line_number":31,"context_line":"    restrict : \u0027EA\u0027,"},{"line_number":32,"context_line":"    templateUrl: \u0027fresh-check.html\u0027,"},{"line_number":33,"context_line":"    scope: true"},{"line_number":34,"context_line":"  };"},{"line_number":35,"context_line":"}"},{"line_number":36,"context_line":""}],"source_content_type":"text/javascript","patch_set":2,"id":"9aed3d3a_66ae55e7","line":33,"updated":"2016-02-29 21:06:53.000000000","message":"Small fix to get this working: you need to tell it about your controller function with a \u0027controller: controller\u0027 property here.","commit_id":"f5aa7533e3a8df397dd4c3ec56958ce65d1aa7ca"},{"author":{"_account_id":5196,"name":"Matthew Treinish","email":"mtreinish@kortar.org","username":"treinish"},"change_message_id":"5aabcec5efbf02a2a36ed560dfce6df727f342e7","unresolved":false,"context_lines":[{"line_number":30,"context_line":"  return {"},{"line_number":31,"context_line":"    restrict : \u0027EA\u0027,"},{"line_number":32,"context_line":"    templateUrl: \u0027fresh-check.html\u0027,"},{"line_number":33,"context_line":"    scope: true"},{"line_number":34,"context_line":"  };"},{"line_number":35,"context_line":"}"},{"line_number":36,"context_line":""}],"source_content_type":"text/javascript","patch_set":2,"id":"9aed3d3a_d5e381d7","line":33,"in_reply_to":"9aed3d3a_66ae55e7","updated":"2016-02-29 23:01:16.000000000","message":"Done","commit_id":"f5aa7533e3a8df397dd4c3ec56958ce65d1aa7ca"}]}
