{"action":"created","comment":{"url":"https://api.github.com/repos/owahab/active_sorting/pulls/comments/60389531","id":60389531,"diff_hunk":"@@ -181,7 +181,7 @@ def active_sorting_next_step\n                 .where(conditions)\n                 .maximum(self.class.active_sorting_field)\n       # First value will always be 0\n-      return 0 if max.nil?\n+      return self.class.active_sorting_step if max.nil?","path":"lib/active_sorting/model.rb","position":52,"original_position":52,"commit_id":"82b307821cf6efd256609ff782792e422b0b9007","original_commit_id":"82b307821cf6efd256609ff782792e422b0b9007","user":{"login":"owahab","id":125080,"avatar_url":"https://avatars.githubusercontent.com/u/125080?v=3","gravatar_id":"","url":"https://api.github.com/users/owahab","html_url":"https://github.com/owahab","followers_url":"https://api.github.com/users/owahab/followers","following_url":"https://api.github.com/users/owahab/following{/other_user}","gists_url":"https://api.github.com/users/owahab/gists{/gist_id}","starred_url":"https://api.github.com/users/owahab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owahab/subscriptions","organizations_url":"https://api.github.com/users/owahab/orgs","repos_url":"https://api.github.com/users/owahab/repos","events_url":"https://api.github.com/users/owahab/events{/privacy}","received_events_url":"https://api.github.com/users/owahab/received_events","type":"User","site_admin":false},"body":"💣 this has broken multiple specs. Please update relevant specs.","created_at":"2016-04-20T11:12:50Z","updated_at":"2016-04-20T11:12:50Z","html_url":"https://github.com/owahab/active_sorting/pull/1#discussion_r60389531","pull_request_url":"https://api.github.com/repos/owahab/active_sorting/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/owahab/active_sorting/pulls/comments/60389531"},"html":{"href":"https://github.com/owahab/active_sorting/pull/1#discussion_r60389531"},"pull_request":{"href":"https://api.github.com/repos/owahab/active_sorting/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/owahab/active_sorting/pulls/1","id":67167111,"html_url":"https://github.com/owahab/active_sorting/pull/1","diff_url":"https://github.com/owahab/active_sorting/pull/1.diff","patch_url":"https://github.com/owahab/active_sorting/pull/1.patch","issue_url":"https://api.github.com/repos/owahab/active_sorting/issues/1","number":1,"state":"open","locked":false,"title":"use id_column parameter","user":{"login":"raniaashraf","id":6077001,"avatar_url":"https://avatars.githubusercontent.com/u/6077001?v=3","gravatar_id":"","url":"https://api.github.com/users/raniaashraf","html_url":"https://github.com/raniaashraf","followers_url":"https://api.github.com/users/raniaashraf/followers","following_url":"https://api.github.com/users/raniaashraf/following{/other_user}","gists_url":"https://api.github.com/users/raniaashraf/gists{/gist_id}","starred_url":"https://api.github.com/users/raniaashraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raniaashraf/subscriptions","organizations_url":"https://api.github.com/users/raniaashraf/orgs","repos_url":"https://api.github.com/users/raniaashraf/repos","events_url":"https://api.github.com/users/raniaashraf/events{/privacy}","received_events_url":"https://api.github.com/users/raniaashraf/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-20T11:00:55Z","updated_at":"2016-04-20T11:12:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e948132eb7a70b766147cc945ad3da447b1cd036","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/owahab/active_sorting/pulls/1/commits","review_comments_url":"https://api.github.com/repos/owahab/active_sorting/pulls/1/comments","review_comment_url":"https://api.github.com/repos/owahab/active_sorting/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owahab/active_sorting/issues/1/comments","statuses_url":"https://api.github.com/repos/owahab/active_sorting/statuses/82b307821cf6efd256609ff782792e422b0b9007","head":{"label":"raniaashraf:fix/id_column","ref":"fix/id_column","sha":"82b307821cf6efd256609ff782792e422b0b9007","user":{"login":"raniaashraf","id":6077001,"avatar_url":"https://avatars.githubusercontent.com/u/6077001?v=3","gravatar_id":"","url":"https://api.github.com/users/raniaashraf","html_url":"https://github.com/raniaashraf","followers_url":"https://api.github.com/users/raniaashraf/followers","following_url":"https://api.github.com/users/raniaashraf/following{/other_user}","gists_url":"https://api.github.com/users/raniaashraf/gists{/gist_id}","starred_url":"https://api.github.com/users/raniaashraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raniaashraf/subscriptions","organizations_url":"https://api.github.com/users/raniaashraf/orgs","repos_url":"https://api.github.com/users/raniaashraf/repos","events_url":"https://api.github.com/users/raniaashraf/events{/privacy}","received_events_url":"https://api.github.com/users/raniaashraf/received_events","type":"User","site_admin":false},"repo":{"id":56607850,"name":"active_sorting","full_name":"raniaashraf/active_sorting","owner":{"login":"raniaashraf","id":6077001,"avatar_url":"https://avatars.githubusercontent.com/u/6077001?v=3","gravatar_id":"","url":"https://api.github.com/users/raniaashraf","html_url":"https://github.com/raniaashraf","followers_url":"https://api.github.com/users/raniaashraf/followers","following_url":"https://api.github.com/users/raniaashraf/following{/other_user}","gists_url":"https://api.github.com/users/raniaashraf/gists{/gist_id}","starred_url":"https://api.github.com/users/raniaashraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raniaashraf/subscriptions","organizations_url":"https://api.github.com/users/raniaashraf/orgs","repos_url":"https://api.github.com/users/raniaashraf/repos","events_url":"https://api.github.com/users/raniaashraf/events{/privacy}","received_events_url":"https://api.github.com/users/raniaashraf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raniaashraf/active_sorting","description":"","fork":true,"url":"https://api.github.com/repos/raniaashraf/active_sorting","forks_url":"https://api.github.com/repos/raniaashraf/active_sorting/forks","keys_url":"https://api.github.com/repos/raniaashraf/active_sorting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raniaashraf/active_sorting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raniaashraf/active_sorting/teams","hooks_url":"https://api.github.com/repos/raniaashraf/active_sorting/hooks","issue_events_url":"https://api.github.com/repos/raniaashraf/active_sorting/issues/events{/number}","events_url":"https://api.github.com/repos/raniaashraf/active_sorting/events","assignees_url":"https://api.github.com/repos/raniaashraf/active_sorting/assignees{/user}","branches_url":"https://api.github.com/repos/raniaashraf/active_sorting/branches{/branch}","tags_url":"https://api.github.com/repos/raniaashraf/active_sorting/tags","blobs_url":"https://api.github.com/repos/raniaashraf/active_sorting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raniaashraf/active_sorting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raniaashraf/active_sorting/git/refs{/sha}","trees_url":"https://api.github.com/repos/raniaashraf/active_sorting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raniaashraf/active_sorting/statuses/{sha}","languages_url":"https://api.github.com/repos/raniaashraf/active_sorting/languages","stargazers_url":"https://api.github.com/repos/raniaashraf/active_sorting/stargazers","contributors_url":"https://api.github.com/repos/raniaashraf/active_sorting/contributors","subscribers_url":"https://api.github.com/repos/raniaashraf/active_sorting/subscribers","subscription_url":"https://api.github.com/repos/raniaashraf/active_sorting/subscription","commits_url":"https://api.github.com/repos/raniaashraf/active_sorting/commits{/sha}","git_commits_url":"https://api.github.com/repos/raniaashraf/active_sorting/git/commits{/sha}","comments_url":"https://api.github.com/repos/raniaashraf/active_sorting/comments{/number}","issue_comment_url":"https://api.github.com/repos/raniaashraf/active_sorting/issues/comments{/number}","contents_url":"https://api.github.com/repos/raniaashraf/active_sorting/contents/{+path}","compare_url":"https://api.github.com/repos/raniaashraf/active_sorting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raniaashraf/active_sorting/merges","archive_url":"https://api.github.com/repos/raniaashraf/active_sorting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raniaashraf/active_sorting/downloads","issues_url":"https://api.github.com/repos/raniaashraf/active_sorting/issues{/number}","pulls_url":"https://api.github.com/repos/raniaashraf/active_sorting/pulls{/number}","milestones_url":"https://api.github.com/repos/raniaashraf/active_sorting/milestones{/number}","notifications_url":"https://api.github.com/repos/raniaashraf/active_sorting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raniaashraf/active_sorting/labels{/name}","releases_url":"https://api.github.com/repos/raniaashraf/active_sorting/releases{/id}","deployments_url":"https://api.github.com/repos/raniaashraf/active_sorting/deployments","created_at":"2016-04-19T15:15:54Z","updated_at":"2016-04-19T15:15:55Z","pushed_at":"2016-04-20T11:00:12Z","git_url":"git://github.com/raniaashraf/active_sorting.git","ssh_url":"git@github.com:raniaashraf/active_sorting.git","clone_url":"https://github.com/raniaashraf/active_sorting.git","svn_url":"https://github.com/raniaashraf/active_sorting","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"master"}},"base":{"label":"owahab:master","ref":"master","sha":"922a16d802c079d5ef6fd624631235e2e7da5bc4","user":{"login":"owahab","id":125080,"avatar_url":"https://avatars.githubusercontent.com/u/125080?v=3","gravatar_id":"","url":"https://api.github.com/users/owahab","html_url":"https://github.com/owahab","followers_url":"https://api.github.com/users/owahab/followers","following_url":"https://api.github.com/users/owahab/following{/other_user}","gists_url":"https://api.github.com/users/owahab/gists{/gist_id}","starred_url":"https://api.github.com/users/owahab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owahab/subscriptions","organizations_url":"https://api.github.com/users/owahab/orgs","repos_url":"https://api.github.com/users/owahab/repos","events_url":"https://api.github.com/users/owahab/events{/privacy}","received_events_url":"https://api.github.com/users/owahab/received_events","type":"User","site_admin":false},"repo":{"id":56224407,"name":"active_sorting","full_name":"owahab/active_sorting","owner":{"login":"owahab","id":125080,"avatar_url":"https://avatars.githubusercontent.com/u/125080?v=3","gravatar_id":"","url":"https://api.github.com/users/owahab","html_url":"https://github.com/owahab","followers_url":"https://api.github.com/users/owahab/followers","following_url":"https://api.github.com/users/owahab/following{/other_user}","gists_url":"https://api.github.com/users/owahab/gists{/gist_id}","starred_url":"https://api.github.com/users/owahab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owahab/subscriptions","organizations_url":"https://api.github.com/users/owahab/orgs","repos_url":"https://api.github.com/users/owahab/repos","events_url":"https://api.github.com/users/owahab/events{/privacy}","received_events_url":"https://api.github.com/users/owahab/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/owahab/active_sorting","description":"","fork":false,"url":"https://api.github.com/repos/owahab/active_sorting","forks_url":"https://api.github.com/repos/owahab/active_sorting/forks","keys_url":"https://api.github.com/repos/owahab/active_sorting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owahab/active_sorting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owahab/active_sorting/teams","hooks_url":"https://api.github.com/repos/owahab/active_sorting/hooks","issue_events_url":"https://api.github.com/repos/owahab/active_sorting/issues/events{/number}","events_url":"https://api.github.com/repos/owahab/active_sorting/events","assignees_url":"https://api.github.com/repos/owahab/active_sorting/assignees{/user}","branches_url":"https://api.github.com/repos/owahab/active_sorting/branches{/branch}","tags_url":"https://api.github.com/repos/owahab/active_sorting/tags","blobs_url":"https://api.github.com/repos/owahab/active_sorting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owahab/active_sorting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owahab/active_sorting/git/refs{/sha}","trees_url":"https://api.github.com/repos/owahab/active_sorting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owahab/active_sorting/statuses/{sha}","languages_url":"https://api.github.com/repos/owahab/active_sorting/languages","stargazers_url":"https://api.github.com/repos/owahab/active_sorting/stargazers","contributors_url":"https://api.github.com/repos/owahab/active_sorting/contributors","subscribers_url":"https://api.github.com/repos/owahab/active_sorting/subscribers","subscription_url":"https://api.github.com/repos/owahab/active_sorting/subscription","commits_url":"https://api.github.com/repos/owahab/active_sorting/commits{/sha}","git_commits_url":"https://api.github.com/repos/owahab/active_sorting/git/commits{/sha}","comments_url":"https://api.github.com/repos/owahab/active_sorting/comments{/number}","issue_comment_url":"https://api.github.com/repos/owahab/active_sorting/issues/comments{/number}","contents_url":"https://api.github.com/repos/owahab/active_sorting/contents/{+path}","compare_url":"https://api.github.com/repos/owahab/active_sorting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owahab/active_sorting/merges","archive_url":"https://api.github.com/repos/owahab/active_sorting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owahab/active_sorting/downloads","issues_url":"https://api.github.com/repos/owahab/active_sorting/issues{/number}","pulls_url":"https://api.github.com/repos/owahab/active_sorting/pulls{/number}","milestones_url":"https://api.github.com/repos/owahab/active_sorting/milestones{/number}","notifications_url":"https://api.github.com/repos/owahab/active_sorting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owahab/active_sorting/labels{/name}","releases_url":"https://api.github.com/repos/owahab/active_sorting/releases{/id}","deployments_url":"https://api.github.com/repos/owahab/active_sorting/deployments","created_at":"2016-04-14T09:24:40Z","updated_at":"2016-04-14T09:24:51Z","pushed_at":"2016-04-20T11:00:55Z","git_url":"git://github.com/owahab/active_sorting.git","ssh_url":"git@github.com:owahab/active_sorting.git","clone_url":"https://github.com/owahab/active_sorting.git","svn_url":"https://github.com/owahab/active_sorting","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owahab/active_sorting/pulls/1"},"html":{"href":"https://github.com/owahab/active_sorting/pull/1"},"issue":{"href":"https://api.github.com/repos/owahab/active_sorting/issues/1"},"comments":{"href":"https://api.github.com/repos/owahab/active_sorting/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/owahab/active_sorting/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/owahab/active_sorting/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owahab/active_sorting/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/owahab/active_sorting/statuses/82b307821cf6efd256609ff782792e422b0b9007"}}}}