{"action":"created","comment":{"url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/comments/146544802","pull_request_review_id":71500678,"id":146544802,"diff_hunk":"@@ -0,0 +1,37 @@\n+public class OpportunitiesSelector extends fflib_SObjectSelector {\n+    \n+    List<String> selectFields = new List<String> {'Id', 'Manager__c', 'BillToContact__r.AccountId', 'StageName'};\n+    List<String> selectOpportunityFieldsWithAccount = new List<String> {'Account.Name', 'Sum(Amount)'};\n+\n+    public OpportunitiesSelector()\n+\t{\n+\t\tsuper(false);\n+\t}\n+\t\n+\tpublic OpportunitiesSelector(Boolean includeFieldSetFields)\n+\t{\n+\t\tsuper(includeFieldSetFields);\n+\t}\n+    \n+    public List<Schema.SObjectField> getSObjectFieldList() {\n+        return new List<Schema.SObjectField> {\n+            Opportunity.ID\n+        };\n+    }\n+    \n+    public Schema.SObjectType getSObjectType() {\n+        return Opportunity.sObjectType;\n+    }\n+    \n+    public List<Opportunity> selectById(Set<ID> idSet) {\n+        String query = String.format(\n+            'SELECT {0} FROM {1} WHERE id IN :idSet', new List<String>{string.join(selectFields, ','), getSObjectName()});\n+        return (List<Opportunity>) database.query(query);\n+    }\n+    \n+    public List<AggregateResult> selectAggregateAccountByName()\n+    {\n+        String query = String.format('Select  {0} sum from {1} where Account.Name != \\'\\' Group By Account.Name limit 10', new List<String>{string.join(selectOpportunityFieldsWithAccount,','), getSObjectName()});","path":"src/classes/OpportunitiesSelector.cls","position":34,"original_position":34,"commit_id":"304be8101f5f1d9cb59e391b9aaccbce14df4b01","original_commit_id":"304be8101f5f1d9cb59e391b9aaccbce14df4b01","user":{"login":"anurag13","id":13681735,"avatar_url":"https://avatars3.githubusercontent.com/u/13681735?v=4","gravatar_id":"","url":"https://api.github.com/users/anurag13","html_url":"https://github.com/anurag13","followers_url":"https://api.github.com/users/anurag13/followers","following_url":"https://api.github.com/users/anurag13/following{/other_user}","gists_url":"https://api.github.com/users/anurag13/gists{/gist_id}","starred_url":"https://api.github.com/users/anurag13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anurag13/subscriptions","organizations_url":"https://api.github.com/users/anurag13/orgs","repos_url":"https://api.github.com/users/anurag13/repos","events_url":"https://api.github.com/users/anurag13/events{/privacy}","received_events_url":"https://api.github.com/users/anurag13/received_events","type":"User","site_admin":false},"body":"use NULL","created_at":"2017-10-24T12:36:58Z","updated_at":"2017-10-24T12:36:58Z","html_url":"https://github.com/poonamdasani/StudentClassRepo/pull/12#discussion_r146544802","pull_request_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/12","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/comments/146544802"},"html":{"href":"https://github.com/poonamdasani/StudentClassRepo/pull/12#discussion_r146544802"},"pull_request":{"href":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/12","id":148367429,"html_url":"https://github.com/poonamdasani/StudentClassRepo/pull/12","diff_url":"https://github.com/poonamdasani/StudentClassRepo/pull/12.diff","patch_url":"https://github.com/poonamdasani/StudentClassRepo/pull/12.patch","issue_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues/12","number":12,"state":"open","locked":false,"title":"Governor Limits","user":{"login":"poonamdasani","id":3863474,"avatar_url":"https://avatars0.githubusercontent.com/u/3863474?v=4","gravatar_id":"","url":"https://api.github.com/users/poonamdasani","html_url":"https://github.com/poonamdasani","followers_url":"https://api.github.com/users/poonamdasani/followers","following_url":"https://api.github.com/users/poonamdasani/following{/other_user}","gists_url":"https://api.github.com/users/poonamdasani/gists{/gist_id}","starred_url":"https://api.github.com/users/poonamdasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poonamdasani/subscriptions","organizations_url":"https://api.github.com/users/poonamdasani/orgs","repos_url":"https://api.github.com/users/poonamdasani/repos","events_url":"https://api.github.com/users/poonamdasani/events{/privacy}","received_events_url":"https://api.github.com/users/poonamdasani/received_events","type":"User","site_admin":false},"body":"Please Review","created_at":"2017-10-24T11:19:24Z","updated_at":"2017-10-24T12:36:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5bdde416aab6a811de743340398caf1217e6f77a","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/12/commits","review_comments_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/12/comments","review_comment_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues/12/comments","statuses_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/statuses/304be8101f5f1d9cb59e391b9aaccbce14df4b01","head":{"label":"poonamdasani:Assignment13","ref":"Assignment13","sha":"304be8101f5f1d9cb59e391b9aaccbce14df4b01","user":{"login":"poonamdasani","id":3863474,"avatar_url":"https://avatars0.githubusercontent.com/u/3863474?v=4","gravatar_id":"","url":"https://api.github.com/users/poonamdasani","html_url":"https://github.com/poonamdasani","followers_url":"https://api.github.com/users/poonamdasani/followers","following_url":"https://api.github.com/users/poonamdasani/following{/other_user}","gists_url":"https://api.github.com/users/poonamdasani/gists{/gist_id}","starred_url":"https://api.github.com/users/poonamdasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poonamdasani/subscriptions","organizations_url":"https://api.github.com/users/poonamdasani/orgs","repos_url":"https://api.github.com/users/poonamdasani/repos","events_url":"https://api.github.com/users/poonamdasani/events{/privacy}","received_events_url":"https://api.github.com/users/poonamdasani/received_events","type":"User","site_admin":false},"repo":{"id":105772668,"name":"StudentClassRepo","full_name":"poonamdasani/StudentClassRepo","owner":{"login":"poonamdasani","id":3863474,"avatar_url":"https://avatars0.githubusercontent.com/u/3863474?v=4","gravatar_id":"","url":"https://api.github.com/users/poonamdasani","html_url":"https://github.com/poonamdasani","followers_url":"https://api.github.com/users/poonamdasani/followers","following_url":"https://api.github.com/users/poonamdasani/following{/other_user}","gists_url":"https://api.github.com/users/poonamdasani/gists{/gist_id}","starred_url":"https://api.github.com/users/poonamdasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poonamdasani/subscriptions","organizations_url":"https://api.github.com/users/poonamdasani/orgs","repos_url":"https://api.github.com/users/poonamdasani/repos","events_url":"https://api.github.com/users/poonamdasani/events{/privacy}","received_events_url":"https://api.github.com/users/poonamdasani/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/poonamdasani/StudentClassRepo","description":null,"fork":false,"url":"https://api.github.com/repos/poonamdasani/StudentClassRepo","forks_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/forks","keys_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/teams","hooks_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/hooks","issue_events_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues/events{/number}","events_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/events","assignees_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/assignees{/user}","branches_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/branches{/branch}","tags_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/tags","blobs_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/refs{/sha}","trees_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/statuses/{sha}","languages_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/languages","stargazers_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/stargazers","contributors_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/contributors","subscribers_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/subscribers","subscription_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/subscription","commits_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/commits{/sha}","git_commits_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/commits{/sha}","comments_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/comments{/number}","issue_comment_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues/comments{/number}","contents_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/contents/{+path}","compare_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/merges","archive_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/downloads","issues_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues{/number}","pulls_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls{/number}","milestones_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/milestones{/number}","notifications_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/labels{/name}","releases_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/releases{/id}","deployments_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/deployments","created_at":"2017-10-04T13:36:19Z","updated_at":"2017-10-04T13:36:19Z","pushed_at":"2017-10-24T11:19:24Z","git_url":"git://github.com/poonamdasani/StudentClassRepo.git","ssh_url":"git@github.com:poonamdasani/StudentClassRepo.git","clone_url":"https://github.com/poonamdasani/StudentClassRepo.git","svn_url":"https://github.com/poonamdasani/StudentClassRepo","homepage":"","size":108,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"poonamdasani:master","ref":"master","sha":"d05a77e08abf00a928e174ac90161e26997acf0c","user":{"login":"poonamdasani","id":3863474,"avatar_url":"https://avatars0.githubusercontent.com/u/3863474?v=4","gravatar_id":"","url":"https://api.github.com/users/poonamdasani","html_url":"https://github.com/poonamdasani","followers_url":"https://api.github.com/users/poonamdasani/followers","following_url":"https://api.github.com/users/poonamdasani/following{/other_user}","gists_url":"https://api.github.com/users/poonamdasani/gists{/gist_id}","starred_url":"https://api.github.com/users/poonamdasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poonamdasani/subscriptions","organizations_url":"https://api.github.com/users/poonamdasani/orgs","repos_url":"https://api.github.com/users/poonamdasani/repos","events_url":"https://api.github.com/users/poonamdasani/events{/privacy}","received_events_url":"https://api.github.com/users/poonamdasani/received_events","type":"User","site_admin":false},"repo":{"id":105772668,"name":"StudentClassRepo","full_name":"poonamdasani/StudentClassRepo","owner":{"login":"poonamdasani","id":3863474,"avatar_url":"https://avatars0.githubusercontent.com/u/3863474?v=4","gravatar_id":"","url":"https://api.github.com/users/poonamdasani","html_url":"https://github.com/poonamdasani","followers_url":"https://api.github.com/users/poonamdasani/followers","following_url":"https://api.github.com/users/poonamdasani/following{/other_user}","gists_url":"https://api.github.com/users/poonamdasani/gists{/gist_id}","starred_url":"https://api.github.com/users/poonamdasani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poonamdasani/subscriptions","organizations_url":"https://api.github.com/users/poonamdasani/orgs","repos_url":"https://api.github.com/users/poonamdasani/repos","events_url":"https://api.github.com/users/poonamdasani/events{/privacy}","received_events_url":"https://api.github.com/users/poonamdasani/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/poonamdasani/StudentClassRepo","description":null,"fork":false,"url":"https://api.github.com/repos/poonamdasani/StudentClassRepo","forks_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/forks","keys_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/teams","hooks_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/hooks","issue_events_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues/events{/number}","events_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/events","assignees_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/assignees{/user}","branches_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/branches{/branch}","tags_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/tags","blobs_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/refs{/sha}","trees_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/statuses/{sha}","languages_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/languages","stargazers_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/stargazers","contributors_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/contributors","subscribers_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/subscribers","subscription_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/subscription","commits_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/commits{/sha}","git_commits_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/git/commits{/sha}","comments_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/comments{/number}","issue_comment_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues/comments{/number}","contents_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/contents/{+path}","compare_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/merges","archive_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/downloads","issues_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues{/number}","pulls_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls{/number}","milestones_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/milestones{/number}","notifications_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/labels{/name}","releases_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/releases{/id}","deployments_url":"https://api.github.com/repos/poonamdasani/StudentClassRepo/deployments","created_at":"2017-10-04T13:36:19Z","updated_at":"2017-10-04T13:36:19Z","pushed_at":"2017-10-24T11:19:24Z","git_url":"git://github.com/poonamdasani/StudentClassRepo.git","ssh_url":"git@github.com:poonamdasani/StudentClassRepo.git","clone_url":"https://github.com/poonamdasani/StudentClassRepo.git","svn_url":"https://github.com/poonamdasani/StudentClassRepo","homepage":"","size":108,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/12"},"html":{"href":"https://github.com/poonamdasani/StudentClassRepo/pull/12"},"issue":{"href":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues/12"},"comments":{"href":"https://api.github.com/repos/poonamdasani/StudentClassRepo/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/poonamdasani/StudentClassRepo/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/poonamdasani/StudentClassRepo/statuses/304be8101f5f1d9cb59e391b9aaccbce14df4b01"}},"author_association":"OWNER"}}
{"actor":{"display_login":"anurag13"}}