{"action":"created","comment":{"url":"https://api.github.com/repos/criteo/biggraphite/pulls/comments/111882129","pull_request_review_id":33153996,"id":111882129,"diff_hunk":"@@ -119,14 +119,36 @@ def _copy_metric(accessor, src_metric, dst_metric, time_start, time_end):\n         \"\"\"Copy a metric.\"\"\"\n         log.info(\"Copying points from '%s' to '%s'\" % (src_metric.name, dst_metric.name))\n         for stage in src_metric.retention.stages:\n+            aggregated_stage = stage.aggregated()\n             rounded_time_start = stage.round_up(time_start)\n             rounded_time_end = stage.round_up(time_end)\n \n+            query_results = accessor.fetch_points(\n+                src_metric, rounded_time_start, rounded_time_end, stage, raw=True)\n+\n+            # Parse points\n+            ts_to_pts = {}","path":"biggraphite/cli/command_copy.py","position":null,"original_position":12,"commit_id":"53ad8024bddb2f4ee3aa2fa014c8954970cf7a98","original_commit_id":"d5a07cce3ebe6bfabf3cc4c088e4be52a295d92b","user":{"login":"Thib17","id":13062201,"avatar_url":"https://avatars3.githubusercontent.com/u/13062201?v=3","gravatar_id":"","url":"https://api.github.com/users/Thib17","html_url":"https://github.com/Thib17","followers_url":"https://api.github.com/users/Thib17/followers","following_url":"https://api.github.com/users/Thib17/following{/other_user}","gists_url":"https://api.github.com/users/Thib17/gists{/gist_id}","starred_url":"https://api.github.com/users/Thib17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thib17/subscriptions","organizations_url":"https://api.github.com/users/Thib17/orgs","repos_url":"https://api.github.com/users/Thib17/repos","events_url":"https://api.github.com/users/Thib17/events{/privacy}","received_events_url":"https://api.github.com/users/Thib17/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2017-04-18T06:51:43Z","updated_at":"2017-04-18T06:51:43Z","html_url":"https://github.com/criteo/biggraphite/pull/267#discussion_r111882129","pull_request_url":"https://api.github.com/repos/criteo/biggraphite/pulls/267","_links":{"self":{"href":"https://api.github.com/repos/criteo/biggraphite/pulls/comments/111882129"},"html":{"href":"https://github.com/criteo/biggraphite/pull/267#discussion_r111882129"},"pull_request":{"href":"https://api.github.com/repos/criteo/biggraphite/pulls/267"}}},"pull_request":{"url":"https://api.github.com/repos/criteo/biggraphite/pulls/267","id":115798705,"html_url":"https://github.com/criteo/biggraphite/pull/267","diff_url":"https://github.com/criteo/biggraphite/pull/267.diff","patch_url":"https://github.com/criteo/biggraphite/pull/267.patch","issue_url":"https://api.github.com/repos/criteo/biggraphite/issues/267","number":267,"state":"open","locked":false,"title":"bgutil copy : store aggregated points correctly (#263)","user":{"login":"Thib17","id":13062201,"avatar_url":"https://avatars3.githubusercontent.com/u/13062201?v=3","gravatar_id":"","url":"https://api.github.com/users/Thib17","html_url":"https://github.com/Thib17","followers_url":"https://api.github.com/users/Thib17/followers","following_url":"https://api.github.com/users/Thib17/following{/other_user}","gists_url":"https://api.github.com/users/Thib17/gists{/gist_id}","starred_url":"https://api.github.com/users/Thib17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thib17/subscriptions","organizations_url":"https://api.github.com/users/Thib17/orgs","repos_url":"https://api.github.com/users/Thib17/repos","events_url":"https://api.github.com/users/Thib17/events{/privacy}","received_events_url":"https://api.github.com/users/Thib17/received_events","type":"User","site_admin":false},"body":"\n\n<!-- Reviewable:start -->\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/criteo/biggraphite/267)\n<!-- Reviewable:end -->\n","created_at":"2017-04-13T16:48:42Z","updated_at":"2017-04-18T06:51:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c0f291aa2ccf7e61a2e1cfb1bcdf559aeebce11","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/criteo/biggraphite/pulls/267/commits","review_comments_url":"https://api.github.com/repos/criteo/biggraphite/pulls/267/comments","review_comment_url":"https://api.github.com/repos/criteo/biggraphite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/criteo/biggraphite/issues/267/comments","statuses_url":"https://api.github.com/repos/criteo/biggraphite/statuses/53ad8024bddb2f4ee3aa2fa014c8954970cf7a98","head":{"label":"Thib17:master","ref":"master","sha":"53ad8024bddb2f4ee3aa2fa014c8954970cf7a98","user":{"login":"Thib17","id":13062201,"avatar_url":"https://avatars3.githubusercontent.com/u/13062201?v=3","gravatar_id":"","url":"https://api.github.com/users/Thib17","html_url":"https://github.com/Thib17","followers_url":"https://api.github.com/users/Thib17/followers","following_url":"https://api.github.com/users/Thib17/following{/other_user}","gists_url":"https://api.github.com/users/Thib17/gists{/gist_id}","starred_url":"https://api.github.com/users/Thib17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thib17/subscriptions","organizations_url":"https://api.github.com/users/Thib17/orgs","repos_url":"https://api.github.com/users/Thib17/repos","events_url":"https://api.github.com/users/Thib17/events{/privacy}","received_events_url":"https://api.github.com/users/Thib17/received_events","type":"User","site_admin":false},"repo":{"id":61022111,"name":"biggraphite","full_name":"Thib17/biggraphite","owner":{"login":"Thib17","id":13062201,"avatar_url":"https://avatars3.githubusercontent.com/u/13062201?v=3","gravatar_id":"","url":"https://api.github.com/users/Thib17","html_url":"https://github.com/Thib17","followers_url":"https://api.github.com/users/Thib17/followers","following_url":"https://api.github.com/users/Thib17/following{/other_user}","gists_url":"https://api.github.com/users/Thib17/gists{/gist_id}","starred_url":"https://api.github.com/users/Thib17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thib17/subscriptions","organizations_url":"https://api.github.com/users/Thib17/orgs","repos_url":"https://api.github.com/users/Thib17/repos","events_url":"https://api.github.com/users/Thib17/events{/privacy}","received_events_url":"https://api.github.com/users/Thib17/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Thib17/biggraphite","description":"We are experimenting with storing Graphite metric in Cassandra. This repository contains related code. None of it is ready for its premiere yet.","fork":true,"url":"https://api.github.com/repos/Thib17/biggraphite","forks_url":"https://api.github.com/repos/Thib17/biggraphite/forks","keys_url":"https://api.github.com/repos/Thib17/biggraphite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Thib17/biggraphite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Thib17/biggraphite/teams","hooks_url":"https://api.github.com/repos/Thib17/biggraphite/hooks","issue_events_url":"https://api.github.com/repos/Thib17/biggraphite/issues/events{/number}","events_url":"https://api.github.com/repos/Thib17/biggraphite/events","assignees_url":"https://api.github.com/repos/Thib17/biggraphite/assignees{/user}","branches_url":"https://api.github.com/repos/Thib17/biggraphite/branches{/branch}","tags_url":"https://api.github.com/repos/Thib17/biggraphite/tags","blobs_url":"https://api.github.com/repos/Thib17/biggraphite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Thib17/biggraphite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Thib17/biggraphite/git/refs{/sha}","trees_url":"https://api.github.com/repos/Thib17/biggraphite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Thib17/biggraphite/statuses/{sha}","languages_url":"https://api.github.com/repos/Thib17/biggraphite/languages","stargazers_url":"https://api.github.com/repos/Thib17/biggraphite/stargazers","contributors_url":"https://api.github.com/repos/Thib17/biggraphite/contributors","subscribers_url":"https://api.github.com/repos/Thib17/biggraphite/subscribers","subscription_url":"https://api.github.com/repos/Thib17/biggraphite/subscription","commits_url":"https://api.github.com/repos/Thib17/biggraphite/commits{/sha}","git_commits_url":"https://api.github.com/repos/Thib17/biggraphite/git/commits{/sha}","comments_url":"https://api.github.com/repos/Thib17/biggraphite/comments{/number}","issue_comment_url":"https://api.github.com/repos/Thib17/biggraphite/issues/comments{/number}","contents_url":"https://api.github.com/repos/Thib17/biggraphite/contents/{+path}","compare_url":"https://api.github.com/repos/Thib17/biggraphite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Thib17/biggraphite/merges","archive_url":"https://api.github.com/repos/Thib17/biggraphite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Thib17/biggraphite/downloads","issues_url":"https://api.github.com/repos/Thib17/biggraphite/issues{/number}","pulls_url":"https://api.github.com/repos/Thib17/biggraphite/pulls{/number}","milestones_url":"https://api.github.com/repos/Thib17/biggraphite/milestones{/number}","notifications_url":"https://api.github.com/repos/Thib17/biggraphite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Thib17/biggraphite/labels{/name}","releases_url":"https://api.github.com/repos/Thib17/biggraphite/releases{/id}","deployments_url":"https://api.github.com/repos/Thib17/biggraphite/deployments","created_at":"2016-06-13T08:52:29Z","updated_at":"2016-06-13T08:52:30Z","pushed_at":"2017-04-18T06:51:09Z","git_url":"git://github.com/Thib17/biggraphite.git","ssh_url":"git@github.com:Thib17/biggraphite.git","clone_url":"https://github.com/Thib17/biggraphite.git","svn_url":"https://github.com/Thib17/biggraphite","homepage":"","size":809,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"criteo:master","ref":"master","sha":"ede992e87cc73d30c4c873e327cce32544269f8a","user":{"login":"criteo","id":1713646,"avatar_url":"https://avatars1.githubusercontent.com/u/1713646?v=3","gravatar_id":"","url":"https://api.github.com/users/criteo","html_url":"https://github.com/criteo","followers_url":"https://api.github.com/users/criteo/followers","following_url":"https://api.github.com/users/criteo/following{/other_user}","gists_url":"https://api.github.com/users/criteo/gists{/gist_id}","starred_url":"https://api.github.com/users/criteo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/criteo/subscriptions","organizations_url":"https://api.github.com/users/criteo/orgs","repos_url":"https://api.github.com/users/criteo/repos","events_url":"https://api.github.com/users/criteo/events{/privacy}","received_events_url":"https://api.github.com/users/criteo/received_events","type":"Organization","site_admin":false},"repo":{"id":57889412,"name":"biggraphite","full_name":"criteo/biggraphite","owner":{"login":"criteo","id":1713646,"avatar_url":"https://avatars1.githubusercontent.com/u/1713646?v=3","gravatar_id":"","url":"https://api.github.com/users/criteo","html_url":"https://github.com/criteo","followers_url":"https://api.github.com/users/criteo/followers","following_url":"https://api.github.com/users/criteo/following{/other_user}","gists_url":"https://api.github.com/users/criteo/gists{/gist_id}","starred_url":"https://api.github.com/users/criteo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/criteo/subscriptions","organizations_url":"https://api.github.com/users/criteo/orgs","repos_url":"https://api.github.com/users/criteo/repos","events_url":"https://api.github.com/users/criteo/events{/privacy}","received_events_url":"https://api.github.com/users/criteo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/criteo/biggraphite","description":"Simple Scalable Time Series Database","fork":false,"url":"https://api.github.com/repos/criteo/biggraphite","forks_url":"https://api.github.com/repos/criteo/biggraphite/forks","keys_url":"https://api.github.com/repos/criteo/biggraphite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/criteo/biggraphite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/criteo/biggraphite/teams","hooks_url":"https://api.github.com/repos/criteo/biggraphite/hooks","issue_events_url":"https://api.github.com/repos/criteo/biggraphite/issues/events{/number}","events_url":"https://api.github.com/repos/criteo/biggraphite/events","assignees_url":"https://api.github.com/repos/criteo/biggraphite/assignees{/user}","branches_url":"https://api.github.com/repos/criteo/biggraphite/branches{/branch}","tags_url":"https://api.github.com/repos/criteo/biggraphite/tags","blobs_url":"https://api.github.com/repos/criteo/biggraphite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/criteo/biggraphite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/criteo/biggraphite/git/refs{/sha}","trees_url":"https://api.github.com/repos/criteo/biggraphite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/criteo/biggraphite/statuses/{sha}","languages_url":"https://api.github.com/repos/criteo/biggraphite/languages","stargazers_url":"https://api.github.com/repos/criteo/biggraphite/stargazers","contributors_url":"https://api.github.com/repos/criteo/biggraphite/contributors","subscribers_url":"https://api.github.com/repos/criteo/biggraphite/subscribers","subscription_url":"https://api.github.com/repos/criteo/biggraphite/subscription","commits_url":"https://api.github.com/repos/criteo/biggraphite/commits{/sha}","git_commits_url":"https://api.github.com/repos/criteo/biggraphite/git/commits{/sha}","comments_url":"https://api.github.com/repos/criteo/biggraphite/comments{/number}","issue_comment_url":"https://api.github.com/repos/criteo/biggraphite/issues/comments{/number}","contents_url":"https://api.github.com/repos/criteo/biggraphite/contents/{+path}","compare_url":"https://api.github.com/repos/criteo/biggraphite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/criteo/biggraphite/merges","archive_url":"https://api.github.com/repos/criteo/biggraphite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/criteo/biggraphite/downloads","issues_url":"https://api.github.com/repos/criteo/biggraphite/issues{/number}","pulls_url":"https://api.github.com/repos/criteo/biggraphite/pulls{/number}","milestones_url":"https://api.github.com/repos/criteo/biggraphite/milestones{/number}","notifications_url":"https://api.github.com/repos/criteo/biggraphite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/criteo/biggraphite/labels{/name}","releases_url":"https://api.github.com/repos/criteo/biggraphite/releases{/id}","deployments_url":"https://api.github.com/repos/criteo/biggraphite/deployments","created_at":"2016-05-02T12:42:07Z","updated_at":"2017-04-16T18:11:38Z","pushed_at":"2017-04-18T06:51:15Z","git_url":"git://github.com/criteo/biggraphite.git","ssh_url":"git@github.com:criteo/biggraphite.git","clone_url":"https://github.com/criteo/biggraphite.git","svn_url":"https://github.com/criteo/biggraphite","homepage":"","size":1106,"stargazers_count":41,"watchers_count":41,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":17,"forks":14,"open_issues":17,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/criteo/biggraphite/pulls/267"},"html":{"href":"https://github.com/criteo/biggraphite/pull/267"},"issue":{"href":"https://api.github.com/repos/criteo/biggraphite/issues/267"},"comments":{"href":"https://api.github.com/repos/criteo/biggraphite/issues/267/comments"},"review_comments":{"href":"https://api.github.com/repos/criteo/biggraphite/pulls/267/comments"},"review_comment":{"href":"https://api.github.com/repos/criteo/biggraphite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/criteo/biggraphite/pulls/267/commits"},"statuses":{"href":"https://api.github.com/repos/criteo/biggraphite/statuses/53ad8024bddb2f4ee3aa2fa014c8954970cf7a98"}}}}
{"actor":{"display_login":"Thib17"}}