{"action":"created","comment":{"url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/comments/77896841","id":77896841,"diff_hunk":"@@ -0,0 +1,30 @@\n+public class PayrollListController {\n+    public list<Payroll__c> getPayrolls(){\n+        String get_id = ApexPages.currentPage().getParameters().get('id');\n+        String date_range = ApexPages.currentPage().getParameters().get('range');\n+        list<Payroll__c> payroll_query = [SELECT Id, Name, CreatedDate, Contact__c, Contact__r.Birthdate, Gross_Pay__c, Net_Pay__c, Start_date__c, End_date__c, Has_Dependants__c, Is_Submitted__c, Payroll_Status__c FROM Payroll__c];\n+        list<Payroll__c> payroll_list = new list<Payroll__c>(); \n+        for (Payroll__c p: payroll_query){\n+            if (date_range == 'today' && get_id != null){\n+                if (p.Contact__c == get_id && p.CreatedDate >= date.today()){\n+                    payroll_list.add(p);","path":"src/classes/PayrollListController.cls","position":10,"original_position":10,"commit_id":"ed86b667784a65214c6d0fe8b648d2b720d15317","original_commit_id":"ee9bb7d761ac37b6c628186750195e7dd859f8ec","user":{"login":"rjulianialtimetrik","id":3513996,"avatar_url":"https://avatars.githubusercontent.com/u/3513996?v=3","gravatar_id":"","url":"https://api.github.com/users/rjulianialtimetrik","html_url":"https://github.com/rjulianialtimetrik","followers_url":"https://api.github.com/users/rjulianialtimetrik/followers","following_url":"https://api.github.com/users/rjulianialtimetrik/following{/other_user}","gists_url":"https://api.github.com/users/rjulianialtimetrik/gists{/gist_id}","starred_url":"https://api.github.com/users/rjulianialtimetrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjulianialtimetrik/subscriptions","organizations_url":"https://api.github.com/users/rjulianialtimetrik/orgs","repos_url":"https://api.github.com/users/rjulianialtimetrik/repos","events_url":"https://api.github.com/users/rjulianialtimetrik/events{/privacy}","received_events_url":"https://api.github.com/users/rjulianialtimetrik/received_events","type":"User","site_admin":false},"body":"General code styling issue: \r\n\r\nIn salesforce, pretty much like in Java, the notation for: \r\n\r\n* variables and methods is: **myVarOrMethod** and not **my_var_or_method**\r\n* Classes, Objects and Custom Fields are: **MyClassOrObjectOrField** and not **My_Class_Or_Object_Or_field**.","created_at":"2016-09-07T20:26:09Z","updated_at":"2016-09-07T20:26:09Z","html_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls/pull/20#discussion_r77896841","pull_request_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/comments/77896841"},"html":{"href":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls/pull/20#discussion_r77896841"},"pull_request":{"href":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/20","id":84357460,"html_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls/pull/20","diff_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls/pull/20.diff","patch_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls/pull/20.patch","issue_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues/20","number":20,"state":"open","locked":false,"title":"Part2","user":{"login":"esanchez-altimetrik","id":21954317,"avatar_url":"https://avatars.githubusercontent.com/u/21954317?v=3","gravatar_id":"","url":"https://api.github.com/users/esanchez-altimetrik","html_url":"https://github.com/esanchez-altimetrik","followers_url":"https://api.github.com/users/esanchez-altimetrik/followers","following_url":"https://api.github.com/users/esanchez-altimetrik/following{/other_user}","gists_url":"https://api.github.com/users/esanchez-altimetrik/gists{/gist_id}","starred_url":"https://api.github.com/users/esanchez-altimetrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esanchez-altimetrik/subscriptions","organizations_url":"https://api.github.com/users/esanchez-altimetrik/orgs","repos_url":"https://api.github.com/users/esanchez-altimetrik/repos","events_url":"https://api.github.com/users/esanchez-altimetrik/events{/privacy}","received_events_url":"https://api.github.com/users/esanchez-altimetrik/received_events","type":"User","site_admin":false},"body":"adds part2 from payroll on-boarding project ","created_at":"2016-09-07T19:18:39Z","updated_at":"2016-09-07T20:26:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35b8fbf966d06f5232a8c911e0ea5e2017c67a0e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/20/commits","review_comments_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/20/comments","review_comment_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/comments{/number}","comments_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues/20/comments","statuses_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/statuses/ed86b667784a65214c6d0fe8b648d2b720d15317","head":{"label":"altimetrik-onboarding-uy:part2","ref":"part2","sha":"ed86b667784a65214c6d0fe8b648d2b720d15317","user":{"login":"altimetrik-onboarding-uy","id":21954066,"avatar_url":"https://avatars.githubusercontent.com/u/21954066?v=3","gravatar_id":"","url":"https://api.github.com/users/altimetrik-onboarding-uy","html_url":"https://github.com/altimetrik-onboarding-uy","followers_url":"https://api.github.com/users/altimetrik-onboarding-uy/followers","following_url":"https://api.github.com/users/altimetrik-onboarding-uy/following{/other_user}","gists_url":"https://api.github.com/users/altimetrik-onboarding-uy/gists{/gist_id}","starred_url":"https://api.github.com/users/altimetrik-onboarding-uy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altimetrik-onboarding-uy/subscriptions","organizations_url":"https://api.github.com/users/altimetrik-onboarding-uy/orgs","repos_url":"https://api.github.com/users/altimetrik-onboarding-uy/repos","events_url":"https://api.github.com/users/altimetrik-onboarding-uy/events{/privacy}","received_events_url":"https://api.github.com/users/altimetrik-onboarding-uy/received_events","type":"Organization","site_admin":false},"repo":{"id":67223979,"name":"esanchez-payrolls","full_name":"altimetrik-onboarding-uy/esanchez-payrolls","owner":{"login":"altimetrik-onboarding-uy","id":21954066,"avatar_url":"https://avatars.githubusercontent.com/u/21954066?v=3","gravatar_id":"","url":"https://api.github.com/users/altimetrik-onboarding-uy","html_url":"https://github.com/altimetrik-onboarding-uy","followers_url":"https://api.github.com/users/altimetrik-onboarding-uy/followers","following_url":"https://api.github.com/users/altimetrik-onboarding-uy/following{/other_user}","gists_url":"https://api.github.com/users/altimetrik-onboarding-uy/gists{/gist_id}","starred_url":"https://api.github.com/users/altimetrik-onboarding-uy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altimetrik-onboarding-uy/subscriptions","organizations_url":"https://api.github.com/users/altimetrik-onboarding-uy/orgs","repos_url":"https://api.github.com/users/altimetrik-onboarding-uy/repos","events_url":"https://api.github.com/users/altimetrik-onboarding-uy/events{/privacy}","received_events_url":"https://api.github.com/users/altimetrik-onboarding-uy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls","description":null,"fork":false,"url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls","forks_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/forks","keys_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/teams","hooks_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/hooks","issue_events_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues/events{/number}","events_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/events","assignees_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/assignees{/user}","branches_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/branches{/branch}","tags_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/tags","blobs_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/refs{/sha}","trees_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/statuses/{sha}","languages_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/languages","stargazers_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/stargazers","contributors_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/contributors","subscribers_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/subscribers","subscription_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/subscription","commits_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/commits{/sha}","git_commits_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/commits{/sha}","comments_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/comments{/number}","issue_comment_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues/comments{/number}","contents_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/contents/{+path}","compare_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/merges","archive_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/downloads","issues_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues{/number}","pulls_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls{/number}","milestones_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/milestones{/number}","notifications_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/labels{/name}","releases_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/releases{/id}","deployments_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/deployments","created_at":"2016-09-02T13:16:04Z","updated_at":"2016-09-02T13:16:04Z","pushed_at":"2016-09-07T19:18:39Z","git_url":"git://github.com/altimetrik-onboarding-uy/esanchez-payrolls.git","ssh_url":"git@github.com:altimetrik-onboarding-uy/esanchez-payrolls.git","clone_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls.git","svn_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"altimetrik-onboarding-uy:master","ref":"master","sha":"9d010e68bebb1bdf09da93b344c621d9de3a1edb","user":{"login":"altimetrik-onboarding-uy","id":21954066,"avatar_url":"https://avatars.githubusercontent.com/u/21954066?v=3","gravatar_id":"","url":"https://api.github.com/users/altimetrik-onboarding-uy","html_url":"https://github.com/altimetrik-onboarding-uy","followers_url":"https://api.github.com/users/altimetrik-onboarding-uy/followers","following_url":"https://api.github.com/users/altimetrik-onboarding-uy/following{/other_user}","gists_url":"https://api.github.com/users/altimetrik-onboarding-uy/gists{/gist_id}","starred_url":"https://api.github.com/users/altimetrik-onboarding-uy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altimetrik-onboarding-uy/subscriptions","organizations_url":"https://api.github.com/users/altimetrik-onboarding-uy/orgs","repos_url":"https://api.github.com/users/altimetrik-onboarding-uy/repos","events_url":"https://api.github.com/users/altimetrik-onboarding-uy/events{/privacy}","received_events_url":"https://api.github.com/users/altimetrik-onboarding-uy/received_events","type":"Organization","site_admin":false},"repo":{"id":67223979,"name":"esanchez-payrolls","full_name":"altimetrik-onboarding-uy/esanchez-payrolls","owner":{"login":"altimetrik-onboarding-uy","id":21954066,"avatar_url":"https://avatars.githubusercontent.com/u/21954066?v=3","gravatar_id":"","url":"https://api.github.com/users/altimetrik-onboarding-uy","html_url":"https://github.com/altimetrik-onboarding-uy","followers_url":"https://api.github.com/users/altimetrik-onboarding-uy/followers","following_url":"https://api.github.com/users/altimetrik-onboarding-uy/following{/other_user}","gists_url":"https://api.github.com/users/altimetrik-onboarding-uy/gists{/gist_id}","starred_url":"https://api.github.com/users/altimetrik-onboarding-uy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altimetrik-onboarding-uy/subscriptions","organizations_url":"https://api.github.com/users/altimetrik-onboarding-uy/orgs","repos_url":"https://api.github.com/users/altimetrik-onboarding-uy/repos","events_url":"https://api.github.com/users/altimetrik-onboarding-uy/events{/privacy}","received_events_url":"https://api.github.com/users/altimetrik-onboarding-uy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls","description":null,"fork":false,"url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls","forks_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/forks","keys_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/teams","hooks_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/hooks","issue_events_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues/events{/number}","events_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/events","assignees_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/assignees{/user}","branches_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/branches{/branch}","tags_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/tags","blobs_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/refs{/sha}","trees_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/statuses/{sha}","languages_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/languages","stargazers_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/stargazers","contributors_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/contributors","subscribers_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/subscribers","subscription_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/subscription","commits_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/commits{/sha}","git_commits_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/git/commits{/sha}","comments_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/comments{/number}","issue_comment_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues/comments{/number}","contents_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/contents/{+path}","compare_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/merges","archive_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/downloads","issues_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues{/number}","pulls_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls{/number}","milestones_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/milestones{/number}","notifications_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/labels{/name}","releases_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/releases{/id}","deployments_url":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/deployments","created_at":"2016-09-02T13:16:04Z","updated_at":"2016-09-02T13:16:04Z","pushed_at":"2016-09-07T19:18:39Z","git_url":"git://github.com/altimetrik-onboarding-uy/esanchez-payrolls.git","ssh_url":"git@github.com:altimetrik-onboarding-uy/esanchez-payrolls.git","clone_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls.git","svn_url":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/20"},"html":{"href":"https://github.com/altimetrik-onboarding-uy/esanchez-payrolls/pull/20"},"issue":{"href":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues/20"},"comments":{"href":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/altimetrik-onboarding-uy/esanchez-payrolls/statuses/ed86b667784a65214c6d0fe8b648d2b720d15317"}}}}
{"actor":{"display_login":"rjulianialtimetrik"}}