{"action":"closed","number":4349,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4349","id":64325201,"html_url":"https://github.com/Automattic/wp-calypso/pull/4349","diff_url":"https://github.com/Automattic/wp-calypso/pull/4349.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/4349.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4349","number":4349,"state":"closed","locked":false,"title":"Plans: Fix Javascript error thrown when leaving Plan Overview page","user":{"login":"stephanethomas","id":594356,"avatar_url":"https://avatars.githubusercontent.com/u/594356?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanethomas","html_url":"https://github.com/stephanethomas","followers_url":"https://api.github.com/users/stephanethomas/followers","following_url":"https://api.github.com/users/stephanethomas/following{/other_user}","gists_url":"https://api.github.com/users/stephanethomas/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanethomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanethomas/subscriptions","organizations_url":"https://api.github.com/users/stephanethomas/orgs","repos_url":"https://api.github.com/users/stephanethomas/repos","events_url":"https://api.github.com/users/stephanethomas/events{/privacy}","received_events_url":"https://api.github.com/users/stephanethomas/received_events","type":"User","site_admin":false},"body":"This pull request fixes the following Javascript error that is raised when leaving the `Plan Overview` page for a different section such as [the reader](http://calypso.localhost:3000/) or the [user profile](http://calypso.localhost:3000/me):\r\n\r\n```\r\nUncaught TypeError: Cannot read property 'product_slug' of undefined\r\n```\r\n \r\n![screenshot](https://cloud.githubusercontent.com/assets/594356/14079257/a9fce66c-f4fc-11e5-96ac-d82a75b25199.png)\r\n  \r\n#### Testing instructions\r\n \r\n1. Run `git checkout fix/plans-error` and start your server\r\n2. Execute `localStorage.setItem( 'ABTests', '{\"freeTrials_20160120\":\"offered\"}' )` in your browser's console\r\n3. Open the [`Plans` page](http://calypso.localhost:3000/) and start a free trial\r\n4. Click either `Reader` or the gravatar in the top menu bar\r\n5. Check that no error is thrown in your browser's console\r\n \r\n#### Reviews\r\n \r\n- [x] Code\r\n- [x] Product","created_at":"2016-03-28T14:12:45Z","updated_at":"2016-03-28T17:09:55Z","closed_at":"2016-03-28T17:09:54Z","merged_at":"2016-03-28T17:09:54Z","merge_commit_sha":"71cf9fbf6310145bf8c97a349a38966fe982eb12","assignee":{"login":"stephanethomas","id":594356,"avatar_url":"https://avatars.githubusercontent.com/u/594356?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanethomas","html_url":"https://github.com/stephanethomas","followers_url":"https://api.github.com/users/stephanethomas/followers","following_url":"https://api.github.com/users/stephanethomas/following{/other_user}","gists_url":"https://api.github.com/users/stephanethomas/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanethomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanethomas/subscriptions","organizations_url":"https://api.github.com/users/stephanethomas/orgs","repos_url":"https://api.github.com/users/stephanethomas/repos","events_url":"https://api.github.com/users/stephanethomas/events{/privacy}","received_events_url":"https://api.github.com/users/stephanethomas/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4349/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4349/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/4349/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/556fee05c521941d4b9ada20f9331adf7dbd0ad4","head":{"label":"Automattic:fix/plans-error","ref":"fix/plans-error","sha":"556fee05c521941d4b9ada20f9331adf7dbd0ad4","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2016-03-28T13:51:02Z","pushed_at":"2016-03-28T17:09:54Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":72315,"stargazers_count":7065,"watchers_count":7065,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":836,"mirror_url":null,"open_issues_count":1295,"forks":836,"open_issues":1295,"watchers":7065,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"826a53c01dc6d034261a18309c12086f9231ba83","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2016-03-28T13:51:02Z","pushed_at":"2016-03-28T17:09:54Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":72315,"stargazers_count":7065,"watchers_count":7065,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":836,"mirror_url":null,"open_issues_count":1295,"forks":836,"open_issues":1295,"watchers":7065,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4349"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/4349"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/4349"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/4349/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4349/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/4349/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/556fee05c521941d4b9ada20f9331adf7dbd0ad4"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"stephanethomas","id":594356,"avatar_url":"https://avatars.githubusercontent.com/u/594356?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanethomas","html_url":"https://github.com/stephanethomas","followers_url":"https://api.github.com/users/stephanethomas/followers","following_url":"https://api.github.com/users/stephanethomas/following{/other_user}","gists_url":"https://api.github.com/users/stephanethomas/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanethomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanethomas/subscriptions","organizations_url":"https://api.github.com/users/stephanethomas/orgs","repos_url":"https://api.github.com/users/stephanethomas/repos","events_url":"https://api.github.com/users/stephanethomas/events{/privacy}","received_events_url":"https://api.github.com/users/stephanethomas/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":4,"deletions":0,"changed_files":1}}