{"action":"created","comment":{"url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/comments/40679871","id":40679871,"diff_hunk":"@@ -16,29 +16,27 @@ var isNotValidValue = function(value) {\n var getPeriods = function(dateDeValeur) {\n     dateDeValeur = moment(dateDeValeur).freeze();\n     return {\n-        moisCourant: {\n+        thisMonth: {\n             key: dateDeValeur.format('YYYY-MM')\n         },\n-        moisPrecedent: {\n+        lastMonth: {\n             key: dateDeValeur.subtract(1, 'months').format('YYYY-MM')\n         },\n-        moisMMoins2: {\n-            key: dateDeValeur.subtract(2, 'months').format('YYYY-MM')\n-        },\n-        moisMMoins3: {\n-            key: dateDeValeur.subtract(3, 'months').format('YYYY-MM')\n-        },\n-       anneeGlissante: {\n-            debut: dateDeValeur.subtract(1, 'years').subtract(1, 'months'),\n-            fin: dateDeValeur,\n+        // array containing the last 12 months (taken individually)\n+        last12Months: _.map(_.range(1, 12 + 1), function(monthIndex) {\n+            return dateDeValeur.subtract(monthIndex, 'months').format('YYYY-MM');\n+        }),\n+       rollingYear: {\n+            start: dateDeValeur.subtract(1, 'years').subtract(1, 'months'),\n+            end: dateDeValeur,\n             key: 'year:' + dateDeValeur.subtract(1, 'years').format('YYYY-MM')\n         },\n-        anneeFiscalReference: {\n+        anneeFiscaleReference: {\n             key: dateDeValeur.subtract(2, 'years').year()\n         },\n-        trimestreGlissant: {\n-            debut: dateDeValeur.subtract(3, 'months').subtract(1, 'months'),\n-            fin: dateDeValeur,\n+        rollingTrimester: {\n+            start: dateDeValeur.subtract(3, 'months').subtract(1, 'months'),","path":"lib/simulation/openfisca/mapping/index.js","position":38,"original_position":38,"commit_id":"79038965019719457a92f6d5acf080437ad5aa04","original_commit_id":"79038965019719457a92f6d5acf080437ad5aa04","user":{"login":"MattiSG","id":222463,"avatar_url":"https://avatars.githubusercontent.com/u/222463?v=3","gravatar_id":"","url":"https://api.github.com/users/MattiSG","html_url":"https://github.com/MattiSG","followers_url":"https://api.github.com/users/MattiSG/followers","following_url":"https://api.github.com/users/MattiSG/following{/other_user}","gists_url":"https://api.github.com/users/MattiSG/gists{/gist_id}","starred_url":"https://api.github.com/users/MattiSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattiSG/subscriptions","organizations_url":"https://api.github.com/users/MattiSG/orgs","repos_url":"https://api.github.com/users/MattiSG/repos","events_url":"https://api.github.com/users/MattiSG/events{/privacy}","received_events_url":"https://api.github.com/users/MattiSG/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-09-29T14:41:58Z","updated_at":"2015-09-29T14:41:58Z","html_url":"https://github.com/sgmap/mes-aides-api/pull/58#discussion_r40679871","pull_request_url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/comments/40679871"},"html":{"href":"https://github.com/sgmap/mes-aides-api/pull/58#discussion_r40679871"},"pull_request":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/58","id":46188753,"html_url":"https://github.com/sgmap/mes-aides-api/pull/58","diff_url":"https://github.com/sgmap/mes-aides-api/pull/58.diff","patch_url":"https://github.com/sgmap/mes-aides-api/pull/58.patch","issue_url":"https://api.github.com/repos/sgmap/mes-aides-api/issues/58","number":58,"state":"open","locked":false,"title":"Fixer les prestations non injectées par l'utilisateurs à 0 pour les 12 mois précédents","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":"Connected to #33 \r\n\r\nPermet de casser la dépendance circulaire induite par https://github.com/openfisca/openfisca-france/pull/331\r\n\r\nTests ludwigs vérifiés ","created_at":"2015-09-28T18:09:01Z","updated_at":"2015-09-29T14:41:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"643373a7d822b495e8030cf39752e38e1a7a1e9c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/58/commits","review_comments_url":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/58/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/58/comments","statuses_url":"https://api.github.com/repos/sgmap/mes-aides-api/statuses/79038965019719457a92f6d5acf080437ad5aa04","head":{"label":"sgmap:al-neutral-rsa","ref":"al-neutral-rsa","sha":"79038965019719457a92f6d5acf080437ad5aa04","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":"A mapping interface between the mes-aides user interface and the OpenFisca simulation engine.","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-09-05T20:50:42Z","pushed_at":"2015-09-29T14:19:47Z","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":1692,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":20,"default_branch":"master"}},"base":{"label":"sgmap:master","ref":"master","sha":"9640b9cea323045da6c4f0aeee4295a8376900b2","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":"A mapping interface between the mes-aides user interface and the OpenFisca simulation engine.","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-09-05T20:50:42Z","pushed_at":"2015-09-29T14:19:47Z","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":1692,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/58"},"html":{"href":"https://github.com/sgmap/mes-aides-api/pull/58"},"issue":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/issues/58"},"comments":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/pulls/58/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/58/commits"},"statuses":{"href":"https://api.github.com/repos/sgmap/mes-aides-api/statuses/79038965019719457a92f6d5acf080437ad5aa04"}}}}