GitHub PullRequestReviewCommentEvent at 2014-05-05 14:30:31
Repository: openproject
Actor: tilt
Payload: {"comment":{"url":"https://api.github.com/repos/opf/openproject/pulls/comments/12280901","id":12280901,"diff_hunk":"@@ -0,0 +1,58 @@\n+//-- copyright\n+// OpenProject is a project management system.\n+// Copyright (C) 2012-2014 the OpenProject Foundation (OPF)\n+//\n+// This program is free software; you can redistribute it and/or\n+// modify it under the terms of the GNU General Public License version 3.\n+//\n+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:\n+// Copyright (C) 2006-2013 Jean-Philippe Lang\n+// Copyright (C) 2010-2013 the ChiliProject Team\n+//\n+// This program is free software; you can redistribute it and/or\n+// modify it under the terms of the GNU General Public License\n+// as published by the Free Software Foundation; either version 2\n+// of the License, or (at your option) any later version.\n+//\n+// This program is distributed in the hope that it will be useful,\n+// but WITHOUT ANY WARRANTY; without even the implied warranty of\n+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+// GNU General Public License for more details.\n+//\n+// You should have received a copy of the GNU General Public License\n+// along with this program; if not, write to the Free Software\n+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\n+//\n+// See doc/COPYRIGHT.rdoc for more details.\n+//++\n+\n+angular.module('openproject.messages.controllers')\n+\n+.controller('MessagesController', ['$scope', '$http', 'PathHelper', 'SortService', 'PaginationService', function ($scope, $http, PathHelper, SortService, PaginationService) {\n+  $scope.PathHelper = PathHelper;\n+  $scope.messages = gon.messages;\n+  $scope.totalMessageCount = gon.total_count;\n+  $scope.isLoading = false;\n+\n+  SortService.setColumn(gon.sort_column);\n+  SortService.setDirection(gon.sort_direction);\n+\n+  $scope.loadMessages = function() {\n+    $scope.isLoading = true;\n+\n+    $http.get(PathHelper.boardPath(gon.project_id, gon.board_id),","path":"app/assets/javascripts/angular/controllers/messages-controllers.js","position":43,"original_position":43,"commit_id":"a90a2b307d2f3137fe41a3194bc1f7546099655b","original_commit_id":"a90a2b307d2f3137fe41a3194bc1f7546099655b","user":{"login":"tilt","id":35519,"avatar_url":"https://avatars.githubusercontent.com/u/35519?","gravatar_id":"d945de63aec09f1a171e9f4c775f4c0d","url":"https://api.github.com/users/tilt","html_url":"https://github.com/tilt","followers_url":"https://api.github.com/users/tilt/followers","following_url":"https://api.github.com/users/tilt/following{/other_user}","gists_url":"https://api.github.com/users/tilt/gists{/gist_id}","starred_url":"https://api.github.com/users/tilt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilt/subscriptions","organizations_url":"https://api.github.com/users/tilt/orgs","repos_url":"https://api.github.com/users/tilt/repos","events_url":"https://api.github.com/users/tilt/events{/privacy}","received_events_url":"https://api.github.com/users/tilt/received_events","type":"User","site_admin":false},"body":"I'd prefer seeing the $http service wrapped up in a message service","created_at":"2014-05-05T14:30:31Z","updated_at":"2014-05-05T14:30:31Z","html_url":"https://github.com/opf/openproject/pull/1166#discussion_r12280901","pull_request_url":"https://api.github.com/repos/opf/openproject/pulls/1166","_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments/12280901"},"html":{"href":"https://github.com/opf/openproject/pull/1166#discussion_r12280901"},"pull_request":{"href":"https://api.github.com/repos/opf/openproject/pulls/1166"}}}}