{"action":"created","comment":{"url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/comments/174731267","pull_request_review_id":104139031,"id":174731267,"diff_hunk":"@@ -0,0 +1,319 @@\n+\"use strict\";\n+\n+/**\n+ * Created by Michael DESIGAUD on 14/08/2015.\n+ */\n+angular.module(\"chuvApp.models\").controller(\"CriteriaController\", [\n+  \"$scope\",\n+  \"$stateParams\",\n+  \"Model\",\n+  \"ChartUtil\",\n+  \"filterFilter\",\n+  \"Variable\",\n+  \"Group\",\n+  \"$rootScope\",\n+  \"$log\",\n+  \"$timeout\",\n+  \"$location\",\n+  function(\n+    $scope,\n+    $stateParams,\n+    Model,\n+    ChartUtil,\n+    filterFilter,\n+    Variable,\n+    Group,\n+    $rootScope,\n+    $log,\n+    $timeout,\n+    $location\n+  ) {\n+    var search = $location.search();\n+    function map_query(category) {\n+      return search[category]\n+        ? search[category].split(\",\").map(function(code) {\n+            return { code: code };\n+          })\n+        : [];\n+    }\n+\n+    $scope.query.variables = map_query(\"variable\");\n+    $scope.query.groupings = map_query(\"grouping\");\n+    $scope.query.coVariables = map_query(\"covariable\");\n+    $scope.query.filters = map_query(\"filter\");\n+    $scope.query.textQuery = search.query;\n+","path":"app/scripts/app/models/review/criteria.controller.js","position":45,"original_position":45,"commit_id":"bb5a823f6b343f2045997cdabd58690766465abb","original_commit_id":"bb5a823f6b343f2045997cdabd58690766465abb","user":{"login":"olivvv","id":42507,"avatar_url":"https://avatars0.githubusercontent.com/u/42507?v=4","gravatar_id":"","url":"https://api.github.com/users/olivvv","html_url":"https://github.com/olivvv","followers_url":"https://api.github.com/users/olivvv/followers","following_url":"https://api.github.com/users/olivvv/following{/other_user}","gists_url":"https://api.github.com/users/olivvv/gists{/gist_id}","starred_url":"https://api.github.com/users/olivvv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivvv/subscriptions","organizations_url":"https://api.github.com/users/olivvv/orgs","repos_url":"https://api.github.com/users/olivvv/repos","events_url":"https://api.github.com/users/olivvv/events{/privacy}","received_events_url":"https://api.github.com/users/olivvv/received_events","type":"User","site_admin":false},"body":"ce map_query ca devrait venir d un service","created_at":"2018-03-15T10:09:06Z","updated_at":"2018-03-15T10:09:06Z","html_url":"https://github.com/LREN-CHUV/portal-frontend/pull/76#discussion_r174731267","pull_request_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/76","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/comments/174731267"},"html":{"href":"https://github.com/LREN-CHUV/portal-frontend/pull/76#discussion_r174731267"},"pull_request":{"href":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/76"}}},"pull_request":{"url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/76","id":175041683,"html_url":"https://github.com/LREN-CHUV/portal-frontend/pull/76","diff_url":"https://github.com/LREN-CHUV/portal-frontend/pull/76.diff","patch_url":"https://github.com/LREN-CHUV/portal-frontend/pull/76.patch","issue_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues/76","number":76,"state":"open","locked":false,"title":"Ia stats","user":{"login":"nicedexter","id":7804,"avatar_url":"https://avatars3.githubusercontent.com/u/7804?v=4","gravatar_id":"","url":"https://api.github.com/users/nicedexter","html_url":"https://github.com/nicedexter","followers_url":"https://api.github.com/users/nicedexter/followers","following_url":"https://api.github.com/users/nicedexter/following{/other_user}","gists_url":"https://api.github.com/users/nicedexter/gists{/gist_id}","starred_url":"https://api.github.com/users/nicedexter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicedexter/subscriptions","organizations_url":"https://api.github.com/users/nicedexter/orgs","repos_url":"https://api.github.com/users/nicedexter/repos","events_url":"https://api.github.com/users/nicedexter/events{/privacy}","received_events_url":"https://api.github.com/users/nicedexter/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-14T18:10:10Z","updated_at":"2018-03-15T10:09:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9e132c93e27849e9a22b2fa457a2c9668046cae","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/76/commits","review_comments_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/76/comments","review_comment_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues/76/comments","statuses_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/statuses/bb5a823f6b343f2045997cdabd58690766465abb","head":{"label":"LREN-CHUV:IA_Stats","ref":"IA_Stats","sha":"bb5a823f6b343f2045997cdabd58690766465abb","user":{"login":"LREN-CHUV","id":15000605,"avatar_url":"https://avatars3.githubusercontent.com/u/15000605?v=4","gravatar_id":"","url":"https://api.github.com/users/LREN-CHUV","html_url":"https://github.com/LREN-CHUV","followers_url":"https://api.github.com/users/LREN-CHUV/followers","following_url":"https://api.github.com/users/LREN-CHUV/following{/other_user}","gists_url":"https://api.github.com/users/LREN-CHUV/gists{/gist_id}","starred_url":"https://api.github.com/users/LREN-CHUV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LREN-CHUV/subscriptions","organizations_url":"https://api.github.com/users/LREN-CHUV/orgs","repos_url":"https://api.github.com/users/LREN-CHUV/repos","events_url":"https://api.github.com/users/LREN-CHUV/events{/privacy}","received_events_url":"https://api.github.com/users/LREN-CHUV/received_events","type":"Organization","site_admin":false},"repo":{"id":69507420,"name":"portal-frontend","full_name":"LREN-CHUV/portal-frontend","owner":{"login":"LREN-CHUV","id":15000605,"avatar_url":"https://avatars3.githubusercontent.com/u/15000605?v=4","gravatar_id":"","url":"https://api.github.com/users/LREN-CHUV","html_url":"https://github.com/LREN-CHUV","followers_url":"https://api.github.com/users/LREN-CHUV/followers","following_url":"https://api.github.com/users/LREN-CHUV/following{/other_user}","gists_url":"https://api.github.com/users/LREN-CHUV/gists{/gist_id}","starred_url":"https://api.github.com/users/LREN-CHUV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LREN-CHUV/subscriptions","organizations_url":"https://api.github.com/users/LREN-CHUV/orgs","repos_url":"https://api.github.com/users/LREN-CHUV/repos","events_url":"https://api.github.com/users/LREN-CHUV/events{/privacy}","received_events_url":"https://api.github.com/users/LREN-CHUV/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LREN-CHUV/portal-frontend","description":"Frontend for the MIP portal","fork":false,"url":"https://api.github.com/repos/LREN-CHUV/portal-frontend","forks_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/forks","keys_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/teams","hooks_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/hooks","issue_events_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/events","assignees_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/tags","blobs_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/languages","stargazers_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/stargazers","contributors_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/contributors","subscribers_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/subscribers","subscription_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/subscription","commits_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/merges","archive_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/downloads","issues_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/labels{/name}","releases_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/deployments","created_at":"2016-09-28T22:03:24Z","updated_at":"2018-03-12T16:10:52Z","pushed_at":"2018-03-14T18:10:11Z","git_url":"git://github.com/LREN-CHUV/portal-frontend.git","ssh_url":"git@github.com:LREN-CHUV/portal-frontend.git","clone_url":"https://github.com/LREN-CHUV/portal-frontend.git","svn_url":"https://github.com/LREN-CHUV/portal-frontend","homepage":"","size":23126,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"LREN-CHUV:staging","ref":"staging","sha":"4b2bd0b33aed2a6fe722ece9c5b1a6b9d8fe872c","user":{"login":"LREN-CHUV","id":15000605,"avatar_url":"https://avatars3.githubusercontent.com/u/15000605?v=4","gravatar_id":"","url":"https://api.github.com/users/LREN-CHUV","html_url":"https://github.com/LREN-CHUV","followers_url":"https://api.github.com/users/LREN-CHUV/followers","following_url":"https://api.github.com/users/LREN-CHUV/following{/other_user}","gists_url":"https://api.github.com/users/LREN-CHUV/gists{/gist_id}","starred_url":"https://api.github.com/users/LREN-CHUV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LREN-CHUV/subscriptions","organizations_url":"https://api.github.com/users/LREN-CHUV/orgs","repos_url":"https://api.github.com/users/LREN-CHUV/repos","events_url":"https://api.github.com/users/LREN-CHUV/events{/privacy}","received_events_url":"https://api.github.com/users/LREN-CHUV/received_events","type":"Organization","site_admin":false},"repo":{"id":69507420,"name":"portal-frontend","full_name":"LREN-CHUV/portal-frontend","owner":{"login":"LREN-CHUV","id":15000605,"avatar_url":"https://avatars3.githubusercontent.com/u/15000605?v=4","gravatar_id":"","url":"https://api.github.com/users/LREN-CHUV","html_url":"https://github.com/LREN-CHUV","followers_url":"https://api.github.com/users/LREN-CHUV/followers","following_url":"https://api.github.com/users/LREN-CHUV/following{/other_user}","gists_url":"https://api.github.com/users/LREN-CHUV/gists{/gist_id}","starred_url":"https://api.github.com/users/LREN-CHUV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LREN-CHUV/subscriptions","organizations_url":"https://api.github.com/users/LREN-CHUV/orgs","repos_url":"https://api.github.com/users/LREN-CHUV/repos","events_url":"https://api.github.com/users/LREN-CHUV/events{/privacy}","received_events_url":"https://api.github.com/users/LREN-CHUV/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LREN-CHUV/portal-frontend","description":"Frontend for the MIP portal","fork":false,"url":"https://api.github.com/repos/LREN-CHUV/portal-frontend","forks_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/forks","keys_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/teams","hooks_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/hooks","issue_events_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/events","assignees_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/tags","blobs_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/languages","stargazers_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/stargazers","contributors_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/contributors","subscribers_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/subscribers","subscription_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/subscription","commits_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/merges","archive_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/downloads","issues_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/labels{/name}","releases_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/LREN-CHUV/portal-frontend/deployments","created_at":"2016-09-28T22:03:24Z","updated_at":"2018-03-12T16:10:52Z","pushed_at":"2018-03-14T18:10:11Z","git_url":"git://github.com/LREN-CHUV/portal-frontend.git","ssh_url":"git@github.com:LREN-CHUV/portal-frontend.git","clone_url":"https://github.com/LREN-CHUV/portal-frontend.git","svn_url":"https://github.com/LREN-CHUV/portal-frontend","homepage":"","size":23126,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/76"},"html":{"href":"https://github.com/LREN-CHUV/portal-frontend/pull/76"},"issue":{"href":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues/76"},"comments":{"href":"https://api.github.com/repos/LREN-CHUV/portal-frontend/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LREN-CHUV/portal-frontend/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/LREN-CHUV/portal-frontend/statuses/bb5a823f6b343f2045997cdabd58690766465abb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"olivvv"}}