{"action":"created","comment":{"url":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/comments/193661415","pull_request_review_id":126675392,"id":193661415,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzY2MTQxNQ==","diff_hunk":"@@ -243,19 +243,21 @@ class BackupReportsXoPlugin {\n           const operationInfoText = []\n           if (operationLog.status === 'success') {\n             const size = operationLog.result.size\n-            if (operationLog.message === 'merge') {\n-              globalMergeSize += size\n-            } else {\n-              globalTransferSize += size\n+            if (size > 0) {","path":"packages/xo-server-backup-reports/src/index.js","position":8,"original_position":8,"commit_id":"788726ec9a824d8e467f2f0093a3ce864f956678","original_commit_id":"788726ec9a824d8e467f2f0093a3ce864f956678","user":{"login":"julien-f","id":298721,"node_id":"MDQ6VXNlcjI5ODcyMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/298721?v=4","gravatar_id":"","url":"https://api.github.com/users/julien-f","html_url":"https://github.com/julien-f","followers_url":"https://api.github.com/users/julien-f/followers","following_url":"https://api.github.com/users/julien-f/following{/other_user}","gists_url":"https://api.github.com/users/julien-f/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-f/subscriptions","organizations_url":"https://api.github.com/users/julien-f/orgs","repos_url":"https://api.github.com/users/julien-f/repos","events_url":"https://api.github.com/users/julien-f/events{/privacy}","received_events_url":"https://api.github.com/users/julien-f/received_events","type":"User","site_admin":false},"body":"The main issue here is the duration, not the size.\r\n\r\nMaybe the correct fix would be to handle it in `formatSpeed`.","created_at":"2018-06-07T08:15:55Z","updated_at":"2018-06-07T08:15:59Z","html_url":"https://github.com/vatesfr/xen-orchestra/pull/3038#discussion_r193661415","pull_request_url":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/3038","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/comments/193661415"},"html":{"href":"https://github.com/vatesfr/xen-orchestra/pull/3038#discussion_r193661415"},"pull_request":{"href":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/3038"}}},"pull_request":{"url":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/3038","id":193234978,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMjM0OTc4","html_url":"https://github.com/vatesfr/xen-orchestra/pull/3038","diff_url":"https://github.com/vatesfr/xen-orchestra/pull/3038.diff","patch_url":"https://github.com/vatesfr/xen-orchestra/pull/3038.patch","issue_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/3038","number":3038,"state":"open","locked":false,"title":"fix(xo-server-backup-reports): not display size and speed if not have a transfer/merge","user":{"login":"badrAZ","id":21563339,"node_id":"MDQ6VXNlcjIxNTYzMzM5","avatar_url":"https://avatars0.githubusercontent.com/u/21563339?v=4","gravatar_id":"","url":"https://api.github.com/users/badrAZ","html_url":"https://github.com/badrAZ","followers_url":"https://api.github.com/users/badrAZ/followers","following_url":"https://api.github.com/users/badrAZ/following{/other_user}","gists_url":"https://api.github.com/users/badrAZ/gists{/gist_id}","starred_url":"https://api.github.com/users/badrAZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badrAZ/subscriptions","organizations_url":"https://api.github.com/users/badrAZ/orgs","repos_url":"https://api.github.com/users/badrAZ/repos","events_url":"https://api.github.com/users/badrAZ/events{/privacy}","received_events_url":"https://api.github.com/users/badrAZ/received_events","type":"User","site_admin":false},"body":"### Check list\r\n\r\n- [ ] if UI changes, a screenshot has been added to the PR\r\n- [ ] CHANGELOG updated\r\n- [ ] documentation updated\r\n\r\n### Process\r\n\r\n1. create a PR as soon as possible\r\n1. mark it as `WiP:` (Work in Progress) if not ready to be merged\r\n1. when you want a review, add a reviewer\r\n1. if necessary, update your PR, and readd a reviewer\r\n\r\n### List of packages to release\r\n\r\n> No need to mention xo-server and xo-web.\r\n","created_at":"2018-06-07T08:03:21Z","updated_at":"2018-06-07T08:15:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23a8eb41cb0e3cc632a2141a49a7a9008e27aee2","assignee":{"login":"badrAZ","id":21563339,"node_id":"MDQ6VXNlcjIxNTYzMzM5","avatar_url":"https://avatars0.githubusercontent.com/u/21563339?v=4","gravatar_id":"","url":"https://api.github.com/users/badrAZ","html_url":"https://github.com/badrAZ","followers_url":"https://api.github.com/users/badrAZ/followers","following_url":"https://api.github.com/users/badrAZ/following{/other_user}","gists_url":"https://api.github.com/users/badrAZ/gists{/gist_id}","starred_url":"https://api.github.com/users/badrAZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badrAZ/subscriptions","organizations_url":"https://api.github.com/users/badrAZ/orgs","repos_url":"https://api.github.com/users/badrAZ/repos","events_url":"https://api.github.com/users/badrAZ/events{/privacy}","received_events_url":"https://api.github.com/users/badrAZ/received_events","type":"User","site_admin":false},"assignees":[{"login":"badrAZ","id":21563339,"node_id":"MDQ6VXNlcjIxNTYzMzM5","avatar_url":"https://avatars0.githubusercontent.com/u/21563339?v=4","gravatar_id":"","url":"https://api.github.com/users/badrAZ","html_url":"https://github.com/badrAZ","followers_url":"https://api.github.com/users/badrAZ/followers","following_url":"https://api.github.com/users/badrAZ/following{/other_user}","gists_url":"https://api.github.com/users/badrAZ/gists{/gist_id}","starred_url":"https://api.github.com/users/badrAZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badrAZ/subscriptions","organizations_url":"https://api.github.com/users/badrAZ/orgs","repos_url":"https://api.github.com/users/badrAZ/repos","events_url":"https://api.github.com/users/badrAZ/events{/privacy}","received_events_url":"https://api.github.com/users/badrAZ/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/3038/commits","review_comments_url":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/3038/comments","review_comment_url":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/3038/comments","statuses_url":"https://api.github.com/repos/vatesfr/xen-orchestra/statuses/788726ec9a824d8e467f2f0093a3ce864f956678","head":{"label":"vatesfr:fixBugInBackupReports","ref":"fixBugInBackupReports","sha":"788726ec9a824d8e467f2f0093a3ce864f956678","user":{"login":"vatesfr","id":2064170,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNjQxNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/2064170?v=4","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"repo":{"id":8077957,"node_id":"MDEwOlJlcG9zaXRvcnk4MDc3OTU3","name":"xen-orchestra","full_name":"vatesfr/xen-orchestra","owner":{"login":"vatesfr","id":2064170,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNjQxNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/2064170?v=4","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vatesfr/xen-orchestra","description":"The complete web solution for XenServer/XCP-ng","fork":false,"url":"https://api.github.com/repos/vatesfr/xen-orchestra","forks_url":"https://api.github.com/repos/vatesfr/xen-orchestra/forks","keys_url":"https://api.github.com/repos/vatesfr/xen-orchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vatesfr/xen-orchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vatesfr/xen-orchestra/teams","hooks_url":"https://api.github.com/repos/vatesfr/xen-orchestra/hooks","issue_events_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/events{/number}","events_url":"https://api.github.com/repos/vatesfr/xen-orchestra/events","assignees_url":"https://api.github.com/repos/vatesfr/xen-orchestra/assignees{/user}","branches_url":"https://api.github.com/repos/vatesfr/xen-orchestra/branches{/branch}","tags_url":"https://api.github.com/repos/vatesfr/xen-orchestra/tags","blobs_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vatesfr/xen-orchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/vatesfr/xen-orchestra/languages","stargazers_url":"https://api.github.com/repos/vatesfr/xen-orchestra/stargazers","contributors_url":"https://api.github.com/repos/vatesfr/xen-orchestra/contributors","subscribers_url":"https://api.github.com/repos/vatesfr/xen-orchestra/subscribers","subscription_url":"https://api.github.com/repos/vatesfr/xen-orchestra/subscription","commits_url":"https://api.github.com/repos/vatesfr/xen-orchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/vatesfr/xen-orchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/vatesfr/xen-orchestra/contents/{+path}","compare_url":"https://api.github.com/repos/vatesfr/xen-orchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vatesfr/xen-orchestra/merges","archive_url":"https://api.github.com/repos/vatesfr/xen-orchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vatesfr/xen-orchestra/downloads","issues_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues{/number}","pulls_url":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/vatesfr/xen-orchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/vatesfr/xen-orchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vatesfr/xen-orchestra/labels{/name}","releases_url":"https://api.github.com/repos/vatesfr/xen-orchestra/releases{/id}","deployments_url":"https://api.github.com/repos/vatesfr/xen-orchestra/deployments","created_at":"2013-02-07T17:43:01Z","updated_at":"2018-06-07T07:53:41Z","pushed_at":"2018-06-07T08:03:22Z","git_url":"git://github.com/vatesfr/xen-orchestra.git","ssh_url":"git@github.com:vatesfr/xen-orchestra.git","clone_url":"https://github.com/vatesfr/xen-orchestra.git","svn_url":"https://github.com/vatesfr/xen-orchestra","homepage":"","size":19723,"stargazers_count":134,"watchers_count":134,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":341,"license":null,"forks":53,"open_issues":341,"watchers":134,"default_branch":"master"}},"base":{"label":"vatesfr:master","ref":"master","sha":"53099eacc8d32a051c579f3b867aa75c2a1ac756","user":{"login":"vatesfr","id":2064170,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNjQxNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/2064170?v=4","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"repo":{"id":8077957,"node_id":"MDEwOlJlcG9zaXRvcnk4MDc3OTU3","name":"xen-orchestra","full_name":"vatesfr/xen-orchestra","owner":{"login":"vatesfr","id":2064170,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNjQxNzA=","avatar_url":"https://avatars2.githubusercontent.com/u/2064170?v=4","gravatar_id":"","url":"https://api.github.com/users/vatesfr","html_url":"https://github.com/vatesfr","followers_url":"https://api.github.com/users/vatesfr/followers","following_url":"https://api.github.com/users/vatesfr/following{/other_user}","gists_url":"https://api.github.com/users/vatesfr/gists{/gist_id}","starred_url":"https://api.github.com/users/vatesfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vatesfr/subscriptions","organizations_url":"https://api.github.com/users/vatesfr/orgs","repos_url":"https://api.github.com/users/vatesfr/repos","events_url":"https://api.github.com/users/vatesfr/events{/privacy}","received_events_url":"https://api.github.com/users/vatesfr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vatesfr/xen-orchestra","description":"The complete web solution for XenServer/XCP-ng","fork":false,"url":"https://api.github.com/repos/vatesfr/xen-orchestra","forks_url":"https://api.github.com/repos/vatesfr/xen-orchestra/forks","keys_url":"https://api.github.com/repos/vatesfr/xen-orchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vatesfr/xen-orchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vatesfr/xen-orchestra/teams","hooks_url":"https://api.github.com/repos/vatesfr/xen-orchestra/hooks","issue_events_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/events{/number}","events_url":"https://api.github.com/repos/vatesfr/xen-orchestra/events","assignees_url":"https://api.github.com/repos/vatesfr/xen-orchestra/assignees{/user}","branches_url":"https://api.github.com/repos/vatesfr/xen-orchestra/branches{/branch}","tags_url":"https://api.github.com/repos/vatesfr/xen-orchestra/tags","blobs_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vatesfr/xen-orchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/vatesfr/xen-orchestra/languages","stargazers_url":"https://api.github.com/repos/vatesfr/xen-orchestra/stargazers","contributors_url":"https://api.github.com/repos/vatesfr/xen-orchestra/contributors","subscribers_url":"https://api.github.com/repos/vatesfr/xen-orchestra/subscribers","subscription_url":"https://api.github.com/repos/vatesfr/xen-orchestra/subscription","commits_url":"https://api.github.com/repos/vatesfr/xen-orchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/vatesfr/xen-orchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/vatesfr/xen-orchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/vatesfr/xen-orchestra/contents/{+path}","compare_url":"https://api.github.com/repos/vatesfr/xen-orchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vatesfr/xen-orchestra/merges","archive_url":"https://api.github.com/repos/vatesfr/xen-orchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vatesfr/xen-orchestra/downloads","issues_url":"https://api.github.com/repos/vatesfr/xen-orchestra/issues{/number}","pulls_url":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/vatesfr/xen-orchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/vatesfr/xen-orchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vatesfr/xen-orchestra/labels{/name}","releases_url":"https://api.github.com/repos/vatesfr/xen-orchestra/releases{/id}","deployments_url":"https://api.github.com/repos/vatesfr/xen-orchestra/deployments","created_at":"2013-02-07T17:43:01Z","updated_at":"2018-06-07T07:53:41Z","pushed_at":"2018-06-07T08:03:22Z","git_url":"git://github.com/vatesfr/xen-orchestra.git","ssh_url":"git@github.com:vatesfr/xen-orchestra.git","clone_url":"https://github.com/vatesfr/xen-orchestra.git","svn_url":"https://github.com/vatesfr/xen-orchestra","homepage":"","size":19723,"stargazers_count":134,"watchers_count":134,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":341,"license":null,"forks":53,"open_issues":341,"watchers":134,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/3038"},"html":{"href":"https://github.com/vatesfr/xen-orchestra/pull/3038"},"issue":{"href":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/3038"},"comments":{"href":"https://api.github.com/repos/vatesfr/xen-orchestra/issues/3038/comments"},"review_comments":{"href":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/3038/comments"},"review_comment":{"href":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vatesfr/xen-orchestra/pulls/3038/commits"},"statuses":{"href":"https://api.github.com/repos/vatesfr/xen-orchestra/statuses/788726ec9a824d8e467f2f0093a3ce864f956678"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"julien-f"}}