{"action":"closed","number":1055,"pull_request":{"url":"https://api.github.com/repos/woocommerce/wc-admin/pulls/1055","id":237457370,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NDU3Mzcw","html_url":"https://github.com/woocommerce/wc-admin/pull/1055","diff_url":"https://github.com/woocommerce/wc-admin/pull/1055.diff","patch_url":"https://github.com/woocommerce/wc-admin/pull/1055.patch","issue_url":"https://api.github.com/repos/woocommerce/wc-admin/issues/1055","number":1055,"state":"closed","locked":false,"title":"Add Live Data to Reviews Panel","user":{"login":"justinshreve","id":689165,"node_id":"MDQ6VXNlcjY4OTE2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/689165?v=4","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false},"body":"Fixes #1036.\r\n\r\nThis PR hooks up the 'reviews' activity panel to live data.\r\n\r\nIt also modifies the `/products/*` and `/products/reviews/*` endpoints, by allowing embedding (https://developer.wordpress.org/rest-api/using-the-rest-api/linking-and-embedding/) of some product fields when `?_embed=1` is present in the query string.\r\n\r\nThis allows us to get info like the product name, permalink, and image without extra requests. It also **matches the behavior** of WP-API Core endpoints. For example on a comment, you can receive some posts field. So this change makes things easier for us, and makes sense from a consistency point of view. (You could already embed some user info via the reviews endpoint).\r\n\r\n### Screenshots\r\n\r\n<img width=\"845\" alt=\"screen shot 2018-12-10 at 1 25 49 pm\" src=\"https://user-images.githubusercontent.com/689165/49759260-2836c100-fc8f-11e8-8072-5cc82bcf976c.png\">\r\n\r\n### Detailed test instructions:\r\n\r\n- Run `phpunit` and make sure all tests pass\r\n- Click reviews on the activity panel\r\n- Verify that your reviews properly load in\r\n","created_at":"2018-12-10T20:35:01Z","updated_at":"2018-12-12T13:35:57Z","closed_at":"2018-12-12T13:35:57Z","merged_at":"2018-12-12T13:35:57Z","merge_commit_sha":"67a77b9d8b19ca1f2764fb8aaf65842036e8ac2c","assignee":{"login":"justinshreve","id":689165,"node_id":"MDQ6VXNlcjY4OTE2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/689165?v=4","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false},"assignees":[{"login":"justinshreve","id":689165,"node_id":"MDQ6VXNlcjY4OTE2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/689165?v=4","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":964152071,"node_id":"MDU6TGFiZWw5NjQxNTIwNzE=","url":"https://api.github.com/repos/woocommerce/wc-admin/labels/Activity%20Panel","name":"Activity Panel","color":"b8cc47","default":false},{"id":1047182702,"node_id":"MDU6TGFiZWwxMDQ3MTgyNzAy","url":"https://api.github.com/repos/woocommerce/wc-admin/labels/REST%20API","name":"REST API","color":"ffafbe","default":false},{"id":921783575,"node_id":"MDU6TGFiZWw5MjE3ODM1NzU=","url":"https://api.github.com/repos/woocommerce/wc-admin/labels/[Status]%20Ready%20to%20Merge","name":"[Status] Ready to Merge","color":"d4fb79","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/woocommerce/wc-admin/pulls/1055/commits","review_comments_url":"https://api.github.com/repos/woocommerce/wc-admin/pulls/1055/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/1055/comments","statuses_url":"https://api.github.com/repos/woocommerce/wc-admin/statuses/47519452c16f3e3429e718e3b2a21a9d24513894","head":{"label":"woocommerce:add/1036-reviews-live-data","ref":"add/1036-reviews-live-data","sha":"47519452c16f3e3429e718e3b2a21a9d24513894","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-12-12T13:10:44Z","pushed_at":"2018-12-12T13:35:57Z","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":6280,"stargazers_count":88,"watchers_count":88,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":153,"license":null,"forks":9,"open_issues":153,"watchers":88,"default_branch":"master"}},"base":{"label":"woocommerce:master","ref":"master","sha":"30755cc0cbfe3a12e77c3e2994da645bc4653c49","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-12-12T13:10:44Z","pushed_at":"2018-12-12T13:35:57Z","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":6280,"stargazers_count":88,"watchers_count":88,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":153,"license":null,"forks":9,"open_issues":153,"watchers":88,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woocommerce/wc-admin/pulls/1055"},"html":{"href":"https://github.com/woocommerce/wc-admin/pull/1055"},"issue":{"href":"https://api.github.com/repos/woocommerce/wc-admin/issues/1055"},"comments":{"href":"https://api.github.com/repos/woocommerce/wc-admin/issues/1055/comments"},"review_comments":{"href":"https://api.github.com/repos/woocommerce/wc-admin/pulls/1055/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/1055/commits"},"statuses":{"href":"https://api.github.com/repos/woocommerce/wc-admin/statuses/47519452c16f3e3429e718e3b2a21a9d24513894"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"justinshreve","id":689165,"node_id":"MDQ6VXNlcjY4OTE2NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/689165?v=4","gravatar_id":"","url":"https://api.github.com/users/justinshreve","html_url":"https://github.com/justinshreve","followers_url":"https://api.github.com/users/justinshreve/followers","following_url":"https://api.github.com/users/justinshreve/following{/other_user}","gists_url":"https://api.github.com/users/justinshreve/gists{/gist_id}","starred_url":"https://api.github.com/users/justinshreve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinshreve/subscriptions","organizations_url":"https://api.github.com/users/justinshreve/orgs","repos_url":"https://api.github.com/users/justinshreve/repos","events_url":"https://api.github.com/users/justinshreve/events{/privacy}","received_events_url":"https://api.github.com/users/justinshreve/received_events","type":"User","site_admin":false},"comments":3,"review_comments":6,"maintainer_can_modify":false,"commits":3,"additions":466,"deletions":62,"changed_files":10}}
{"actor":{"display_login":"justinshreve"}}