{"action":"opened","number":506,"pull_request":{"url":"https://api.github.com/repos/woocommerce/wc-admin/pulls/506","id":221891442,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxODkxNDQy","html_url":"https://github.com/woocommerce/wc-admin/pull/506","diff_url":"https://github.com/woocommerce/wc-admin/pull/506.diff","patch_url":"https://github.com/woocommerce/wc-admin/pull/506.patch","issue_url":"https://api.github.com/repos/woocommerce/wc-admin/issues/506","number":506,"state":"open","locked":false,"title":"Reports: Update summary number label based on selected compare interval","user":{"login":"ryelle","id":541093,"node_id":"MDQ6VXNlcjU0MTA5Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/541093?v=4","gravatar_id":"","url":"https://api.github.com/users/ryelle","html_url":"https://github.com/ryelle","followers_url":"https://api.github.com/users/ryelle/followers","following_url":"https://api.github.com/users/ryelle/following{/other_user}","gists_url":"https://api.github.com/users/ryelle/gists{/gist_id}","starred_url":"https://api.github.com/users/ryelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryelle/subscriptions","organizations_url":"https://api.github.com/users/ryelle/orgs","repos_url":"https://api.github.com/users/ryelle/repos","events_url":"https://api.github.com/users/ryelle/events{/privacy}","received_events_url":"https://api.github.com/users/ryelle/received_events","type":"User","site_admin":false},"body":"Fixes #395 – The SummaryNumber \"previous…\" label now updates to match the selected comparison period.\r\n\r\n<img width=\"378\" alt=\"screen shot 2018-10-10 at 2 35 41 pm\" src=\"https://user-images.githubusercontent.com/541093/46758037-c9a69400-cc99-11e8-901f-43def09391de.png\">\r\n<img width=\"379\" alt=\"screen shot 2018-10-10 at 2 35 12 pm\" src=\"https://user-images.githubusercontent.com/541093/46758038-c9a69400-cc99-11e8-9876-1d2b2a405c53.png\">\r\n\r\nA future improvement could be to generate a nicer string for previous period; \"Previous Month\" etc, but for now we can leave \"Previous Period\".\r\n\r\n**To test**\r\n\r\n- Open the Revenue report\r\n- Check that the summary numbers say \"Previous Period: [value]\"\r\n- Open the date filter & switch \"Compare to\" to \"Previous Year\"\r\n- The summary numbers should update to say \"Previous Year: [value]\"\r\n\r\n_Note_ I was having some trouble with the summary numbers loading when the requested data set is empty, but I haven't tracked that down yet.","created_at":"2018-10-10T18:37:16Z","updated_at":"2018-10-10T18:37:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"ryelle","id":541093,"node_id":"MDQ6VXNlcjU0MTA5Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/541093?v=4","gravatar_id":"","url":"https://api.github.com/users/ryelle","html_url":"https://github.com/ryelle","followers_url":"https://api.github.com/users/ryelle/followers","following_url":"https://api.github.com/users/ryelle/following{/other_user}","gists_url":"https://api.github.com/users/ryelle/gists{/gist_id}","starred_url":"https://api.github.com/users/ryelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryelle/subscriptions","organizations_url":"https://api.github.com/users/ryelle/orgs","repos_url":"https://api.github.com/users/ryelle/repos","events_url":"https://api.github.com/users/ryelle/events{/privacy}","received_events_url":"https://api.github.com/users/ryelle/received_events","type":"User","site_admin":false},"assignees":[{"login":"ryelle","id":541093,"node_id":"MDQ6VXNlcjU0MTA5Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/541093?v=4","gravatar_id":"","url":"https://api.github.com/users/ryelle","html_url":"https://github.com/ryelle","followers_url":"https://api.github.com/users/ryelle/followers","following_url":"https://api.github.com/users/ryelle/following{/other_user}","gists_url":"https://api.github.com/users/ryelle/gists{/gist_id}","starred_url":"https://api.github.com/users/ryelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryelle/subscriptions","organizations_url":"https://api.github.com/users/ryelle/orgs","repos_url":"https://api.github.com/users/ryelle/repos","events_url":"https://api.github.com/users/ryelle/events{/privacy}","received_events_url":"https://api.github.com/users/ryelle/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":921901163,"node_id":"MDU6TGFiZWw5MjE5MDExNjM=","url":"https://api.github.com/repos/woocommerce/wc-admin/labels/Analytics","name":"Analytics","color":"80f7d3","default":false},{"id":921782814,"node_id":"MDU6TGFiZWw5MjE3ODI4MTQ=","url":"https://api.github.com/repos/woocommerce/wc-admin/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/woocommerce/wc-admin/pulls/506/commits","review_comments_url":"https://api.github.com/repos/woocommerce/wc-admin/pulls/506/comments","review_comment_url":"https://api.github.com/repos/woocommerce/wc-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/woocommerce/wc-admin/issues/506/comments","statuses_url":"https://api.github.com/repos/woocommerce/wc-admin/statuses/a510070b44e92ddb6f310025597fb34025b891a3","head":{"label":"woocommerce:fix/395-summarynumber-label","ref":"fix/395-summarynumber-label","sha":"a510070b44e92ddb6f310025597fb34025b891a3","user":{"login":"woocommerce","id":473596,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":128732084,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg3MzIwODQ=","name":"wc-admin","full_name":"woocommerce/wc-admin","private":false,"owner":{"login":"woocommerce","id":473596,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/woocommerce/wc-admin","description":"A feature plugin for a modern, javascript-driven WooCommerce Admin experience.","fork":false,"url":"https://api.github.com/repos/woocommerce/wc-admin","forks_url":"https://api.github.com/repos/woocommerce/wc-admin/forks","keys_url":"https://api.github.com/repos/woocommerce/wc-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woocommerce/wc-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woocommerce/wc-admin/teams","hooks_url":"https://api.github.com/repos/woocommerce/wc-admin/hooks","issue_events_url":"https://api.github.com/repos/woocommerce/wc-admin/issues/events{/number}","events_url":"https://api.github.com/repos/woocommerce/wc-admin/events","assignees_url":"https://api.github.com/repos/woocommerce/wc-admin/assignees{/user}","branches_url":"https://api.github.com/repos/woocommerce/wc-admin/branches{/branch}","tags_url":"https://api.github.com/repos/woocommerce/wc-admin/tags","blobs_url":"https://api.github.com/repos/woocommerce/wc-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woocommerce/wc-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woocommerce/wc-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/woocommerce/wc-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woocommerce/wc-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/woocommerce/wc-admin/languages","stargazers_url":"https://api.github.com/repos/woocommerce/wc-admin/stargazers","contributors_url":"https://api.github.com/repos/woocommerce/wc-admin/contributors","subscribers_url":"https://api.github.com/repos/woocommerce/wc-admin/subscribers","subscription_url":"https://api.github.com/repos/woocommerce/wc-admin/subscription","commits_url":"https://api.github.com/repos/woocommerce/wc-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/woocommerce/wc-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/woocommerce/wc-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/woocommerce/wc-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/woocommerce/wc-admin/contents/{+path}","compare_url":"https://api.github.com/repos/woocommerce/wc-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woocommerce/wc-admin/merges","archive_url":"https://api.github.com/repos/woocommerce/wc-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woocommerce/wc-admin/downloads","issues_url":"https://api.github.com/repos/woocommerce/wc-admin/issues{/number}","pulls_url":"https://api.github.com/repos/woocommerce/wc-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/woocommerce/wc-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/woocommerce/wc-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woocommerce/wc-admin/labels{/name}","releases_url":"https://api.github.com/repos/woocommerce/wc-admin/releases{/id}","deployments_url":"https://api.github.com/repos/woocommerce/wc-admin/deployments","created_at":"2018-04-09T07:29:35Z","updated_at":"2018-10-10T14:59:26Z","pushed_at":"2018-10-10T18:26:59Z","git_url":"git://github.com/woocommerce/wc-admin.git","ssh_url":"git@github.com:woocommerce/wc-admin.git","clone_url":"https://github.com/woocommerce/wc-admin.git","svn_url":"https://github.com/woocommerce/wc-admin","homepage":"https://woocommerce.github.io/wc-admin/#/","size":2754,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":103,"license":null,"forks":0,"open_issues":103,"watchers":20,"default_branch":"master"}},"base":{"label":"woocommerce:master","ref":"master","sha":"053c8da6cf6ebd7023c295d298656e6f10059b1c","user":{"login":"woocommerce","id":473596,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":128732084,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg3MzIwODQ=","name":"wc-admin","full_name":"woocommerce/wc-admin","private":false,"owner":{"login":"woocommerce","id":473596,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/woocommerce/wc-admin","description":"A feature plugin for a modern, javascript-driven WooCommerce Admin experience.","fork":false,"url":"https://api.github.com/repos/woocommerce/wc-admin","forks_url":"https://api.github.com/repos/woocommerce/wc-admin/forks","keys_url":"https://api.github.com/repos/woocommerce/wc-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woocommerce/wc-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woocommerce/wc-admin/teams","hooks_url":"https://api.github.com/repos/woocommerce/wc-admin/hooks","issue_events_url":"https://api.github.com/repos/woocommerce/wc-admin/issues/events{/number}","events_url":"https://api.github.com/repos/woocommerce/wc-admin/events","assignees_url":"https://api.github.com/repos/woocommerce/wc-admin/assignees{/user}","branches_url":"https://api.github.com/repos/woocommerce/wc-admin/branches{/branch}","tags_url":"https://api.github.com/repos/woocommerce/wc-admin/tags","blobs_url":"https://api.github.com/repos/woocommerce/wc-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woocommerce/wc-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woocommerce/wc-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/woocommerce/wc-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woocommerce/wc-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/woocommerce/wc-admin/languages","stargazers_url":"https://api.github.com/repos/woocommerce/wc-admin/stargazers","contributors_url":"https://api.github.com/repos/woocommerce/wc-admin/contributors","subscribers_url":"https://api.github.com/repos/woocommerce/wc-admin/subscribers","subscription_url":"https://api.github.com/repos/woocommerce/wc-admin/subscription","commits_url":"https://api.github.com/repos/woocommerce/wc-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/woocommerce/wc-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/woocommerce/wc-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/woocommerce/wc-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/woocommerce/wc-admin/contents/{+path}","compare_url":"https://api.github.com/repos/woocommerce/wc-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woocommerce/wc-admin/merges","archive_url":"https://api.github.com/repos/woocommerce/wc-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woocommerce/wc-admin/downloads","issues_url":"https://api.github.com/repos/woocommerce/wc-admin/issues{/number}","pulls_url":"https://api.github.com/repos/woocommerce/wc-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/woocommerce/wc-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/woocommerce/wc-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woocommerce/wc-admin/labels{/name}","releases_url":"https://api.github.com/repos/woocommerce/wc-admin/releases{/id}","deployments_url":"https://api.github.com/repos/woocommerce/wc-admin/deployments","created_at":"2018-04-09T07:29:35Z","updated_at":"2018-10-10T14:59:26Z","pushed_at":"2018-10-10T18:26:59Z","git_url":"git://github.com/woocommerce/wc-admin.git","ssh_url":"git@github.com:woocommerce/wc-admin.git","clone_url":"https://github.com/woocommerce/wc-admin.git","svn_url":"https://github.com/woocommerce/wc-admin","homepage":"https://woocommerce.github.io/wc-admin/#/","size":2754,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":103,"license":null,"forks":0,"open_issues":103,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woocommerce/wc-admin/pulls/506"},"html":{"href":"https://github.com/woocommerce/wc-admin/pull/506"},"issue":{"href":"https://api.github.com/repos/woocommerce/wc-admin/issues/506"},"comments":{"href":"https://api.github.com/repos/woocommerce/wc-admin/issues/506/comments"},"review_comments":{"href":"https://api.github.com/repos/woocommerce/wc-admin/pulls/506/comments"},"review_comment":{"href":"https://api.github.com/repos/woocommerce/wc-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/woocommerce/wc-admin/pulls/506/commits"},"statuses":{"href":"https://api.github.com/repos/woocommerce/wc-admin/statuses/a510070b44e92ddb6f310025597fb34025b891a3"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":10,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"ryelle"}}