{"action":"created","comment":{"url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/comments/33273764","id":33273764,"diff_hunk":"@@ -0,0 +1,195 @@\n+global with sharing class ProjectSetupController {\n+\n+\tpublic final String DIRECT_RECEIVER = 'Direct Receiver';\n+\tpublic final String INDIRECT_RECEIVER = 'Indirect Receiver';\n+\tpublic final String SENDER = 'Sender';\n+\t\n+\tpublic Project__c setupProject { get; set; }\n+\t\n+\tpublic List<Employee__c> directReceivers { get; set; }\n+\tpublic List<Employee__c> indirectReceivers { get; set; }\n+\tpublic List<Employee__c> senders { get; set; }\n+\n+\tprivate Map<Id,Employee__c> allEmplsMap {\n+\t\tprivate get {\n+\t\t\tif (allEmplsMap == null) {\n+\t\t\t\tallEmplsMap = new Map<Id,Employee__c>([\n+\t\t\t\t\tSELECT Id, Name, Email__c\n+\t\t\t\t\tFROM Employee__c\n+\t\t\t\t\tLIMIT 10000\n+\t\t\t\t]);\n+\t\t\t}\n+\t\t\treturn allEmplsMap;\n+\t\t}\n+\t\tprivate set;\n+\t}\n+\n+\tpublic ProjectSetupController() {\n+\t\tString projectIdStr = ApexPages.currentPage().getParameters().get('projectId');\n+\t\tif ( ! String.isEmpty(projectIdStr)) {\n+\t\t\tId projectId = Id.valueOf(projectIdStr);\n+\n+\t\t\tsetupProject = [\n+\t\t\t\tSELECT Id, Name, Active__c\n+\t\t\t\tFROM Project__c\n+\t\t\t\tWHERE Id = :projectId\n+\t\t\t\tLIMIT 1\n+\t\t\t];\n+\t\t}\n+\t\telse {\n+\t\t\tsetupProject = [\n+\t\t\t\tSELECT Id, Name, Active__c\n+\t\t\t\tFROM Project__c\n+\t\t\t\tWHERE Name = 'Kill Bill'","path":"classes/ProjectSetupController.cls","position":43,"original_position":43,"commit_id":"0df34bd4762f4185c2a531315eaab815f69a5c1b","original_commit_id":"0df34bd4762f4185c2a531315eaab815f69a5c1b","user":{"login":"ulianakrasnova","id":10143343,"avatar_url":"https://avatars.githubusercontent.com/u/10143343?v=3","gravatar_id":"","url":"https://api.github.com/users/ulianakrasnova","html_url":"https://github.com/ulianakrasnova","followers_url":"https://api.github.com/users/ulianakrasnova/followers","following_url":"https://api.github.com/users/ulianakrasnova/following{/other_user}","gists_url":"https://api.github.com/users/ulianakrasnova/gists{/gist_id}","starred_url":"https://api.github.com/users/ulianakrasnova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulianakrasnova/subscriptions","organizations_url":"https://api.github.com/users/ulianakrasnova/orgs","repos_url":"https://api.github.com/users/ulianakrasnova/repos","events_url":"https://api.github.com/users/ulianakrasnova/events{/privacy}","received_events_url":"https://api.github.com/users/ulianakrasnova/received_events","type":"User","site_admin":false},"body":"это пережиток)","created_at":"2015-06-25T16:19:07Z","updated_at":"2015-06-25T16:19:07Z","html_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal/pull/15#discussion_r33273764","pull_request_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/comments/33273764"},"html":{"href":"https://github.com/maksimfesenko/CS-Project-Report-Portal/pull/15#discussion_r33273764"},"pull_request":{"href":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/15","id":38430931,"html_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal/pull/15","diff_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal/pull/15.diff","patch_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal/pull/15.patch","issue_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues/15","number":15,"state":"open","locked":false,"title":"Cprp 12","user":{"login":"ulianakrasnova","id":10143343,"avatar_url":"https://avatars.githubusercontent.com/u/10143343?v=3","gravatar_id":"","url":"https://api.github.com/users/ulianakrasnova","html_url":"https://github.com/ulianakrasnova","followers_url":"https://api.github.com/users/ulianakrasnova/followers","following_url":"https://api.github.com/users/ulianakrasnova/following{/other_user}","gists_url":"https://api.github.com/users/ulianakrasnova/gists{/gist_id}","starred_url":"https://api.github.com/users/ulianakrasnova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulianakrasnova/subscriptions","organizations_url":"https://api.github.com/users/ulianakrasnova/orgs","repos_url":"https://api.github.com/users/ulianakrasnova/repos","events_url":"https://api.github.com/users/ulianakrasnova/events{/privacy}","received_events_url":"https://api.github.com/users/ulianakrasnova/received_events","type":"User","site_admin":false},"body":"Create ProjectSetup.page","created_at":"2015-06-24T11:11:21Z","updated_at":"2015-06-25T16:19:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90b54fc7b344e326ef2b16994e83da3c39d48da2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/15/commits","review_comments_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/15/comments","review_comment_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues/15/comments","statuses_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/statuses/0df34bd4762f4185c2a531315eaab815f69a5c1b","head":{"label":"maksimfesenko:CPRP-12","ref":"CPRP-12","sha":"0df34bd4762f4185c2a531315eaab815f69a5c1b","user":{"login":"maksimfesenko","id":10946833,"avatar_url":"https://avatars.githubusercontent.com/u/10946833?v=3","gravatar_id":"","url":"https://api.github.com/users/maksimfesenko","html_url":"https://github.com/maksimfesenko","followers_url":"https://api.github.com/users/maksimfesenko/followers","following_url":"https://api.github.com/users/maksimfesenko/following{/other_user}","gists_url":"https://api.github.com/users/maksimfesenko/gists{/gist_id}","starred_url":"https://api.github.com/users/maksimfesenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maksimfesenko/subscriptions","organizations_url":"https://api.github.com/users/maksimfesenko/orgs","repos_url":"https://api.github.com/users/maksimfesenko/repos","events_url":"https://api.github.com/users/maksimfesenko/events{/privacy}","received_events_url":"https://api.github.com/users/maksimfesenko/received_events","type":"User","site_admin":false},"repo":{"id":37251315,"name":"CS-Project-Report-Portal","full_name":"maksimfesenko/CS-Project-Report-Portal","owner":{"login":"maksimfesenko","id":10946833,"avatar_url":"https://avatars.githubusercontent.com/u/10946833?v=3","gravatar_id":"","url":"https://api.github.com/users/maksimfesenko","html_url":"https://github.com/maksimfesenko","followers_url":"https://api.github.com/users/maksimfesenko/followers","following_url":"https://api.github.com/users/maksimfesenko/following{/other_user}","gists_url":"https://api.github.com/users/maksimfesenko/gists{/gist_id}","starred_url":"https://api.github.com/users/maksimfesenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maksimfesenko/subscriptions","organizations_url":"https://api.github.com/users/maksimfesenko/orgs","repos_url":"https://api.github.com/users/maksimfesenko/repos","events_url":"https://api.github.com/users/maksimfesenko/events{/privacy}","received_events_url":"https://api.github.com/users/maksimfesenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal","description":"","fork":false,"url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal","forks_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/forks","keys_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/teams","hooks_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/hooks","issue_events_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues/events{/number}","events_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/events","assignees_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/assignees{/user}","branches_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/branches{/branch}","tags_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/tags","blobs_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/statuses/{sha}","languages_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/languages","stargazers_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/stargazers","contributors_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/contributors","subscribers_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/subscribers","subscription_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/subscription","commits_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/contents/{+path}","compare_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/merges","archive_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/downloads","issues_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues{/number}","pulls_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls{/number}","milestones_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/milestones{/number}","notifications_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/labels{/name}","releases_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/releases{/id}","created_at":"2015-06-11T09:17:41Z","updated_at":"2015-06-11T09:17:41Z","pushed_at":"2015-06-25T16:18:30Z","git_url":"git://github.com/maksimfesenko/CS-Project-Report-Portal.git","ssh_url":"git@github.com:maksimfesenko/CS-Project-Report-Portal.git","clone_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal.git","svn_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal","homepage":null,"size":588,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"maksimfesenko:develop","ref":"develop","sha":"66ff84c56f090178dc04af085ac8b74a4032fab5","user":{"login":"maksimfesenko","id":10946833,"avatar_url":"https://avatars.githubusercontent.com/u/10946833?v=3","gravatar_id":"","url":"https://api.github.com/users/maksimfesenko","html_url":"https://github.com/maksimfesenko","followers_url":"https://api.github.com/users/maksimfesenko/followers","following_url":"https://api.github.com/users/maksimfesenko/following{/other_user}","gists_url":"https://api.github.com/users/maksimfesenko/gists{/gist_id}","starred_url":"https://api.github.com/users/maksimfesenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maksimfesenko/subscriptions","organizations_url":"https://api.github.com/users/maksimfesenko/orgs","repos_url":"https://api.github.com/users/maksimfesenko/repos","events_url":"https://api.github.com/users/maksimfesenko/events{/privacy}","received_events_url":"https://api.github.com/users/maksimfesenko/received_events","type":"User","site_admin":false},"repo":{"id":37251315,"name":"CS-Project-Report-Portal","full_name":"maksimfesenko/CS-Project-Report-Portal","owner":{"login":"maksimfesenko","id":10946833,"avatar_url":"https://avatars.githubusercontent.com/u/10946833?v=3","gravatar_id":"","url":"https://api.github.com/users/maksimfesenko","html_url":"https://github.com/maksimfesenko","followers_url":"https://api.github.com/users/maksimfesenko/followers","following_url":"https://api.github.com/users/maksimfesenko/following{/other_user}","gists_url":"https://api.github.com/users/maksimfesenko/gists{/gist_id}","starred_url":"https://api.github.com/users/maksimfesenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maksimfesenko/subscriptions","organizations_url":"https://api.github.com/users/maksimfesenko/orgs","repos_url":"https://api.github.com/users/maksimfesenko/repos","events_url":"https://api.github.com/users/maksimfesenko/events{/privacy}","received_events_url":"https://api.github.com/users/maksimfesenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal","description":"","fork":false,"url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal","forks_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/forks","keys_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/teams","hooks_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/hooks","issue_events_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues/events{/number}","events_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/events","assignees_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/assignees{/user}","branches_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/branches{/branch}","tags_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/tags","blobs_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/statuses/{sha}","languages_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/languages","stargazers_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/stargazers","contributors_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/contributors","subscribers_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/subscribers","subscription_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/subscription","commits_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/contents/{+path}","compare_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/merges","archive_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/downloads","issues_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues{/number}","pulls_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls{/number}","milestones_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/milestones{/number}","notifications_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/labels{/name}","releases_url":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/releases{/id}","created_at":"2015-06-11T09:17:41Z","updated_at":"2015-06-11T09:17:41Z","pushed_at":"2015-06-25T16:18:30Z","git_url":"git://github.com/maksimfesenko/CS-Project-Report-Portal.git","ssh_url":"git@github.com:maksimfesenko/CS-Project-Report-Portal.git","clone_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal.git","svn_url":"https://github.com/maksimfesenko/CS-Project-Report-Portal","homepage":null,"size":588,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/15"},"html":{"href":"https://github.com/maksimfesenko/CS-Project-Report-Portal/pull/15"},"issue":{"href":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues/15"},"comments":{"href":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/maksimfesenko/CS-Project-Report-Portal/statuses/0df34bd4762f4185c2a531315eaab815f69a5c1b"}}}}