{"action":"opened","number":385,"pull_request":{"url":"https://api.github.com/repos/sgmap/pix/pulls/385","id":117318912,"html_url":"https://github.com/sgmap/pix/pull/385","diff_url":"https://github.com/sgmap/pix/pull/385.diff","patch_url":"https://github.com/sgmap/pix/pull/385.patch","issue_url":"https://api.github.com/repos/sgmap/pix/issues/385","number":385,"state":"open","locked":false,"title":"[#] [CLEANUP] Déplacement de la logique d'affichage pour décider quel composant challenge-item-* afficher depuis le modèle \"challenge\" vers la route \"assessments/get-challenge\".","user":{"login":"jbuget","id":265963,"avatar_url":"https://avatars1.githubusercontent.com/u/265963?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuget","html_url":"https://github.com/jbuget","followers_url":"https://api.github.com/users/jbuget/followers","following_url":"https://api.github.com/users/jbuget/following{/other_user}","gists_url":"https://api.github.com/users/jbuget/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuget/subscriptions","organizations_url":"https://api.github.com/users/jbuget/orgs","repos_url":"https://api.github.com/users/jbuget/repos","events_url":"https://api.github.com/users/jbuget/events{/privacy}","received_events_url":"https://api.github.com/users/jbuget/received_events","type":"User","site_admin":false},"body":"Ce n'est pas une bonne idée de gérer de la logique d'affichage utile pour le Templating dans un objet Modèle métier.\r\n\r\nCette PR a pour objet de renommer la méthode  `challengeItemType ` en `_componentClassForChallenge` et de la déplacer depuis la classe Modele `live/app/models/challenge.js` vers la classe Route `live/app/routes/assessments/get-challenge.js`.\r\n\r\nAu passage, elle ajoute des tests unitaires dans `live/tests/unit/routes/assessments/get-challenge-test.js`.","created_at":"2017-04-24T17:38:17Z","updated_at":"2017-04-24T17:38:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sgmap/pix/pulls/385/commits","review_comments_url":"https://api.github.com/repos/sgmap/pix/pulls/385/comments","review_comment_url":"https://api.github.com/repos/sgmap/pix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgmap/pix/issues/385/comments","statuses_url":"https://api.github.com/repos/sgmap/pix/statuses/a25e1171953c4c02093215407c2e94e222feb44a","head":{"label":"sgmap:cleanup-challenge-type-class","ref":"cleanup-challenge-type-class","sha":"a25e1171953c4c02093215407c2e94e222feb44a","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars3.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":63066169,"name":"pix","full_name":"sgmap/pix","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars3.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/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/sgmap/pix","forks_url":"https://api.github.com/repos/sgmap/pix/forks","keys_url":"https://api.github.com/repos/sgmap/pix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/pix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/pix/teams","hooks_url":"https://api.github.com/repos/sgmap/pix/hooks","issue_events_url":"https://api.github.com/repos/sgmap/pix/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/pix/events","assignees_url":"https://api.github.com/repos/sgmap/pix/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/pix/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/pix/tags","blobs_url":"https://api.github.com/repos/sgmap/pix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/pix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/pix/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/pix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/pix/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/pix/languages","stargazers_url":"https://api.github.com/repos/sgmap/pix/stargazers","contributors_url":"https://api.github.com/repos/sgmap/pix/contributors","subscribers_url":"https://api.github.com/repos/sgmap/pix/subscribers","subscription_url":"https://api.github.com/repos/sgmap/pix/subscription","commits_url":"https://api.github.com/repos/sgmap/pix/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/pix/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/pix/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/pix/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/pix/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/pix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/pix/merges","archive_url":"https://api.github.com/repos/sgmap/pix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/pix/downloads","issues_url":"https://api.github.com/repos/sgmap/pix/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/pix/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/pix/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/pix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/pix/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/pix/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/pix/deployments","created_at":"2016-07-11T12:31:15Z","updated_at":"2017-04-19T07:06:59Z","pushed_at":"2017-04-24T17:38:06Z","git_url":"git://github.com/sgmap/pix.git","ssh_url":"git@github.com:sgmap/pix.git","clone_url":"https://github.com/sgmap/pix.git","svn_url":"https://github.com/sgmap/pix","homepage":"https://pix.beta.gouv.fr","size":110576,"stargazers_count":30,"watchers_count":30,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":46,"forks":5,"open_issues":46,"watchers":30,"default_branch":"dev"}},"base":{"label":"sgmap:dev","ref":"dev","sha":"ae2112b3defebcab58e2197bebaf6deb67fdf64e","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars3.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"repo":{"id":63066169,"name":"pix","full_name":"sgmap/pix","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars3.githubusercontent.com/u/7874148?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmap","html_url":"https://github.com/sgmap","followers_url":"https://api.github.com/users/sgmap/followers","following_url":"https://api.github.com/users/sgmap/following{/other_user}","gists_url":"https://api.github.com/users/sgmap/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmap/subscriptions","organizations_url":"https://api.github.com/users/sgmap/orgs","repos_url":"https://api.github.com/users/sgmap/repos","events_url":"https://api.github.com/users/sgmap/events{/privacy}","received_events_url":"https://api.github.com/users/sgmap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sgmap/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/sgmap/pix","forks_url":"https://api.github.com/repos/sgmap/pix/forks","keys_url":"https://api.github.com/repos/sgmap/pix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/pix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/pix/teams","hooks_url":"https://api.github.com/repos/sgmap/pix/hooks","issue_events_url":"https://api.github.com/repos/sgmap/pix/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/pix/events","assignees_url":"https://api.github.com/repos/sgmap/pix/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/pix/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/pix/tags","blobs_url":"https://api.github.com/repos/sgmap/pix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/pix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/pix/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/pix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/pix/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/pix/languages","stargazers_url":"https://api.github.com/repos/sgmap/pix/stargazers","contributors_url":"https://api.github.com/repos/sgmap/pix/contributors","subscribers_url":"https://api.github.com/repos/sgmap/pix/subscribers","subscription_url":"https://api.github.com/repos/sgmap/pix/subscription","commits_url":"https://api.github.com/repos/sgmap/pix/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/pix/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/pix/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/pix/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/pix/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/pix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/pix/merges","archive_url":"https://api.github.com/repos/sgmap/pix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/pix/downloads","issues_url":"https://api.github.com/repos/sgmap/pix/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/pix/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/pix/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/pix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/pix/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/pix/releases{/id}","deployments_url":"https://api.github.com/repos/sgmap/pix/deployments","created_at":"2016-07-11T12:31:15Z","updated_at":"2017-04-19T07:06:59Z","pushed_at":"2017-04-24T17:38:06Z","git_url":"git://github.com/sgmap/pix.git","ssh_url":"git@github.com:sgmap/pix.git","clone_url":"https://github.com/sgmap/pix.git","svn_url":"https://github.com/sgmap/pix","homepage":"https://pix.beta.gouv.fr","size":110576,"stargazers_count":30,"watchers_count":30,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":46,"forks":5,"open_issues":46,"watchers":30,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/sgmap/pix/pulls/385"},"html":{"href":"https://github.com/sgmap/pix/pull/385"},"issue":{"href":"https://api.github.com/repos/sgmap/pix/issues/385"},"comments":{"href":"https://api.github.com/repos/sgmap/pix/issues/385/comments"},"review_comments":{"href":"https://api.github.com/repos/sgmap/pix/pulls/385/comments"},"review_comment":{"href":"https://api.github.com/repos/sgmap/pix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgmap/pix/pulls/385/commits"},"statuses":{"href":"https://api.github.com/repos/sgmap/pix/statuses/a25e1171953c4c02093215407c2e94e222feb44a"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":57,"deletions":25,"changed_files":4}}
{"actor":{"display_login":"jbuget"}}