{"action":"created","comment":{"url":"https://api.github.com/repos/1024pix/pix/pulls/comments/184042536","pull_request_review_id":115156094,"id":184042536,"diff_hunk":"@@ -0,0 +1,26 @@\n+const Certification = require('../../../lib/domain/models/Certification');\n+const CertificationCourseBookshelf = require('../../../lib/infrastructure/data/certification-course');\n+\n+function _toDomain(certificationCourseBookshelf) {\n+  return new Certification({\n+    id: certificationCourseBookshelf.get('id'),\n+    date: certificationCourseBookshelf.get('completedAt'),\n+    certificationCenter: certificationCourseBookshelf.related('session').get('certificationCenter')\n+  });\n+}\n+\n+module.exports = {\n+\n+  findCompletedCertificationsByUserId(userId) {\n+    return CertificationCourseBookshelf","path":"api/lib/infrastructure/repositories/certification-repository.js","position":15,"original_position":15,"commit_id":"e78803e029c34df1b268cb2f83100c28448c00f6","original_commit_id":"e78803e029c34df1b268cb2f83100c28448c00f6","user":{"login":"Apemb","id":9368876,"avatar_url":"https://avatars1.githubusercontent.com/u/9368876?v=4","gravatar_id":"","url":"https://api.github.com/users/Apemb","html_url":"https://github.com/Apemb","followers_url":"https://api.github.com/users/Apemb/followers","following_url":"https://api.github.com/users/Apemb/following{/other_user}","gists_url":"https://api.github.com/users/Apemb/gists{/gist_id}","starred_url":"https://api.github.com/users/Apemb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Apemb/subscriptions","organizations_url":"https://api.github.com/users/Apemb/orgs","repos_url":"https://api.github.com/users/Apemb/repos","events_url":"https://api.github.com/users/Apemb/events{/privacy}","received_events_url":"https://api.github.com/users/Apemb/received_events","type":"User","site_admin":false},"body":"transformer ça en `findCertificationByUserIdAndStatus` et avoir un status qui soit une propriété de l'objet certification du domain (à la place du `completed` un peu magique qui traine) ? ","created_at":"2018-04-25T12:39:48Z","updated_at":"2018-04-25T12:39:49Z","html_url":"https://github.com/1024pix/pix/pull/37#discussion_r184042536","pull_request_url":"https://api.github.com/repos/1024pix/pix/pulls/37","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/1024pix/pix/pulls/comments/184042536"},"html":{"href":"https://github.com/1024pix/pix/pull/37#discussion_r184042536"},"pull_request":{"href":"https://api.github.com/repos/1024pix/pix/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/1024pix/pix/pulls/37","id":182831556,"html_url":"https://github.com/1024pix/pix/pull/37","diff_url":"https://github.com/1024pix/pix/pull/37.diff","patch_url":"https://github.com/1024pix/pix/pull/37.patch","issue_url":"https://api.github.com/repos/1024pix/pix/issues/37","number":37,"state":"open","locked":false,"title":"[#37] [FEATURE] Afficher la liste des certifications des utilisateurs (US-1134).","user":{"login":"MBrandone","id":5923431,"avatar_url":"https://avatars3.githubusercontent.com/u/5923431?v=4","gravatar_id":"","url":"https://api.github.com/users/MBrandone","html_url":"https://github.com/MBrandone","followers_url":"https://api.github.com/users/MBrandone/followers","following_url":"https://api.github.com/users/MBrandone/following{/other_user}","gists_url":"https://api.github.com/users/MBrandone/gists{/gist_id}","starred_url":"https://api.github.com/users/MBrandone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MBrandone/subscriptions","organizations_url":"https://api.github.com/users/MBrandone/orgs","repos_url":"https://api.github.com/users/MBrandone/repos","events_url":"https://api.github.com/users/MBrandone/events{/privacy}","received_events_url":"https://api.github.com/users/MBrandone/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-19T16:27:31Z","updated_at":"2018-04-25T12:39:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f145505a3703cf7f129763e2eb783f350207a533","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":881366628,"url":"https://api.github.com/repos/1024pix/pix/labels/[Func]%20Changes%20validated","name":"[Func] Changes validated","color":"86d6d4","default":false},{"id":881368535,"url":"https://api.github.com/repos/1024pix/pix/labels/[Tech]%20Review%20asked","name":"[Tech] Review asked","color":"1d76db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/1024pix/pix/pulls/37/commits","review_comments_url":"https://api.github.com/repos/1024pix/pix/pulls/37/comments","review_comment_url":"https://api.github.com/repos/1024pix/pix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/1024pix/pix/issues/37/comments","statuses_url":"https://api.github.com/repos/1024pix/pix/statuses/e78803e029c34df1b268cb2f83100c28448c00f6","head":{"label":"1024pix:1134-add-link-to-display-user-certification","ref":"1134-add-link-to-display-user-certification","sha":"e78803e029c34df1b268cb2f83100c28448c00f6","user":{"login":"1024pix","id":24589578,"avatar_url":"https://avatars0.githubusercontent.com/u/24589578?v=4","gravatar_id":"","url":"https://api.github.com/users/1024pix","html_url":"https://github.com/1024pix","followers_url":"https://api.github.com/users/1024pix/followers","following_url":"https://api.github.com/users/1024pix/following{/other_user}","gists_url":"https://api.github.com/users/1024pix/gists{/gist_id}","starred_url":"https://api.github.com/users/1024pix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024pix/subscriptions","organizations_url":"https://api.github.com/users/1024pix/orgs","repos_url":"https://api.github.com/users/1024pix/repos","events_url":"https://api.github.com/users/1024pix/events{/privacy}","received_events_url":"https://api.github.com/users/1024pix/received_events","type":"Organization","site_admin":false},"repo":{"id":126852331,"name":"pix","full_name":"1024pix/pix","owner":{"login":"1024pix","id":24589578,"avatar_url":"https://avatars0.githubusercontent.com/u/24589578?v=4","gravatar_id":"","url":"https://api.github.com/users/1024pix","html_url":"https://github.com/1024pix","followers_url":"https://api.github.com/users/1024pix/followers","following_url":"https://api.github.com/users/1024pix/following{/other_user}","gists_url":"https://api.github.com/users/1024pix/gists{/gist_id}","starred_url":"https://api.github.com/users/1024pix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024pix/subscriptions","organizations_url":"https://api.github.com/users/1024pix/orgs","repos_url":"https://api.github.com/users/1024pix/repos","events_url":"https://api.github.com/users/1024pix/events{/privacy}","received_events_url":"https://api.github.com/users/1024pix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/1024pix/pix","description":"Plateforme d'évaluation et de certification des compétences numériques à l'usage de tous les citoyens francophones.","fork":false,"url":"https://api.github.com/repos/1024pix/pix","forks_url":"https://api.github.com/repos/1024pix/pix/forks","keys_url":"https://api.github.com/repos/1024pix/pix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1024pix/pix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1024pix/pix/teams","hooks_url":"https://api.github.com/repos/1024pix/pix/hooks","issue_events_url":"https://api.github.com/repos/1024pix/pix/issues/events{/number}","events_url":"https://api.github.com/repos/1024pix/pix/events","assignees_url":"https://api.github.com/repos/1024pix/pix/assignees{/user}","branches_url":"https://api.github.com/repos/1024pix/pix/branches{/branch}","tags_url":"https://api.github.com/repos/1024pix/pix/tags","blobs_url":"https://api.github.com/repos/1024pix/pix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1024pix/pix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1024pix/pix/git/refs{/sha}","trees_url":"https://api.github.com/repos/1024pix/pix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1024pix/pix/statuses/{sha}","languages_url":"https://api.github.com/repos/1024pix/pix/languages","stargazers_url":"https://api.github.com/repos/1024pix/pix/stargazers","contributors_url":"https://api.github.com/repos/1024pix/pix/contributors","subscribers_url":"https://api.github.com/repos/1024pix/pix/subscribers","subscription_url":"https://api.github.com/repos/1024pix/pix/subscription","commits_url":"https://api.github.com/repos/1024pix/pix/commits{/sha}","git_commits_url":"https://api.github.com/repos/1024pix/pix/git/commits{/sha}","comments_url":"https://api.github.com/repos/1024pix/pix/comments{/number}","issue_comment_url":"https://api.github.com/repos/1024pix/pix/issues/comments{/number}","contents_url":"https://api.github.com/repos/1024pix/pix/contents/{+path}","compare_url":"https://api.github.com/repos/1024pix/pix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1024pix/pix/merges","archive_url":"https://api.github.com/repos/1024pix/pix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1024pix/pix/downloads","issues_url":"https://api.github.com/repos/1024pix/pix/issues{/number}","pulls_url":"https://api.github.com/repos/1024pix/pix/pulls{/number}","milestones_url":"https://api.github.com/repos/1024pix/pix/milestones{/number}","notifications_url":"https://api.github.com/repos/1024pix/pix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1024pix/pix/labels{/name}","releases_url":"https://api.github.com/repos/1024pix/pix/releases{/id}","deployments_url":"https://api.github.com/repos/1024pix/pix/deployments","created_at":"2018-03-26T15:47:12Z","updated_at":"2018-04-25T10:01:47Z","pushed_at":"2018-04-25T12:21:56Z","git_url":"git://github.com/1024pix/pix.git","ssh_url":"git@github.com:1024pix/pix.git","clone_url":"https://github.com/1024pix/pix.git","svn_url":"https://github.com/1024pix/pix","homepage":"https://pix.fr","size":152556,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":0,"open_issues":8,"watchers":8,"default_branch":"dev"}},"base":{"label":"1024pix:dev","ref":"dev","sha":"8485284f241c18596a2a41d011718607e7cbd27f","user":{"login":"1024pix","id":24589578,"avatar_url":"https://avatars0.githubusercontent.com/u/24589578?v=4","gravatar_id":"","url":"https://api.github.com/users/1024pix","html_url":"https://github.com/1024pix","followers_url":"https://api.github.com/users/1024pix/followers","following_url":"https://api.github.com/users/1024pix/following{/other_user}","gists_url":"https://api.github.com/users/1024pix/gists{/gist_id}","starred_url":"https://api.github.com/users/1024pix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024pix/subscriptions","organizations_url":"https://api.github.com/users/1024pix/orgs","repos_url":"https://api.github.com/users/1024pix/repos","events_url":"https://api.github.com/users/1024pix/events{/privacy}","received_events_url":"https://api.github.com/users/1024pix/received_events","type":"Organization","site_admin":false},"repo":{"id":126852331,"name":"pix","full_name":"1024pix/pix","owner":{"login":"1024pix","id":24589578,"avatar_url":"https://avatars0.githubusercontent.com/u/24589578?v=4","gravatar_id":"","url":"https://api.github.com/users/1024pix","html_url":"https://github.com/1024pix","followers_url":"https://api.github.com/users/1024pix/followers","following_url":"https://api.github.com/users/1024pix/following{/other_user}","gists_url":"https://api.github.com/users/1024pix/gists{/gist_id}","starred_url":"https://api.github.com/users/1024pix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1024pix/subscriptions","organizations_url":"https://api.github.com/users/1024pix/orgs","repos_url":"https://api.github.com/users/1024pix/repos","events_url":"https://api.github.com/users/1024pix/events{/privacy}","received_events_url":"https://api.github.com/users/1024pix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/1024pix/pix","description":"Plateforme d'évaluation et de certification des compétences numériques à l'usage de tous les citoyens francophones.","fork":false,"url":"https://api.github.com/repos/1024pix/pix","forks_url":"https://api.github.com/repos/1024pix/pix/forks","keys_url":"https://api.github.com/repos/1024pix/pix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1024pix/pix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1024pix/pix/teams","hooks_url":"https://api.github.com/repos/1024pix/pix/hooks","issue_events_url":"https://api.github.com/repos/1024pix/pix/issues/events{/number}","events_url":"https://api.github.com/repos/1024pix/pix/events","assignees_url":"https://api.github.com/repos/1024pix/pix/assignees{/user}","branches_url":"https://api.github.com/repos/1024pix/pix/branches{/branch}","tags_url":"https://api.github.com/repos/1024pix/pix/tags","blobs_url":"https://api.github.com/repos/1024pix/pix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1024pix/pix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1024pix/pix/git/refs{/sha}","trees_url":"https://api.github.com/repos/1024pix/pix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1024pix/pix/statuses/{sha}","languages_url":"https://api.github.com/repos/1024pix/pix/languages","stargazers_url":"https://api.github.com/repos/1024pix/pix/stargazers","contributors_url":"https://api.github.com/repos/1024pix/pix/contributors","subscribers_url":"https://api.github.com/repos/1024pix/pix/subscribers","subscription_url":"https://api.github.com/repos/1024pix/pix/subscription","commits_url":"https://api.github.com/repos/1024pix/pix/commits{/sha}","git_commits_url":"https://api.github.com/repos/1024pix/pix/git/commits{/sha}","comments_url":"https://api.github.com/repos/1024pix/pix/comments{/number}","issue_comment_url":"https://api.github.com/repos/1024pix/pix/issues/comments{/number}","contents_url":"https://api.github.com/repos/1024pix/pix/contents/{+path}","compare_url":"https://api.github.com/repos/1024pix/pix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1024pix/pix/merges","archive_url":"https://api.github.com/repos/1024pix/pix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1024pix/pix/downloads","issues_url":"https://api.github.com/repos/1024pix/pix/issues{/number}","pulls_url":"https://api.github.com/repos/1024pix/pix/pulls{/number}","milestones_url":"https://api.github.com/repos/1024pix/pix/milestones{/number}","notifications_url":"https://api.github.com/repos/1024pix/pix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1024pix/pix/labels{/name}","releases_url":"https://api.github.com/repos/1024pix/pix/releases{/id}","deployments_url":"https://api.github.com/repos/1024pix/pix/deployments","created_at":"2018-03-26T15:47:12Z","updated_at":"2018-04-25T10:01:47Z","pushed_at":"2018-04-25T12:21:56Z","git_url":"git://github.com/1024pix/pix.git","ssh_url":"git@github.com:1024pix/pix.git","clone_url":"https://github.com/1024pix/pix.git","svn_url":"https://github.com/1024pix/pix","homepage":"https://pix.fr","size":152556,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":0,"open_issues":8,"watchers":8,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/1024pix/pix/pulls/37"},"html":{"href":"https://github.com/1024pix/pix/pull/37"},"issue":{"href":"https://api.github.com/repos/1024pix/pix/issues/37"},"comments":{"href":"https://api.github.com/repos/1024pix/pix/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/1024pix/pix/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/1024pix/pix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/1024pix/pix/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/1024pix/pix/statuses/e78803e029c34df1b268cb2f83100c28448c00f6"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Apemb"}}