{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/24940406","id":24940406,"diff_hunk":"@@ -19,4 +19,24 @@\n     end\n   end\n \n+  describe '#lock_account' do\n+    it 'queues a job to lock the given account' do","path":"spec/controllers/admin/users_controller_spec.rb","position":5,"original_position":5,"commit_id":"617fee390d22ba1c3b9b354a85b3c6ac6c0b73bb","original_commit_id":"617fee390d22ba1c3b9b354a85b3c6ac6c0b73bb","user":{"login":"jhass","id":141294,"avatar_url":"https://avatars.githubusercontent.com/u/141294?v=3","gravatar_id":"","url":"https://api.github.com/users/jhass","html_url":"https://github.com/jhass","followers_url":"https://api.github.com/users/jhass/followers","following_url":"https://api.github.com/users/jhass/following{/other_user}","gists_url":"https://api.github.com/users/jhass/gists{/gist_id}","starred_url":"https://api.github.com/users/jhass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhass/subscriptions","organizations_url":"https://api.github.com/users/jhass/orgs","repos_url":"https://api.github.com/users/jhass/repos","events_url":"https://api.github.com/users/jhass/events{/privacy}","received_events_url":"https://api.github.com/users/jhass/received_events","type":"User","site_admin":false},"body":"Uh, I should have payed closer attention to this earlier, sorry. This doesn't reflect what the method does and neither what the spec tests for. It does not queue a job, it executes that action directly (which is fine, since it's a single `UPDATE` query). So please update the wording here, something like \"it locks the given account\" should be fine.\r\n\r\nRemember that you can edit your commit with `git commit --amend`.","created_at":"2015-02-18T20:59:44Z","updated_at":"2015-02-18T20:59:44Z","html_url":"https://github.com/diaspora/diaspora/pull/5643#discussion_r24940406","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5643","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/24940406"},"html":{"href":"https://github.com/diaspora/diaspora/pull/5643#discussion_r24940406"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5643"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/5643","id":28966993,"html_url":"https://github.com/diaspora/diaspora/pull/5643","diff_url":"https://github.com/diaspora/diaspora/pull/5643.diff","patch_url":"https://github.com/diaspora/diaspora/pull/5643.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/5643","number":5643,"state":"open","locked":false,"title":"Lock account #5564","user":{"login":"aka001","id":4049383,"avatar_url":"https://avatars.githubusercontent.com/u/4049383?v=3","gravatar_id":"","url":"https://api.github.com/users/aka001","html_url":"https://github.com/aka001","followers_url":"https://api.github.com/users/aka001/followers","following_url":"https://api.github.com/users/aka001/following{/other_user}","gists_url":"https://api.github.com/users/aka001/gists{/gist_id}","starred_url":"https://api.github.com/users/aka001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aka001/subscriptions","organizations_url":"https://api.github.com/users/aka001/orgs","repos_url":"https://api.github.com/users/aka001/repos","events_url":"https://api.github.com/users/aka001/events{/privacy}","received_events_url":"https://api.github.com/users/aka001/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-09T23:27:30Z","updated_at":"2015-02-18T20:59:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e18134a1a42bfa049e9cb32ef569a861714664b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5643/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5643/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/{number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/5643/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/617fee390d22ba1c3b9b354a85b3c6ac6c0b73bb","head":{"label":"aka001:5564_lock_account","ref":"5564_lock_account","sha":"617fee390d22ba1c3b9b354a85b3c6ac6c0b73bb","user":{"login":"aka001","id":4049383,"avatar_url":"https://avatars.githubusercontent.com/u/4049383?v=3","gravatar_id":"","url":"https://api.github.com/users/aka001","html_url":"https://github.com/aka001","followers_url":"https://api.github.com/users/aka001/followers","following_url":"https://api.github.com/users/aka001/following{/other_user}","gists_url":"https://api.github.com/users/aka001/gists{/gist_id}","starred_url":"https://api.github.com/users/aka001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aka001/subscriptions","organizations_url":"https://api.github.com/users/aka001/orgs","repos_url":"https://api.github.com/users/aka001/repos","events_url":"https://api.github.com/users/aka001/events{/privacy}","received_events_url":"https://api.github.com/users/aka001/received_events","type":"User","site_admin":false},"repo":{"id":30471337,"name":"diaspora","full_name":"aka001/diaspora","owner":{"login":"aka001","id":4049383,"avatar_url":"https://avatars.githubusercontent.com/u/4049383?v=3","gravatar_id":"","url":"https://api.github.com/users/aka001","html_url":"https://github.com/aka001","followers_url":"https://api.github.com/users/aka001/followers","following_url":"https://api.github.com/users/aka001/following{/other_user}","gists_url":"https://api.github.com/users/aka001/gists{/gist_id}","starred_url":"https://api.github.com/users/aka001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aka001/subscriptions","organizations_url":"https://api.github.com/users/aka001/orgs","repos_url":"https://api.github.com/users/aka001/repos","events_url":"https://api.github.com/users/aka001/events{/privacy}","received_events_url":"https://api.github.com/users/aka001/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aka001/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/aka001/diaspora","forks_url":"https://api.github.com/repos/aka001/diaspora/forks","keys_url":"https://api.github.com/repos/aka001/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aka001/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aka001/diaspora/teams","hooks_url":"https://api.github.com/repos/aka001/diaspora/hooks","issue_events_url":"https://api.github.com/repos/aka001/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/aka001/diaspora/events","assignees_url":"https://api.github.com/repos/aka001/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/aka001/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/aka001/diaspora/tags","blobs_url":"https://api.github.com/repos/aka001/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aka001/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aka001/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/aka001/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aka001/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/aka001/diaspora/languages","stargazers_url":"https://api.github.com/repos/aka001/diaspora/stargazers","contributors_url":"https://api.github.com/repos/aka001/diaspora/contributors","subscribers_url":"https://api.github.com/repos/aka001/diaspora/subscribers","subscription_url":"https://api.github.com/repos/aka001/diaspora/subscription","commits_url":"https://api.github.com/repos/aka001/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/aka001/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/aka001/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/aka001/diaspora/issues/comments/{number}","contents_url":"https://api.github.com/repos/aka001/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/aka001/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aka001/diaspora/merges","archive_url":"https://api.github.com/repos/aka001/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aka001/diaspora/downloads","issues_url":"https://api.github.com/repos/aka001/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/aka001/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/aka001/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/aka001/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aka001/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/aka001/diaspora/releases{/id}","created_at":"2015-02-07T21:45:25Z","updated_at":"2015-02-07T21:45:29Z","pushed_at":"2015-02-18T20:29:53Z","git_url":"git://github.com/aka001/diaspora.git","ssh_url":"git@github.com:aka001/diaspora.git","clone_url":"https://github.com/aka001/diaspora.git","svn_url":"https://github.com/aka001/diaspora","homepage":"https://diasporafoundation.org/","size":97352,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"diaspora:develop","ref":"develop","sha":"7de66abce98b160b21023be35cac62b45654e02f","user":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"repo":{"id":911765,"name":"diaspora","full_name":"diaspora/diaspora","owner":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diaspora/diaspora","description":"Distributed and contextual social networking","fork":false,"url":"https://api.github.com/repos/diaspora/diaspora","forks_url":"https://api.github.com/repos/diaspora/diaspora/forks","keys_url":"https://api.github.com/repos/diaspora/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diaspora/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diaspora/diaspora/teams","hooks_url":"https://api.github.com/repos/diaspora/diaspora/hooks","issue_events_url":"https://api.github.com/repos/diaspora/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/diaspora/diaspora/events","assignees_url":"https://api.github.com/repos/diaspora/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/diaspora/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/diaspora/diaspora/tags","blobs_url":"https://api.github.com/repos/diaspora/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diaspora/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diaspora/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/diaspora/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/diaspora/diaspora/languages","stargazers_url":"https://api.github.com/repos/diaspora/diaspora/stargazers","contributors_url":"https://api.github.com/repos/diaspora/diaspora/contributors","subscribers_url":"https://api.github.com/repos/diaspora/diaspora/subscribers","subscription_url":"https://api.github.com/repos/diaspora/diaspora/subscription","commits_url":"https://api.github.com/repos/diaspora/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/diaspora/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/diaspora/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/diaspora/diaspora/issues/comments/{number}","contents_url":"https://api.github.com/repos/diaspora/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/diaspora/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diaspora/diaspora/merges","archive_url":"https://api.github.com/repos/diaspora/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diaspora/diaspora/downloads","issues_url":"https://api.github.com/repos/diaspora/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/diaspora/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/diaspora/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/diaspora/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diaspora/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/diaspora/diaspora/releases{/id}","created_at":"2010-09-15T05:20:04Z","updated_at":"2015-02-18T17:38:23Z","pushed_at":"2015-02-18T17:38:23Z","git_url":"git://github.com/diaspora/diaspora.git","ssh_url":"git@github.com:diaspora/diaspora.git","clone_url":"https://github.com/diaspora/diaspora.git","svn_url":"https://github.com/diaspora/diaspora","homepage":"https://diasporafoundation.org/","size":247972,"stargazers_count":9787,"watchers_count":9787,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2510,"mirror_url":null,"open_issues_count":426,"forks":2510,"open_issues":426,"watchers":9787,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5643"},"html":{"href":"https://github.com/diaspora/diaspora/pull/5643"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/5643"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/5643/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5643/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5643/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/617fee390d22ba1c3b9b354a85b3c6ac6c0b73bb"}}}}