{"action":"created","comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/78691164","id":78691164,"diff_hunk":"@@ -0,0 +1,14 @@\n+RocketChat.Migrations.add({\n+\tversion: 61,\n+\tup: function() {\n+        let users = RocketChat.models.Users.find({}, { name: 1 }).fetch().reduce((o, v, i) => {","path":"server/startup/migrations/v061.js","position":4,"original_position":4,"commit_id":"c436466df5099c7d214c64621ed6dcba4065c325","original_commit_id":"c436466df5099c7d214c64621ed6dcba4065c325","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: ['i' is defined but never used.](https://www.codacy.com/app/RocketChat/Rocket-Chat/file/3905478254/issues/source?bid=3199634&fileBranchId=3463235#l4)","created_at":"2016-09-14T06:16:06Z","updated_at":"2016-09-14T06:16:06Z","html_url":"https://github.com/RocketChat/Rocket.Chat/pull/3851#discussion_r78691164","pull_request_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/3851","_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments/78691164"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/3851#discussion_r78691164"},"pull_request":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/3851"}}},"pull_request":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/3851","id":78579616,"html_url":"https://github.com/RocketChat/Rocket.Chat/pull/3851","diff_url":"https://github.com/RocketChat/Rocket.Chat/pull/3851.diff","patch_url":"https://github.com/RocketChat/Rocket.Chat/pull/3851.patch","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3851","number":3851,"state":"open","locked":false,"title":"Use real name instead of username for messages and direct messages list","user":{"login":"alexbrazier","id":5689874,"avatar_url":"https://avatars.githubusercontent.com/u/5689874?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbrazier","html_url":"https://github.com/alexbrazier","followers_url":"https://api.github.com/users/alexbrazier/followers","following_url":"https://api.github.com/users/alexbrazier/following{/other_user}","gists_url":"https://api.github.com/users/alexbrazier/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbrazier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbrazier/subscriptions","organizations_url":"https://api.github.com/users/alexbrazier/orgs","repos_url":"https://api.github.com/users/alexbrazier/repos","events_url":"https://api.github.com/users/alexbrazier/events{/privacy}","received_events_url":"https://api.github.com/users/alexbrazier/received_events","type":"User","site_admin":false},"body":"<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->\r\n@RocketChat/core \r\n\r\n<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->\r\nCloses #1209\r\nCloses #3453\r\nCloses #3649\r\n\r\n<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->\r\n\r\nUse real name in most places, instead of username\r\n\r\n- [x] Restore `@` icon\r\n- [x] Update messages when user changes name\r\n- [x] Setting to turn on and off\r\n- [ ] Database migration\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5689874/18419828/aadf1cb6-785b-11e6-87d2-691ba908e013.png)\r\n","created_at":"2016-07-23T18:57:24Z","updated_at":"2016-09-14T06:16:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c66989577e4c919bc45a6118eb693ccd5f98f07","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/3851/commits","review_comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/3851/comments","review_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3851/comments","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/c436466df5099c7d214c64621ed6dcba4065c325","head":{"label":"alexbrazier:feature/display-name","ref":"feature/display-name","sha":"c436466df5099c7d214c64621ed6dcba4065c325","user":{"login":"alexbrazier","id":5689874,"avatar_url":"https://avatars.githubusercontent.com/u/5689874?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbrazier","html_url":"https://github.com/alexbrazier","followers_url":"https://api.github.com/users/alexbrazier/followers","following_url":"https://api.github.com/users/alexbrazier/following{/other_user}","gists_url":"https://api.github.com/users/alexbrazier/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbrazier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbrazier/subscriptions","organizations_url":"https://api.github.com/users/alexbrazier/orgs","repos_url":"https://api.github.com/users/alexbrazier/repos","events_url":"https://api.github.com/users/alexbrazier/events{/privacy}","received_events_url":"https://api.github.com/users/alexbrazier/received_events","type":"User","site_admin":false},"repo":{"id":60974943,"name":"Rocket.Chat","full_name":"alexbrazier/Rocket.Chat","owner":{"login":"alexbrazier","id":5689874,"avatar_url":"https://avatars.githubusercontent.com/u/5689874?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbrazier","html_url":"https://github.com/alexbrazier","followers_url":"https://api.github.com/users/alexbrazier/followers","following_url":"https://api.github.com/users/alexbrazier/following{/other_user}","gists_url":"https://api.github.com/users/alexbrazier/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbrazier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbrazier/subscriptions","organizations_url":"https://api.github.com/users/alexbrazier/orgs","repos_url":"https://api.github.com/users/alexbrazier/repos","events_url":"https://api.github.com/users/alexbrazier/events{/privacy}","received_events_url":"https://api.github.com/users/alexbrazier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexbrazier/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":true,"url":"https://api.github.com/repos/alexbrazier/Rocket.Chat","forks_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/alexbrazier/Rocket.Chat/deployments","created_at":"2016-06-12T15:40:03Z","updated_at":"2016-06-12T15:40:10Z","pushed_at":"2016-09-14T06:13:54Z","git_url":"git://github.com/alexbrazier/Rocket.Chat.git","ssh_url":"git@github.com:alexbrazier/Rocket.Chat.git","clone_url":"https://github.com/alexbrazier/Rocket.Chat.git","svn_url":"https://github.com/alexbrazier/Rocket.Chat","homepage":"https://rocket.chat/","size":40220,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"RocketChat:develop","ref":"develop","sha":"1041feee51f7ef41fb7fd690f77a1735dcc05605","user":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"repo":{"id":35866694,"name":"Rocket.Chat","full_name":"RocketChat/Rocket.Chat","owner":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RocketChat/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":false,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat","forks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/deployments","created_at":"2015-05-19T07:36:09Z","updated_at":"2016-09-14T00:12:51Z","pushed_at":"2016-09-14T06:13:55Z","git_url":"git://github.com/RocketChat/Rocket.Chat.git","ssh_url":"git@github.com:RocketChat/Rocket.Chat.git","clone_url":"https://github.com/RocketChat/Rocket.Chat.git","svn_url":"https://github.com/RocketChat/Rocket.Chat","homepage":"https://rocket.chat/","size":55770,"stargazers_count":8763,"watchers_count":8763,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1854,"mirror_url":null,"open_issues_count":1168,"forks":1854,"open_issues":1168,"watchers":8763,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/3851"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/3851"},"issue":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3851"},"comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/3851/comments"},"review_comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/3851/comments"},"review_comment":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/3851/commits"},"statuses":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/c436466df5099c7d214c64621ed6dcba4065c325"}}}}
{"actor":{"display_login":"codacy-bot"}}