{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14762","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14762/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14762/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14762/events","html_url":"https://github.com/Automattic/wp-calypso/pull/14762","id":233594001,"number":14762,"title":"Activity Logs: Activate/Deactivate actions and http handlers","user":{"login":"seear","id":7767559,"avatar_url":"https://avatars0.githubusercontent.com/u/7767559?v=3","gravatar_id":"","url":"https://api.github.com/users/seear","html_url":"https://github.com/seear","followers_url":"https://api.github.com/users/seear/followers","following_url":"https://api.github.com/users/seear/following{/other_user}","gists_url":"https://api.github.com/users/seear/gists{/gist_id}","starred_url":"https://api.github.com/users/seear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seear/subscriptions","organizations_url":"https://api.github.com/users/seear/orgs","repos_url":"https://api.github.com/users/seear/repos","events_url":"https://api.github.com/users/seear/events{/privacy}","received_events_url":"https://api.github.com/users/seear/received_events","type":"User","site_admin":false},"labels":[{"id":611874987,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Jetpack%20Activity%20Log","name":"Jetpack Activity Log","color":"006b75","default":false},{"id":542883719,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Size]%20XL","name":"[Size] XL","color":"390036","default":false},{"id":285010018,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04","default":false},{"id":559313069,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Tests]%20Includes%20Tests","name":"[Tests] Includes Tests","color":"5ae8a3","default":false}],"state":"open","locked":false,"assignee":{"login":"seear","id":7767559,"avatar_url":"https://avatars0.githubusercontent.com/u/7767559?v=3","gravatar_id":"","url":"https://api.github.com/users/seear","html_url":"https://github.com/seear","followers_url":"https://api.github.com/users/seear/followers","following_url":"https://api.github.com/users/seear/following{/other_user}","gists_url":"https://api.github.com/users/seear/gists{/gist_id}","starred_url":"https://api.github.com/users/seear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seear/subscriptions","organizations_url":"https://api.github.com/users/seear/orgs","repos_url":"https://api.github.com/users/seear/repos","events_url":"https://api.github.com/users/seear/events{/privacy}","received_events_url":"https://api.github.com/users/seear/received_events","type":"User","site_admin":false},"assignees":[{"login":"seear","id":7767559,"avatar_url":"https://avatars0.githubusercontent.com/u/7767559?v=3","gravatar_id":"","url":"https://api.github.com/users/seear","html_url":"https://github.com/seear","followers_url":"https://api.github.com/users/seear/followers","following_url":"https://api.github.com/users/seear/following{/other_user}","gists_url":"https://api.github.com/users/seear/gists{/gist_id}","starred_url":"https://api.github.com/users/seear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seear/subscriptions","organizations_url":"https://api.github.com/users/seear/orgs","repos_url":"https://api.github.com/users/seear/repos","events_url":"https://api.github.com/users/seear/events{/privacy}","received_events_url":"https://api.github.com/users/seear/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-06-05T13:49:37Z","updated_at":"2017-06-06T12:22:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/14762","html_url":"https://github.com/Automattic/wp-calypso/pull/14762","diff_url":"https://github.com/Automattic/wp-calypso/pull/14762.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/14762.patch"},"body":"Adds rewind activate/deactivate actions and http middleware.\r\n\r\nPart of splitting PR #10862 into merge-size chunks. Follows on from rewind status actions in #14660.\r\n\r\nThis PR sticks closely to the original #10862, keeping the `_SUCCESS` and `_FAILURE` actions so that we can show UI feedback on the toggle button whilst the requests are in-flight.\r\n\r\n\r\n**To Test**\r\n* PR contains unit tests\r\n* Real network requests can be fired using following console commands:\r\n```\r\ndispatch( { type: 'REWIND_ACTIVATE_REQUEST', siteId: '{site}' } )\r\ndispatch( { type: 'REWIND_DEACTIVATE_REQUEST', siteId: '{site}' } )\r\n```\r\n*Expected Results*\r\n* Use a jetpack site with vaultpress for successful responses. Note that the `use_rewind` field in the status response should toggle on and off after activate/deactivate. To get the status, use:\r\n```dispatch( { type: 'REWIND_STATUS_REQUEST', siteId: '{site}' } )```\r\n* When using a non-vaultpress site, an error notice should display on activate/deactivate\r\n<img width=\"564\" alt=\"screen shot 2017-06-06 at 11 53 25\" src=\"https://cloud.githubusercontent.com/assets/7767559/26825926/cd8b70f4-4aae-11e7-9bd4-64a61eef1dd3.png\">\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/306469460","html_url":"https://github.com/Automattic/wp-calypso/pull/14762#issuecomment-306469460","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/14762","id":306469460,"user":{"login":"seear","id":7767559,"avatar_url":"https://avatars0.githubusercontent.com/u/7767559?v=3","gravatar_id":"","url":"https://api.github.com/users/seear","html_url":"https://github.com/seear","followers_url":"https://api.github.com/users/seear/followers","following_url":"https://api.github.com/users/seear/following{/other_user}","gists_url":"https://api.github.com/users/seear/gists{/gist_id}","starred_url":"https://api.github.com/users/seear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seear/subscriptions","organizations_url":"https://api.github.com/users/seear/orgs","repos_url":"https://api.github.com/users/seear/repos","events_url":"https://api.github.com/users/seear/events{/privacy}","received_events_url":"https://api.github.com/users/seear/received_events","type":"User","site_admin":false},"created_at":"2017-06-06T12:22:14Z","updated_at":"2017-06-06T12:22:14Z","body":"> I'm not seeing network requests fired in my console, any idea why?\r\n\r\nAre you looking in the _Network_ tab?\r\n"}}
{"actor":{"display_login":"seear"}}