{"action":"closed","number":314,"pull_request":{"url":"https://api.github.com/repos/cozy/cozy-banks/pulls/314","id":204841632,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0ODQxNjMy","html_url":"https://github.com/cozy/cozy-banks/pull/314","diff_url":"https://github.com/cozy/cozy-banks/pull/314.diff","patch_url":"https://github.com/cozy/cozy-banks/pull/314.patch","issue_url":"https://api.github.com/repos/cozy/cozy-banks/issues/314","number":314,"state":"closed","locked":false,"title":"feat: Compute balance history","user":{"login":"drazik","id":1606068,"node_id":"MDQ6VXNlcjE2MDYwNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/1606068?v=4","gravatar_id":"","url":"https://api.github.com/users/drazik","html_url":"https://github.com/drazik","followers_url":"https://api.github.com/users/drazik/followers","following_url":"https://api.github.com/users/drazik/following{/other_user}","gists_url":"https://api.github.com/users/drazik/gists{/gist_id}","starred_url":"https://api.github.com/users/drazik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drazik/subscriptions","organizations_url":"https://api.github.com/users/drazik/orgs","repos_url":"https://api.github.com/users/drazik/repos","events_url":"https://api.github.com/users/drazik/events{/privacy}","received_events_url":"https://api.github.com/users/drazik/received_events","type":"User","site_admin":false},"body":"Compute the balance history for each account when the user hits the Balances page.\r\n\r\nThe result is an object indexed by the account ID. And for each account, an array of objects with the shape:\r\n\r\n```\r\n{\r\n  \"date\": Date,\r\n  \"balance\": Number\r\n}\r\n```","created_at":"2018-07-30T15:25:12Z","updated_at":"2018-07-31T12:10:43Z","closed_at":"2018-07-31T12:10:42Z","merged_at":"2018-07-31T12:10:42Z","merge_commit_sha":"a58e219153fbe2db3f88e90c191a204c6aaf41c1","assignee":{"login":"drazik","id":1606068,"node_id":"MDQ6VXNlcjE2MDYwNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/1606068?v=4","gravatar_id":"","url":"https://api.github.com/users/drazik","html_url":"https://github.com/drazik","followers_url":"https://api.github.com/users/drazik/followers","following_url":"https://api.github.com/users/drazik/following{/other_user}","gists_url":"https://api.github.com/users/drazik/gists{/gist_id}","starred_url":"https://api.github.com/users/drazik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drazik/subscriptions","organizations_url":"https://api.github.com/users/drazik/orgs","repos_url":"https://api.github.com/users/drazik/repos","events_url":"https://api.github.com/users/drazik/events{/privacy}","received_events_url":"https://api.github.com/users/drazik/received_events","type":"User","site_admin":false},"assignees":[{"login":"drazik","id":1606068,"node_id":"MDQ6VXNlcjE2MDYwNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/1606068?v=4","gravatar_id":"","url":"https://api.github.com/users/drazik","html_url":"https://github.com/drazik","followers_url":"https://api.github.com/users/drazik/followers","following_url":"https://api.github.com/users/drazik/following{/other_user}","gists_url":"https://api.github.com/users/drazik/gists{/gist_id}","starred_url":"https://api.github.com/users/drazik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drazik/subscriptions","organizations_url":"https://api.github.com/users/drazik/orgs","repos_url":"https://api.github.com/users/drazik/repos","events_url":"https://api.github.com/users/drazik/events{/privacy}","received_events_url":"https://api.github.com/users/drazik/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cozy/cozy-banks/pulls/314/commits","review_comments_url":"https://api.github.com/repos/cozy/cozy-banks/pulls/314/comments","review_comment_url":"https://api.github.com/repos/cozy/cozy-banks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cozy/cozy-banks/issues/314/comments","statuses_url":"https://api.github.com/repos/cozy/cozy-banks/statuses/09e5bc87e0447d1972d721ae8dea079fc68c5bab","head":{"label":"cozy:compute-balances","ref":"compute-balances","sha":"09e5bc87e0447d1972d721ae8dea079fc68c5bab","user":{"login":"cozy","id":7690525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2OTA1MjU=","avatar_url":"https://avatars0.githubusercontent.com/u/7690525?v=4","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"repo":{"id":127015178,"node_id":"MDEwOlJlcG9zaXRvcnkxMjcwMTUxNzg=","name":"cozy-banks","full_name":"cozy/cozy-banks","owner":{"login":"cozy","id":7690525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2OTA1MjU=","avatar_url":"https://avatars0.githubusercontent.com/u/7690525?v=4","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy/cozy-banks","description":"A Banks Aggregator on Cozy","fork":false,"url":"https://api.github.com/repos/cozy/cozy-banks","forks_url":"https://api.github.com/repos/cozy/cozy-banks/forks","keys_url":"https://api.github.com/repos/cozy/cozy-banks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy/cozy-banks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy/cozy-banks/teams","hooks_url":"https://api.github.com/repos/cozy/cozy-banks/hooks","issue_events_url":"https://api.github.com/repos/cozy/cozy-banks/issues/events{/number}","events_url":"https://api.github.com/repos/cozy/cozy-banks/events","assignees_url":"https://api.github.com/repos/cozy/cozy-banks/assignees{/user}","branches_url":"https://api.github.com/repos/cozy/cozy-banks/branches{/branch}","tags_url":"https://api.github.com/repos/cozy/cozy-banks/tags","blobs_url":"https://api.github.com/repos/cozy/cozy-banks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy/cozy-banks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy/cozy-banks/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy/cozy-banks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy/cozy-banks/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy/cozy-banks/languages","stargazers_url":"https://api.github.com/repos/cozy/cozy-banks/stargazers","contributors_url":"https://api.github.com/repos/cozy/cozy-banks/contributors","subscribers_url":"https://api.github.com/repos/cozy/cozy-banks/subscribers","subscription_url":"https://api.github.com/repos/cozy/cozy-banks/subscription","commits_url":"https://api.github.com/repos/cozy/cozy-banks/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy/cozy-banks/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy/cozy-banks/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy/cozy-banks/issues/comments{/number}","contents_url":"https://api.github.com/repos/cozy/cozy-banks/contents/{+path}","compare_url":"https://api.github.com/repos/cozy/cozy-banks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy/cozy-banks/merges","archive_url":"https://api.github.com/repos/cozy/cozy-banks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy/cozy-banks/downloads","issues_url":"https://api.github.com/repos/cozy/cozy-banks/issues{/number}","pulls_url":"https://api.github.com/repos/cozy/cozy-banks/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy/cozy-banks/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy/cozy-banks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy/cozy-banks/labels{/name}","releases_url":"https://api.github.com/repos/cozy/cozy-banks/releases{/id}","deployments_url":"https://api.github.com/repos/cozy/cozy-banks/deployments","created_at":"2018-03-27T16:24:37Z","updated_at":"2018-07-30T15:39:04Z","pushed_at":"2018-07-31T12:10:42Z","git_url":"git://github.com/cozy/cozy-banks.git","ssh_url":"git@github.com:cozy/cozy-banks.git","clone_url":"https://github.com/cozy/cozy-banks.git","svn_url":"https://github.com/cozy/cozy-banks","homepage":"https://cozy.io","size":65780,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":39,"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":9,"open_issues":39,"watchers":4,"default_branch":"master"}},"base":{"label":"cozy:master","ref":"master","sha":"e89d923e5f289ddc02295af5709ad92c51918071","user":{"login":"cozy","id":7690525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2OTA1MjU=","avatar_url":"https://avatars0.githubusercontent.com/u/7690525?v=4","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"repo":{"id":127015178,"node_id":"MDEwOlJlcG9zaXRvcnkxMjcwMTUxNzg=","name":"cozy-banks","full_name":"cozy/cozy-banks","owner":{"login":"cozy","id":7690525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc2OTA1MjU=","avatar_url":"https://avatars0.githubusercontent.com/u/7690525?v=4","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy/cozy-banks","description":"A Banks Aggregator on Cozy","fork":false,"url":"https://api.github.com/repos/cozy/cozy-banks","forks_url":"https://api.github.com/repos/cozy/cozy-banks/forks","keys_url":"https://api.github.com/repos/cozy/cozy-banks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy/cozy-banks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy/cozy-banks/teams","hooks_url":"https://api.github.com/repos/cozy/cozy-banks/hooks","issue_events_url":"https://api.github.com/repos/cozy/cozy-banks/issues/events{/number}","events_url":"https://api.github.com/repos/cozy/cozy-banks/events","assignees_url":"https://api.github.com/repos/cozy/cozy-banks/assignees{/user}","branches_url":"https://api.github.com/repos/cozy/cozy-banks/branches{/branch}","tags_url":"https://api.github.com/repos/cozy/cozy-banks/tags","blobs_url":"https://api.github.com/repos/cozy/cozy-banks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy/cozy-banks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy/cozy-banks/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy/cozy-banks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy/cozy-banks/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy/cozy-banks/languages","stargazers_url":"https://api.github.com/repos/cozy/cozy-banks/stargazers","contributors_url":"https://api.github.com/repos/cozy/cozy-banks/contributors","subscribers_url":"https://api.github.com/repos/cozy/cozy-banks/subscribers","subscription_url":"https://api.github.com/repos/cozy/cozy-banks/subscription","commits_url":"https://api.github.com/repos/cozy/cozy-banks/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy/cozy-banks/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy/cozy-banks/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy/cozy-banks/issues/comments{/number}","contents_url":"https://api.github.com/repos/cozy/cozy-banks/contents/{+path}","compare_url":"https://api.github.com/repos/cozy/cozy-banks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy/cozy-banks/merges","archive_url":"https://api.github.com/repos/cozy/cozy-banks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy/cozy-banks/downloads","issues_url":"https://api.github.com/repos/cozy/cozy-banks/issues{/number}","pulls_url":"https://api.github.com/repos/cozy/cozy-banks/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy/cozy-banks/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy/cozy-banks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy/cozy-banks/labels{/name}","releases_url":"https://api.github.com/repos/cozy/cozy-banks/releases{/id}","deployments_url":"https://api.github.com/repos/cozy/cozy-banks/deployments","created_at":"2018-03-27T16:24:37Z","updated_at":"2018-07-30T15:39:04Z","pushed_at":"2018-07-31T12:10:42Z","git_url":"git://github.com/cozy/cozy-banks.git","ssh_url":"git@github.com:cozy/cozy-banks.git","clone_url":"https://github.com/cozy/cozy-banks.git","svn_url":"https://github.com/cozy/cozy-banks","homepage":"https://cozy.io","size":65780,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":39,"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":9,"open_issues":39,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-banks/pulls/314"},"html":{"href":"https://github.com/cozy/cozy-banks/pull/314"},"issue":{"href":"https://api.github.com/repos/cozy/cozy-banks/issues/314"},"comments":{"href":"https://api.github.com/repos/cozy/cozy-banks/issues/314/comments"},"review_comments":{"href":"https://api.github.com/repos/cozy/cozy-banks/pulls/314/comments"},"review_comment":{"href":"https://api.github.com/repos/cozy/cozy-banks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cozy/cozy-banks/pulls/314/commits"},"statuses":{"href":"https://api.github.com/repos/cozy/cozy-banks/statuses/09e5bc87e0447d1972d721ae8dea079fc68c5bab"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"drazik","id":1606068,"node_id":"MDQ6VXNlcjE2MDYwNjg=","avatar_url":"https://avatars3.githubusercontent.com/u/1606068?v=4","gravatar_id":"","url":"https://api.github.com/users/drazik","html_url":"https://github.com/drazik","followers_url":"https://api.github.com/users/drazik/followers","following_url":"https://api.github.com/users/drazik/following{/other_user}","gists_url":"https://api.github.com/users/drazik/gists{/gist_id}","starred_url":"https://api.github.com/users/drazik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drazik/subscriptions","organizations_url":"https://api.github.com/users/drazik/orgs","repos_url":"https://api.github.com/users/drazik/repos","events_url":"https://api.github.com/users/drazik/events{/privacy}","received_events_url":"https://api.github.com/users/drazik/received_events","type":"User","site_admin":false},"comments":0,"review_comments":13,"maintainer_can_modify":false,"commits":3,"additions":126,"deletions":4,"changed_files":6}}
{"actor":{"display_login":"drazik"}}