{"action":"created","comment":{"url":"https://api.github.com/repos/openSUSE/osem/pulls/comments/126920577","pull_request_review_id":49450842,"id":126920577,"diff_hunk":"@@ -6,6 +6,8 @@ class Conference < ActiveRecord::Base\n   resourcify :roles, dependent: :delete_all\n \n   default_scope { order('start_date DESC') }\n+  scope :upcoming_conferences, (-> { where('end_date >= ?', Date.current) })\n+  scope :past_conferences, (-> { where('end_date < ?', Date.current) })","path":"app/models/conference.rb","position":5,"original_position":5,"commit_id":"4d477733d7448ce4c4cc27a577785c086005733e","original_commit_id":"4d477733d7448ce4c4cc27a577785c086005733e","user":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars2.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"body":"The rubocop generates a warning if the parenthesis are missing.","created_at":"2017-07-12T10:36:45Z","updated_at":"2017-07-12T10:36:45Z","html_url":"https://github.com/openSUSE/osem/pull/1578#discussion_r126920577","pull_request_url":"https://api.github.com/repos/openSUSE/osem/pulls/1578","_links":{"self":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/comments/126920577"},"html":{"href":"https://github.com/openSUSE/osem/pull/1578#discussion_r126920577"},"pull_request":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/1578"}}},"pull_request":{"url":"https://api.github.com/repos/openSUSE/osem/pulls/1578","id":129795523,"html_url":"https://github.com/openSUSE/osem/pull/1578","diff_url":"https://github.com/openSUSE/osem/pull/1578.diff","patch_url":"https://github.com/openSUSE/osem/pull/1578.patch","issue_url":"https://api.github.com/repos/openSUSE/osem/issues/1578","number":1578,"state":"open","locked":false,"title":"Correct past and upcoming conferences count in admin/organizations#index","user":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars2.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"body":"Display correct past and upcoming conferences count in `organizations@index` : \r\n\r\n![screenshot_20170608_043224](https://user-images.githubusercontent.com/14155445/28044658-4c376aea-65f6-11e7-8c2f-20f00f95e508.png)\r\n","created_at":"2017-07-10T23:34:14Z","updated_at":"2017-07-12T10:36:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80584d2ead864b5637da47532e1b0e40755add27","assignee":{"login":"lagartoflojo","id":2944,"avatar_url":"https://avatars2.githubusercontent.com/u/2944?v=3","gravatar_id":"","url":"https://api.github.com/users/lagartoflojo","html_url":"https://github.com/lagartoflojo","followers_url":"https://api.github.com/users/lagartoflojo/followers","following_url":"https://api.github.com/users/lagartoflojo/following{/other_user}","gists_url":"https://api.github.com/users/lagartoflojo/gists{/gist_id}","starred_url":"https://api.github.com/users/lagartoflojo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagartoflojo/subscriptions","organizations_url":"https://api.github.com/users/lagartoflojo/orgs","repos_url":"https://api.github.com/users/lagartoflojo/repos","events_url":"https://api.github.com/users/lagartoflojo/events{/privacy}","received_events_url":"https://api.github.com/users/lagartoflojo/received_events","type":"User","site_admin":false},"assignees":[{"login":"lagartoflojo","id":2944,"avatar_url":"https://avatars2.githubusercontent.com/u/2944?v=3","gravatar_id":"","url":"https://api.github.com/users/lagartoflojo","html_url":"https://github.com/lagartoflojo","followers_url":"https://api.github.com/users/lagartoflojo/followers","following_url":"https://api.github.com/users/lagartoflojo/following{/other_user}","gists_url":"https://api.github.com/users/lagartoflojo/gists{/gist_id}","starred_url":"https://api.github.com/users/lagartoflojo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lagartoflojo/subscriptions","organizations_url":"https://api.github.com/users/lagartoflojo/orgs","repos_url":"https://api.github.com/users/lagartoflojo/repos","events_url":"https://api.github.com/users/lagartoflojo/events{/privacy}","received_events_url":"https://api.github.com/users/lagartoflojo/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/openSUSE/osem/pulls/1578/commits","review_comments_url":"https://api.github.com/repos/openSUSE/osem/pulls/1578/comments","review_comment_url":"https://api.github.com/repos/openSUSE/osem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openSUSE/osem/issues/1578/comments","statuses_url":"https://api.github.com/repos/openSUSE/osem/statuses/4d477733d7448ce4c4cc27a577785c086005733e","head":{"label":"shlok007:fix-conf-counts","ref":"fix-conf-counts","sha":"4d477733d7448ce4c4cc27a577785c086005733e","user":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars2.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"repo":{"id":58906432,"name":"osem","full_name":"shlok007/osem","owner":{"login":"shlok007","id":14155445,"avatar_url":"https://avatars2.githubusercontent.com/u/14155445?v=3","gravatar_id":"","url":"https://api.github.com/users/shlok007","html_url":"https://github.com/shlok007","followers_url":"https://api.github.com/users/shlok007/followers","following_url":"https://api.github.com/users/shlok007/following{/other_user}","gists_url":"https://api.github.com/users/shlok007/gists{/gist_id}","starred_url":"https://api.github.com/users/shlok007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlok007/subscriptions","organizations_url":"https://api.github.com/users/shlok007/orgs","repos_url":"https://api.github.com/users/shlok007/repos","events_url":"https://api.github.com/users/shlok007/events{/privacy}","received_events_url":"https://api.github.com/users/shlok007/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shlok007/osem","description":"Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.","fork":true,"url":"https://api.github.com/repos/shlok007/osem","forks_url":"https://api.github.com/repos/shlok007/osem/forks","keys_url":"https://api.github.com/repos/shlok007/osem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shlok007/osem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shlok007/osem/teams","hooks_url":"https://api.github.com/repos/shlok007/osem/hooks","issue_events_url":"https://api.github.com/repos/shlok007/osem/issues/events{/number}","events_url":"https://api.github.com/repos/shlok007/osem/events","assignees_url":"https://api.github.com/repos/shlok007/osem/assignees{/user}","branches_url":"https://api.github.com/repos/shlok007/osem/branches{/branch}","tags_url":"https://api.github.com/repos/shlok007/osem/tags","blobs_url":"https://api.github.com/repos/shlok007/osem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shlok007/osem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shlok007/osem/git/refs{/sha}","trees_url":"https://api.github.com/repos/shlok007/osem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shlok007/osem/statuses/{sha}","languages_url":"https://api.github.com/repos/shlok007/osem/languages","stargazers_url":"https://api.github.com/repos/shlok007/osem/stargazers","contributors_url":"https://api.github.com/repos/shlok007/osem/contributors","subscribers_url":"https://api.github.com/repos/shlok007/osem/subscribers","subscription_url":"https://api.github.com/repos/shlok007/osem/subscription","commits_url":"https://api.github.com/repos/shlok007/osem/commits{/sha}","git_commits_url":"https://api.github.com/repos/shlok007/osem/git/commits{/sha}","comments_url":"https://api.github.com/repos/shlok007/osem/comments{/number}","issue_comment_url":"https://api.github.com/repos/shlok007/osem/issues/comments{/number}","contents_url":"https://api.github.com/repos/shlok007/osem/contents/{+path}","compare_url":"https://api.github.com/repos/shlok007/osem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shlok007/osem/merges","archive_url":"https://api.github.com/repos/shlok007/osem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shlok007/osem/downloads","issues_url":"https://api.github.com/repos/shlok007/osem/issues{/number}","pulls_url":"https://api.github.com/repos/shlok007/osem/pulls{/number}","milestones_url":"https://api.github.com/repos/shlok007/osem/milestones{/number}","notifications_url":"https://api.github.com/repos/shlok007/osem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shlok007/osem/labels{/name}","releases_url":"https://api.github.com/repos/shlok007/osem/releases{/id}","deployments_url":"https://api.github.com/repos/shlok007/osem/deployments","created_at":"2016-05-16T05:37:12Z","updated_at":"2017-06-22T02:48:26Z","pushed_at":"2017-07-12T10:10:50Z","git_url":"git://github.com/shlok007/osem.git","ssh_url":"git@github.com:shlok007/osem.git","clone_url":"https://github.com/shlok007/osem.git","svn_url":"https://github.com/shlok007/osem","homepage":"http://osem.io","size":23336,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"openSUSE:master","ref":"master","sha":"93d5e360ca0fbf42dba804e1bf3c71ad936f2cc9","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars1.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":5911225,"name":"osem","full_name":"openSUSE/osem","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars1.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/osem","description":"Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.","fork":false,"url":"https://api.github.com/repos/openSUSE/osem","forks_url":"https://api.github.com/repos/openSUSE/osem/forks","keys_url":"https://api.github.com/repos/openSUSE/osem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/osem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/osem/teams","hooks_url":"https://api.github.com/repos/openSUSE/osem/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/osem/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/osem/events","assignees_url":"https://api.github.com/repos/openSUSE/osem/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/osem/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/osem/tags","blobs_url":"https://api.github.com/repos/openSUSE/osem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/osem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/osem/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/osem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/osem/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/osem/languages","stargazers_url":"https://api.github.com/repos/openSUSE/osem/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/osem/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/osem/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/osem/subscription","commits_url":"https://api.github.com/repos/openSUSE/osem/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/osem/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/osem/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/osem/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/osem/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/osem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/osem/merges","archive_url":"https://api.github.com/repos/openSUSE/osem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/osem/downloads","issues_url":"https://api.github.com/repos/openSUSE/osem/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/osem/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/osem/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/osem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/osem/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/osem/releases{/id}","deployments_url":"https://api.github.com/repos/openSUSE/osem/deployments","created_at":"2012-09-22T07:40:18Z","updated_at":"2017-07-11T15:11:24Z","pushed_at":"2017-07-12T10:10:51Z","git_url":"git://github.com/openSUSE/osem.git","ssh_url":"git@github.com:openSUSE/osem.git","clone_url":"https://github.com/openSUSE/osem.git","svn_url":"https://github.com/openSUSE/osem","homepage":"http://osem.io","size":39859,"stargazers_count":298,"watchers_count":298,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":246,"mirror_url":null,"open_issues_count":165,"forks":246,"open_issues":165,"watchers":298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/1578"},"html":{"href":"https://github.com/openSUSE/osem/pull/1578"},"issue":{"href":"https://api.github.com/repos/openSUSE/osem/issues/1578"},"comments":{"href":"https://api.github.com/repos/openSUSE/osem/issues/1578/comments"},"review_comments":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/1578/comments"},"review_comment":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openSUSE/osem/pulls/1578/commits"},"statuses":{"href":"https://api.github.com/repos/openSUSE/osem/statuses/4d477733d7448ce4c4cc27a577785c086005733e"}}}}
{"actor":{"display_login":"shlok007"}}