{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7993","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7993/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7993/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7993/events","html_url":"https://github.com/Automattic/wp-calypso/pull/7993","id":175917342,"number":7993,"title":"Help: Show the help contact closed message when the isClosed flag is set","user":{"login":"omarjackman","id":1854440,"avatar_url":"https://avatars.githubusercontent.com/u/1854440?v=3","gravatar_id":"","url":"https://api.github.com/users/omarjackman","html_url":"https://github.com/omarjackman","followers_url":"https://api.github.com/users/omarjackman/followers","following_url":"https://api.github.com/users/omarjackman/following{/other_user}","gists_url":"https://api.github.com/users/omarjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/omarjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarjackman/subscriptions","organizations_url":"https://api.github.com/users/omarjackman/orgs","repos_url":"https://api.github.com/users/omarjackman/repos","events_url":"https://api.github.com/users/omarjackman/events{/privacy}","received_events_url":"https://api.github.com/users/omarjackman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Support","name":"Support","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"omarjackman","id":1854440,"avatar_url":"https://avatars.githubusercontent.com/u/1854440?v=3","gravatar_id":"","url":"https://api.github.com/users/omarjackman","html_url":"https://github.com/omarjackman","followers_url":"https://api.github.com/users/omarjackman/followers","following_url":"https://api.github.com/users/omarjackman/following{/other_user}","gists_url":"https://api.github.com/users/omarjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/omarjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarjackman/subscriptions","organizations_url":"https://api.github.com/users/omarjackman/orgs","repos_url":"https://api.github.com/users/omarjackman/repos","events_url":"https://api.github.com/users/omarjackman/events{/privacy}","received_events_url":"https://api.github.com/users/omarjackman/received_events","type":"User","site_admin":false},"assignees":[{"login":"omarjackman","id":1854440,"avatar_url":"https://avatars.githubusercontent.com/u/1854440?v=3","gravatar_id":"","url":"https://api.github.com/users/omarjackman","html_url":"https://github.com/omarjackman","followers_url":"https://api.github.com/users/omarjackman/followers","following_url":"https://api.github.com/users/omarjackman/following{/other_user}","gists_url":"https://api.github.com/users/omarjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/omarjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarjackman/subscriptions","organizations_url":"https://api.github.com/users/omarjackman/orgs","repos_url":"https://api.github.com/users/omarjackman/repos","events_url":"https://api.github.com/users/omarjackman/events{/privacy}","received_events_url":"https://api.github.com/users/omarjackman/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-09-09T03:10:41Z","updated_at":"2016-09-09T19:13:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/7993","html_url":"https://github.com/Automattic/wp-calypso/pull/7993","diff_url":"https://github.com/Automattic/wp-calypso/pull/7993.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/7993.patch"},"body":"This pull request adds the `isClosed` flag returned by the olark api endpoint to the redux store and uses it to control the display of the `HelpContactClosed` component added in #7940 \r\n\r\n## How to test\r\n**preliminary steps to simulate turned off support**\r\n1. Sandbox public-api.wordpress.com \r\n2. Add the following code to your sandbox\r\n```php\r\nadd_filter( 'pre_site_option_wpcom_support_status', __return_true );\r\n```\r\n### As a free plan user or aged user\r\n1. Navigate to http://calypso.localhost:3000/help/contact\r\n2. Notice that the \"Limited support week\" message is shown\r\n\r\n![screen shot 2016-09-07 at 3 32 48 pm](https://cloud.githubusercontent.com/assets/1854440/18374516/a466a45e-761b-11e6-9963-5e9c7c906f28.png)\r\n\r\n### As a user with recent purchase (< 30 days)\r\n1. Navigate to http://calypso.localhost:3000/help/contact\r\n2. Notice that the contact form ***is*** displayed. *Note that during the grand meetup, chat will not be staffed and the user will see the email support flavor of the contact form*\r\n\r\n![screen shot 2016-09-08 at 11 32 16 pm](https://cloud.githubusercontent.com/assets/1854440/18374623/8e61485c-761c-11e6-8bde-3218857bf81a.png)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/246010878","html_url":"https://github.com/Automattic/wp-calypso/pull/7993#issuecomment-246010878","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/7993","id":246010878,"user":{"login":"omarjackman","id":1854440,"avatar_url":"https://avatars.githubusercontent.com/u/1854440?v=3","gravatar_id":"","url":"https://api.github.com/users/omarjackman","html_url":"https://github.com/omarjackman","followers_url":"https://api.github.com/users/omarjackman/followers","following_url":"https://api.github.com/users/omarjackman/following{/other_user}","gists_url":"https://api.github.com/users/omarjackman/gists{/gist_id}","starred_url":"https://api.github.com/users/omarjackman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarjackman/subscriptions","organizations_url":"https://api.github.com/users/omarjackman/orgs","repos_url":"https://api.github.com/users/omarjackman/repos","events_url":"https://api.github.com/users/omarjackman/events{/privacy}","received_events_url":"https://api.github.com/users/omarjackman/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T19:13:07Z","updated_at":"2016-09-09T19:13:07Z","body":">  I purchased an upgrade freshly today to make sure I was within the 30 days.\r\n\r\n@dllh that means that `$support_user->is_support_open` isn't doing what you expected and I'll need to add that extra subscription checking stuff back into the API "}}
{"actor":{"display_login":"omarjackman"}}