{"action":"created","comment":{"url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/comments/176927252","pull_request_review_id":106717212,"id":176927252,"diff_hunk":"@@ -43,6 +43,34 @@ export class ParticipantComponent implements OnInit, OnDestroy {\n         this.reverse = true;\n     }\n \n+    /**\n+     * This function returns the highest number of Repositories that any user has for limiting values in the\n+     * participant filtering system.\n+     * */\n+    getMaxRepositories(){\n+        let  highestFound = 0;\n+        for (let participant of this.participants){\n+            if(participant.numberOfRepositories > highestFound){\n+                highestFound = participant.numberOfRepositories;\n+            }\n+        }\n+        return highestFound;\n+    }\n+\n+    /**\n+     * This function returns the highest number of contributions that any user has for limiting values in the\n+     * participant filtering system.\n+     * */\n+    getMaxContributions(){\n+        let  highestFound = 0;\n+        for (let participant of this.participants){\n+            if(participant.numberOfContributions > highestFound){\n+                highestFound = participant.numberOfContributions;\n+            }\n+        }\n+        return highestFound;\n+    }\n+","path":"src/main/webapp/app/entities/participant/participant.component.ts","position":17,"original_position":31,"commit_id":"920fa80d065b3d76d13dbd5a1764f41c21278298","original_commit_id":"a5119505c8948dacaee8dc4284462f6de5a3d4aa","user":{"login":"wilmol","id":18110897,"avatar_url":"https://avatars0.githubusercontent.com/u/18110897?v=4","gravatar_id":"","url":"https://api.github.com/users/wilmol","html_url":"https://github.com/wilmol","followers_url":"https://api.github.com/users/wilmol/followers","following_url":"https://api.github.com/users/wilmol/following{/other_user}","gists_url":"https://api.github.com/users/wilmol/gists{/gist_id}","starred_url":"https://api.github.com/users/wilmol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilmol/subscriptions","organizations_url":"https://api.github.com/users/wilmol/orgs","repos_url":"https://api.github.com/users/wilmol/repos","events_url":"https://api.github.com/users/wilmol/events{/privacy}","received_events_url":"https://api.github.com/users/wilmol/received_events","type":"User","site_admin":false},"body":"    getMaxRepositories(){\r\n        return getMax(this.partcipants.map(p => p.numberOfRepositories);\r\n    }\r\n\r\n    getMaxContributions(){\r\n        return getMax(this.partcipants.map(p => p.numberOfContributions);\r\n    }\r\n\r\n    getMax(arr: Number[]){\r\n        return arr.reduce((a,b) => Math.max(a,b));\r\n    }\r\n\r\nTry this?\r\n\r\n","created_at":"2018-03-25T02:57:19Z","updated_at":"2018-03-25T02:57:19Z","html_url":"https://github.com/kblincoe/QualOpt_SE701/pull/117#discussion_r176927252","pull_request_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/117","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/comments/176927252"},"html":{"href":"https://github.com/kblincoe/QualOpt_SE701/pull/117#discussion_r176927252"},"pull_request":{"href":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/117"}},"in_reply_to_id":175280017},"pull_request":{"url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/117","id":175735038,"html_url":"https://github.com/kblincoe/QualOpt_SE701/pull/117","diff_url":"https://github.com/kblincoe/QualOpt_SE701/pull/117.diff","patch_url":"https://github.com/kblincoe/QualOpt_SE701/pull/117.patch","issue_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/issues/117","number":117,"state":"open","locked":false,"title":"Limit quantitative participant filtering","user":{"login":"AprajitGandhi","id":18379280,"avatar_url":"https://avatars3.githubusercontent.com/u/18379280?v=4","gravatar_id":"","url":"https://api.github.com/users/AprajitGandhi","html_url":"https://github.com/AprajitGandhi","followers_url":"https://api.github.com/users/AprajitGandhi/followers","following_url":"https://api.github.com/users/AprajitGandhi/following{/other_user}","gists_url":"https://api.github.com/users/AprajitGandhi/gists{/gist_id}","starred_url":"https://api.github.com/users/AprajitGandhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AprajitGandhi/subscriptions","organizations_url":"https://api.github.com/users/AprajitGandhi/orgs","repos_url":"https://api.github.com/users/AprajitGandhi/repos","events_url":"https://api.github.com/users/AprajitGandhi/events{/privacy}","received_events_url":"https://api.github.com/users/AprajitGandhi/received_events","type":"User","site_admin":false},"body":"This fixes issue #19 by constricting the user to the limits of the participant data rather than giving them infinite range.\r\n\r\nNote: This issue is related to #41 as more filters may be added. But it is assumed when ticket 41 is solved it will be solved with the correct limits implemented.\r\n\r\nAlso the filtering logic may need to be ported to the setup study functionality, #34 is dependent on this ticket.\r\n\r\n@wilmol @Karim-C","created_at":"2018-03-18T04:42:49Z","updated_at":"2018-03-25T02:57:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd00ce42c17a53a73c270d1a1dce6bd80a7ea7c9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/117/commits","review_comments_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/117/comments","review_comment_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/issues/117/comments","statuses_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/statuses/920fa80d065b3d76d13dbd5a1764f41c21278298","head":{"label":"AprajitGandhi:limit-quantitative-participant-filtering","ref":"limit-quantitative-participant-filtering","sha":"920fa80d065b3d76d13dbd5a1764f41c21278298","user":{"login":"AprajitGandhi","id":18379280,"avatar_url":"https://avatars3.githubusercontent.com/u/18379280?v=4","gravatar_id":"","url":"https://api.github.com/users/AprajitGandhi","html_url":"https://github.com/AprajitGandhi","followers_url":"https://api.github.com/users/AprajitGandhi/followers","following_url":"https://api.github.com/users/AprajitGandhi/following{/other_user}","gists_url":"https://api.github.com/users/AprajitGandhi/gists{/gist_id}","starred_url":"https://api.github.com/users/AprajitGandhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AprajitGandhi/subscriptions","organizations_url":"https://api.github.com/users/AprajitGandhi/orgs","repos_url":"https://api.github.com/users/AprajitGandhi/repos","events_url":"https://api.github.com/users/AprajitGandhi/events{/privacy}","received_events_url":"https://api.github.com/users/AprajitGandhi/received_events","type":"User","site_admin":false},"repo":{"id":124299092,"name":"QualOpt_SE701","full_name":"AprajitGandhi/QualOpt_SE701","owner":{"login":"AprajitGandhi","id":18379280,"avatar_url":"https://avatars3.githubusercontent.com/u/18379280?v=4","gravatar_id":"","url":"https://api.github.com/users/AprajitGandhi","html_url":"https://github.com/AprajitGandhi","followers_url":"https://api.github.com/users/AprajitGandhi/followers","following_url":"https://api.github.com/users/AprajitGandhi/following{/other_user}","gists_url":"https://api.github.com/users/AprajitGandhi/gists{/gist_id}","starred_url":"https://api.github.com/users/AprajitGandhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AprajitGandhi/subscriptions","organizations_url":"https://api.github.com/users/AprajitGandhi/orgs","repos_url":"https://api.github.com/users/AprajitGandhi/repos","events_url":"https://api.github.com/users/AprajitGandhi/events{/privacy}","received_events_url":"https://api.github.com/users/AprajitGandhi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AprajitGandhi/QualOpt_SE701","description":null,"fork":true,"url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701","forks_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/forks","keys_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/teams","hooks_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/hooks","issue_events_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/issues/events{/number}","events_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/events","assignees_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/assignees{/user}","branches_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/branches{/branch}","tags_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/tags","blobs_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/git/refs{/sha}","trees_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/statuses/{sha}","languages_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/languages","stargazers_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/stargazers","contributors_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/contributors","subscribers_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/subscribers","subscription_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/subscription","commits_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/commits{/sha}","git_commits_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/git/commits{/sha}","comments_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/comments{/number}","issue_comment_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/issues/comments{/number}","contents_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/contents/{+path}","compare_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/merges","archive_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/downloads","issues_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/issues{/number}","pulls_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/pulls{/number}","milestones_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/milestones{/number}","notifications_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/labels{/name}","releases_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/releases{/id}","deployments_url":"https://api.github.com/repos/AprajitGandhi/QualOpt_SE701/deployments","created_at":"2018-03-07T21:54:09Z","updated_at":"2018-03-17T22:27:38Z","pushed_at":"2018-03-25T02:20:00Z","git_url":"git://github.com/AprajitGandhi/QualOpt_SE701.git","ssh_url":"git@github.com:AprajitGandhi/QualOpt_SE701.git","clone_url":"https://github.com/AprajitGandhi/QualOpt_SE701.git","svn_url":"https://github.com/AprajitGandhi/QualOpt_SE701","homepage":null,"size":4509,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kblincoe:master","ref":"master","sha":"586e428983855803850d143f89b1988407fbb4e0","user":{"login":"kblincoe","id":2052027,"avatar_url":"https://avatars3.githubusercontent.com/u/2052027?v=4","gravatar_id":"","url":"https://api.github.com/users/kblincoe","html_url":"https://github.com/kblincoe","followers_url":"https://api.github.com/users/kblincoe/followers","following_url":"https://api.github.com/users/kblincoe/following{/other_user}","gists_url":"https://api.github.com/users/kblincoe/gists{/gist_id}","starred_url":"https://api.github.com/users/kblincoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kblincoe/subscriptions","organizations_url":"https://api.github.com/users/kblincoe/orgs","repos_url":"https://api.github.com/users/kblincoe/repos","events_url":"https://api.github.com/users/kblincoe/events{/privacy}","received_events_url":"https://api.github.com/users/kblincoe/received_events","type":"User","site_admin":false},"repo":{"id":121174432,"name":"QualOpt_SE701","full_name":"kblincoe/QualOpt_SE701","owner":{"login":"kblincoe","id":2052027,"avatar_url":"https://avatars3.githubusercontent.com/u/2052027?v=4","gravatar_id":"","url":"https://api.github.com/users/kblincoe","html_url":"https://github.com/kblincoe","followers_url":"https://api.github.com/users/kblincoe/followers","following_url":"https://api.github.com/users/kblincoe/following{/other_user}","gists_url":"https://api.github.com/users/kblincoe/gists{/gist_id}","starred_url":"https://api.github.com/users/kblincoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kblincoe/subscriptions","organizations_url":"https://api.github.com/users/kblincoe/orgs","repos_url":"https://api.github.com/users/kblincoe/repos","events_url":"https://api.github.com/users/kblincoe/events{/privacy}","received_events_url":"https://api.github.com/users/kblincoe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kblincoe/QualOpt_SE701","description":null,"fork":false,"url":"https://api.github.com/repos/kblincoe/QualOpt_SE701","forks_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/forks","keys_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/teams","hooks_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/hooks","issue_events_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/issues/events{/number}","events_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/events","assignees_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/assignees{/user}","branches_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/branches{/branch}","tags_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/tags","blobs_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/git/refs{/sha}","trees_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/statuses/{sha}","languages_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/languages","stargazers_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/stargazers","contributors_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/contributors","subscribers_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/subscribers","subscription_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/subscription","commits_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/commits{/sha}","git_commits_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/git/commits{/sha}","comments_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/comments{/number}","issue_comment_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/issues/comments{/number}","contents_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/contents/{+path}","compare_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/merges","archive_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/downloads","issues_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/issues{/number}","pulls_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls{/number}","milestones_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/milestones{/number}","notifications_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/labels{/name}","releases_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/releases{/id}","deployments_url":"https://api.github.com/repos/kblincoe/QualOpt_SE701/deployments","created_at":"2018-02-11T22:38:16Z","updated_at":"2018-03-23T09:05:35Z","pushed_at":"2018-03-25T02:41:09Z","git_url":"git://github.com/kblincoe/QualOpt_SE701.git","ssh_url":"git@github.com:kblincoe/QualOpt_SE701.git","clone_url":"https://github.com/kblincoe/QualOpt_SE701.git","svn_url":"https://github.com/kblincoe/QualOpt_SE701","homepage":null,"size":12217,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":76,"license":null,"forks":19,"open_issues":76,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/117"},"html":{"href":"https://github.com/kblincoe/QualOpt_SE701/pull/117"},"issue":{"href":"https://api.github.com/repos/kblincoe/QualOpt_SE701/issues/117"},"comments":{"href":"https://api.github.com/repos/kblincoe/QualOpt_SE701/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kblincoe/QualOpt_SE701/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/kblincoe/QualOpt_SE701/statuses/920fa80d065b3d76d13dbd5a1764f41c21278298"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"wilmol"}}