GitHub PullRequestReviewCommentEvent at 2014-01-27 22:59:15
Repository: origin-server
Actor: danmcp
Payload: {"comment":{"url":"https://api.github.com/repos/openshift/origin-server/pulls/comments/9210389","id":9210389,"diff_hunk":"@@ -11,6 +11,13 @@ def initialize(gear)\n       begin\n         d = District.find_by({\"server_identities.name\" => gear.server_identity})\n         self.district = d.name\n+        if Rails.configuration.msg_broker[:regions][:enabled]\n+          server = d.server_identities.find_by(name: gear.server_identity)","path":"controller/app/plugin_models/gear_properties.rb","position":12,"original_position":12,"commit_id":"78b312bad808215f90d5226898457bafcb69b4d0","original_commit_id":"78b312bad808215f90d5226898457bafcb69b4d0","user":{"login":"danmcp","id":492994,"avatar_url":"https://gravatar.com/avatar/9b58455df0a856efc46686b45741754d?d=https%3A%2F%2Fidenticons.github.com%2F046935d7dfc96ae7db9d57a7e6fe98f6.png&r=x","gravatar_id":"9b58455df0a856efc46686b45741754d","url":"https://api.github.com/users/danmcp","html_url":"https://github.com/danmcp","followers_url":"https://api.github.com/users/danmcp/followers","following_url":"https://api.github.com/users/danmcp/following{/other_user}","gists_url":"https://api.github.com/users/danmcp/gists{/gist_id}","starred_url":"https://api.github.com/users/danmcp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmcp/subscriptions","organizations_url":"https://api.github.com/users/danmcp/orgs","repos_url":"https://api.github.com/users/danmcp/repos","events_url":"https://api.github.com/users/danmcp/events{/privacy}","received_events_url":"https://api.github.com/users/danmcp/received_events","type":"User","site_admin":false},"body":"Can we do this in a less expensive way.  All the info is already loaded.","created_at":"2014-01-27T22:59:15Z","updated_at":"2014-01-27T22:59:15Z","html_url":"https://github.com/openshift/origin-server/pull/4454#discussion_r9210389","pull_request_url":"https://api.github.com/repos/openshift/origin-server/pulls/4454","_links":{"self":{"href":"https://api.github.com/repos/openshift/origin-server/pulls/comments/9210389"},"html":{"href":"https://github.com/openshift/origin-server/pull/4454#discussion_r9210389"},"pull_request":{"href":"https://api.github.com/repos/openshift/origin-server/pulls/4454"}}}}