{"action":"created","comment":{"url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/comments/28524124","id":28524124,"diff_hunk":"@@ -40,14 +40,17 @@ var applyRessources = function(src, dest, schema, dateDeValeur) {\n \n     var ressourcesByType = _.groupBy(src.ressources, 'type');\n     _.forEach(schema, function(definition, destKey) {\n-        var srcKey, fn;\n+        var srcKeys, fn;\n         if (_.isString(definition)) {\n-            srcKey = definition;\n+            srcKeys = [definition];\n+        } else if(_.isArray(definition)) {\n+            srcKeys = definition;\n         } else {\n-            srcKey = definition.src;\n+            srcKeys = [definition.src];\n             fn = definition.fn;\n         }\n \n+    var mapRessources = function(srcKey) {","path":"lib/simulation/openfisca/mapping/index.js","position":17,"original_position":17,"commit_id":"bdd3317741c4f17d9558f6e923ac7d71537a00ab","original_commit_id":"bdd3317741c4f17d9558f6e923ac7d71537a00ab","user":{"login":"fpagnoux","id":11834997,"avatar_url":"https://avatars.githubusercontent.com/u/11834997?v=3","gravatar_id":"","url":"https://api.github.com/users/fpagnoux","html_url":"https://github.com/fpagnoux","followers_url":"https://api.github.com/users/fpagnoux/followers","following_url":"https://api.github.com/users/fpagnoux/following{/other_user}","gists_url":"https://api.github.com/users/fpagnoux/gists{/gist_id}","starred_url":"https://api.github.com/users/fpagnoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpagnoux/subscriptions","organizations_url":"https://api.github.com/users/fpagnoux/orgs","repos_url":"https://api.github.com/users/fpagnoux/repos","events_url":"https://api.github.com/users/fpagnoux/events{/privacy}","received_events_url":"https://api.github.com/users/fpagnoux/received_events","type":"User","site_admin":false},"body":"Arg, JS is still not super clear for me, so I'm a bit confused. \r\n\r\nI don't have time to work on it more tonight, so I could work on it quickly tomorrow morning, but if we don't want to waste too much time, maybe you can do it ? \r\nThanks ! \r\nFlorian ","created_at":"2015-04-16T16:14:02Z","updated_at":"2015-04-16T16:14:02Z","html_url":"https://github.com/sgmap/mes-aides-api/pull/7#discussion_r28524124","pull_request_url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/comments/28524124"},"html":{"href":"https://github.com/sgmap/mes-aides-api/pull/7#discussion_r28524124"},"pull_request":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/7","id":33450880,"html_url":"https://github.com/sgmap/mes-aides-api/pull/7","diff_url":"https://github.com/sgmap/mes-aides-api/pull/7.diff","patch_url":"https://github.com/sgmap/mes-aides-api/pull/7.patch","issue_url":"https://api.github.com/repos/sgmap/mes-aides-api/issues/7","number":7,"state":"open","locked":false,"title":"Abbatements pensions alimentaires versees","user":{"login":"fpagnoux","id":11834997,"avatar_url":"https://avatars.githubusercontent.com/u/11834997?v=3","gravatar_id":"","url":"https://api.github.com/users/fpagnoux","html_url":"https://github.com/fpagnoux","followers_url":"https://api.github.com/users/fpagnoux/followers","following_url":"https://api.github.com/users/fpagnoux/following{/other_user}","gists_url":"https://api.github.com/users/fpagnoux/gists{/gist_id}","starred_url":"https://api.github.com/users/fpagnoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpagnoux/subscriptions","organizations_url":"https://api.github.com/users/fpagnoux/orgs","repos_url":"https://api.github.com/users/fpagnoux/repos","events_url":"https://api.github.com/users/fpagnoux/events{/privacy}","received_events_url":"https://api.github.com/users/fpagnoux/received_events","type":"User","site_admin":false},"body":"Rename alr to pensions_alimentaires_percues & allow mapping to combine several JS variables in a single openfisca variable","created_at":"2015-04-16T13:33:57Z","updated_at":"2015-04-16T16:14:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5e7a6efeac242d9170c79e47eb00a0e668bb5bf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/7/commits","review_comments_url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/7/comments","review_comment_url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sgmap/mes-aides-api/issues/7/comments","statuses_url":"https://api.github.com/repos/sgmap/mes-aides-api/statuses/bdd3317741c4f17d9558f6e923ac7d71537a00ab","head":{"label":"sgmap:abbatements_pensions_alimentaires_versees","ref":"abbatements_pensions_alimentaires_versees","sha":"bdd3317741c4f17d9558f6e923ac7d71537a00ab","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.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":23540628,"name":"mes-aides-api","full_name":"sgmap/mes-aides-api","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.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/mes-aides-api","description":"mes-aides.gouv.fr REST API","fork":false,"url":"https://api.github.com/repos/sgmap/mes-aides-api","forks_url":"https://api.github.com/repos/sgmap/mes-aides-api/forks","keys_url":"https://api.github.com/repos/sgmap/mes-aides-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/mes-aides-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/mes-aides-api/teams","hooks_url":"https://api.github.com/repos/sgmap/mes-aides-api/hooks","issue_events_url":"https://api.github.com/repos/sgmap/mes-aides-api/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/mes-aides-api/events","assignees_url":"https://api.github.com/repos/sgmap/mes-aides-api/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/mes-aides-api/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/mes-aides-api/tags","blobs_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/mes-aides-api/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/mes-aides-api/languages","stargazers_url":"https://api.github.com/repos/sgmap/mes-aides-api/stargazers","contributors_url":"https://api.github.com/repos/sgmap/mes-aides-api/contributors","subscribers_url":"https://api.github.com/repos/sgmap/mes-aides-api/subscribers","subscription_url":"https://api.github.com/repos/sgmap/mes-aides-api/subscription","commits_url":"https://api.github.com/repos/sgmap/mes-aides-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/mes-aides-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/mes-aides-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/mes-aides-api/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/mes-aides-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/mes-aides-api/merges","archive_url":"https://api.github.com/repos/sgmap/mes-aides-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/mes-aides-api/downloads","issues_url":"https://api.github.com/repos/sgmap/mes-aides-api/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/mes-aides-api/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/mes-aides-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/mes-aides-api/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/mes-aides-api/releases{/id}","created_at":"2014-09-01T11:45:44Z","updated_at":"2015-04-16T13:12:10Z","pushed_at":"2015-04-16T16:02:08Z","git_url":"git://github.com/sgmap/mes-aides-api.git","ssh_url":"git@github.com:sgmap/mes-aides-api.git","clone_url":"https://github.com/sgmap/mes-aides-api.git","svn_url":"https://github.com/sgmap/mes-aides-api","homepage":"https://mes-aides.gouv.fr","size":1060,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":19,"default_branch":"master"}},"base":{"label":"sgmap:master","ref":"master","sha":"a69a25e86f0e9004713f1ae4bafb10f6f87bc2b3","user":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.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":23540628,"name":"mes-aides-api","full_name":"sgmap/mes-aides-api","owner":{"login":"sgmap","id":7874148,"avatar_url":"https://avatars.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/mes-aides-api","description":"mes-aides.gouv.fr REST API","fork":false,"url":"https://api.github.com/repos/sgmap/mes-aides-api","forks_url":"https://api.github.com/repos/sgmap/mes-aides-api/forks","keys_url":"https://api.github.com/repos/sgmap/mes-aides-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sgmap/mes-aides-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sgmap/mes-aides-api/teams","hooks_url":"https://api.github.com/repos/sgmap/mes-aides-api/hooks","issue_events_url":"https://api.github.com/repos/sgmap/mes-aides-api/issues/events{/number}","events_url":"https://api.github.com/repos/sgmap/mes-aides-api/events","assignees_url":"https://api.github.com/repos/sgmap/mes-aides-api/assignees{/user}","branches_url":"https://api.github.com/repos/sgmap/mes-aides-api/branches{/branch}","tags_url":"https://api.github.com/repos/sgmap/mes-aides-api/tags","blobs_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sgmap/mes-aides-api/statuses/{sha}","languages_url":"https://api.github.com/repos/sgmap/mes-aides-api/languages","stargazers_url":"https://api.github.com/repos/sgmap/mes-aides-api/stargazers","contributors_url":"https://api.github.com/repos/sgmap/mes-aides-api/contributors","subscribers_url":"https://api.github.com/repos/sgmap/mes-aides-api/subscribers","subscription_url":"https://api.github.com/repos/sgmap/mes-aides-api/subscription","commits_url":"https://api.github.com/repos/sgmap/mes-aides-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/sgmap/mes-aides-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/sgmap/mes-aides-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/sgmap/mes-aides-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/sgmap/mes-aides-api/contents/{+path}","compare_url":"https://api.github.com/repos/sgmap/mes-aides-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sgmap/mes-aides-api/merges","archive_url":"https://api.github.com/repos/sgmap/mes-aides-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sgmap/mes-aides-api/downloads","issues_url":"https://api.github.com/repos/sgmap/mes-aides-api/issues{/number}","pulls_url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls{/number}","milestones_url":"https://api.github.com/repos/sgmap/mes-aides-api/milestones{/number}","notifications_url":"https://api.github.com/repos/sgmap/mes-aides-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sgmap/mes-aides-api/labels{/name}","releases_url":"https://api.github.com/repos/sgmap/mes-aides-api/releases{/id}","created_at":"2014-09-01T11:45:44Z","updated_at":"2015-04-16T13:12:10Z","pushed_at":"2015-04-16T16:02:08Z","git_url":"git://github.com/sgmap/mes-aides-api.git","ssh_url":"git@github.com:sgmap/mes-aides-api.git","clone_url":"https://github.com/sgmap/mes-aides-api.git","svn_url":"https://github.com/sgmap/mes-aides-api","homepage":"https://mes-aides.gouv.fr","size":1060,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/7"},"html":{"href":"https://github.com/sgmap/mes-aides-api/pull/7"},"issue":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/issues/7"},"comments":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/statuses/bdd3317741c4f17d9558f6e923ac7d71537a00ab"}}}}