{"action":"created","comment":{"url":"https://api.github.com/repos/1024pix/pix/pulls/comments/228885192","pull_request_review_id":169250663,"id":228885192,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODg4NTE5Mg==","diff_hunk":"@@ -24,17 +24,51 @@ export default BaseRoute.extend({\n     });\n   },\n \n-  afterModel(model) {\n-    const store = this.get('store');\n+  afterModel(modelResult) {\n+    const requiredDatas = {};\n+\n+    const userId = this.get('session.data.authenticated.userId');\n+    const assessmentId = modelResult.assessment.id;\n+    const challengeId = modelResult.challenge.id;\n+    const campaignCode = modelResult.assessment.codeCampaign;\n+\n+    if (modelResult.assessment.get('isPlacement')\n+      || modelResult.assessment.get('isPreview')\n+      || modelResult.assessment.get('isDemo')\n+    ) {\n+\n+      requiredDatas.answers = this._findAnswers({ assessmentId, challengeId });\n+      return RSVP.hash(requiredDatas)","path":"mon-pix/app/routes/assessments/challenge.js","position":null,"original_position":20,"commit_id":"12802be8043a368259f688a4d9c17af7c9c37b96","original_commit_id":"fdb0cee61731190546f2dd3e1f55699871366fc8","user":{"login":"MBrandone","id":5923431,"node_id":"MDQ6VXNlcjU5MjM0MzE=","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":"done","created_at":"2018-10-29T11:17:36Z","updated_at":"2018-10-29T11:17:36Z","html_url":"https://github.com/1024pix/pix/pull/241#discussion_r228885192","pull_request_url":"https://api.github.com/repos/1024pix/pix/pulls/241","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/1024pix/pix/pulls/comments/228885192"},"html":{"href":"https://github.com/1024pix/pix/pull/241#discussion_r228885192"},"pull_request":{"href":"https://api.github.com/repos/1024pix/pix/pulls/241"}},"in_reply_to_id":228567502},"pull_request":{"url":"https://api.github.com/repos/1024pix/pix/pulls/241","id":225053601,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MDUzNjAx","html_url":"https://github.com/1024pix/pix/pull/241","diff_url":"https://github.com/1024pix/pix/pull/241.diff","patch_url":"https://github.com/1024pix/pix/pull/241.patch","issue_url":"https://api.github.com/repos/1024pix/pix/issues/241","number":241,"state":"open","locked":false,"title":"[#241] [FEATURE] Le titre de la campagne est écrit dans la bannière de challenge (PF-74)","user":{"login":"MBrandone","id":5923431,"node_id":"MDQ6VXNlcjU5MjM0MzE=","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-10-23T14:07:22Z","updated_at":"2018-10-29T11:17:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d2324feecaf2c368305e5af59c7c3e082dccb150","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":881368535,"node_id":"MDU6TGFiZWw4ODEzNjg1MzU=","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/241/commits","review_comments_url":"https://api.github.com/repos/1024pix/pix/pulls/241/comments","review_comment_url":"https://api.github.com/repos/1024pix/pix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/1024pix/pix/issues/241/comments","statuses_url":"https://api.github.com/repos/1024pix/pix/statuses/12802be8043a368259f688a4d9c17af7c9c37b96","head":{"label":"1024pix:pf-74-title-in-campaign-banner","ref":"pf-74-title-in-campaign-banner","sha":"12802be8043a368259f688a4d9c17af7c9c37b96","user":{"login":"1024pix","id":24589578,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NTg5NTc4","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY4NTIzMzE=","name":"pix","full_name":"1024pix/pix","private":false,"owner":{"login":"1024pix","id":24589578,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NTg5NTc4","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},"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-10-29T11:07:29Z","pushed_at":"2018-10-29T11:07:30Z","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":197940,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":8,"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","node_id":"MDc6TGljZW5zZTE="},"forks":4,"open_issues":8,"watchers":17,"default_branch":"dev"}},"base":{"label":"1024pix:dev","ref":"dev","sha":"87da9ba6c328ebdc02533085955a9a5d60cfc463","user":{"login":"1024pix","id":24589578,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NTg5NTc4","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY4NTIzMzE=","name":"pix","full_name":"1024pix/pix","private":false,"owner":{"login":"1024pix","id":24589578,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NTg5NTc4","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},"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-10-29T11:07:29Z","pushed_at":"2018-10-29T11:07:30Z","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":197940,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":8,"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","node_id":"MDc6TGljZW5zZTE="},"forks":4,"open_issues":8,"watchers":17,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/1024pix/pix/pulls/241"},"html":{"href":"https://github.com/1024pix/pix/pull/241"},"issue":{"href":"https://api.github.com/repos/1024pix/pix/issues/241"},"comments":{"href":"https://api.github.com/repos/1024pix/pix/issues/241/comments"},"review_comments":{"href":"https://api.github.com/repos/1024pix/pix/pulls/241/comments"},"review_comment":{"href":"https://api.github.com/repos/1024pix/pix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/1024pix/pix/pulls/241/commits"},"statuses":{"href":"https://api.github.com/repos/1024pix/pix/statuses/12802be8043a368259f688a4d9c17af7c9c37b96"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"MBrandone"}}