{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2610","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2610/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2610/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2610/events","html_url":"https://github.com/Automattic/wp-calypso/issues/2610","id":127659030,"number":2610,"title":"Plans: Update `sitePlans` on site switch","user":{"login":"Tug","id":230230,"avatar_url":"https://avatars.githubusercontent.com/u/230230?v=3","gravatar_id":"","url":"https://api.github.com/users/Tug","html_url":"https://github.com/Tug","followers_url":"https://api.github.com/users/Tug/followers","following_url":"https://api.github.com/users/Tug/following{/other_user}","gists_url":"https://api.github.com/users/Tug/gists{/gist_id}","starred_url":"https://api.github.com/users/Tug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tug/subscriptions","organizations_url":"https://api.github.com/users/Tug/orgs","repos_url":"https://api.github.com/users/Tug/repos","events_url":"https://api.github.com/users/Tug/events{/privacy}","received_events_url":"https://api.github.com/users/Tug/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Jetpack","name":"Jetpack","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Plans","name":"Plans","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Bug","name":"[Type] Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-20T11:06:14Z","updated_at":"2016-01-20T12:50:35Z","closed_at":null,"body":"Originally reported by @mikeshelton1503 \r\n> I was testing something locally on my Jetpack test site and saw the trials offered for Jetpack\r\n\r\n![image](https://cloud.githubusercontent.com/assets/230230/12446937/5895b552-bf6d-11e5-98a2-dd55504f374c.png)\r\n\r\nThis is probably linked to the fact that `sitePlans` is currently not updating on site switch in `client/my-sites/plans/main.jsx`\r\nThe component should be modified to update `sitePlans` on site change. `componentWillReceiveProps` won't update on site change since we are using the observer mixin. We should use either `componentWillUpdate` to watch for a new selected site in `sites` or pass it down to a new component. "},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/173195060","html_url":"https://github.com/Automattic/wp-calypso/issues/2610#issuecomment-173195060","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/2610","id":173195060,"user":{"login":"fabianapsimoes","id":1248436,"avatar_url":"https://avatars.githubusercontent.com/u/1248436?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianapsimoes","html_url":"https://github.com/fabianapsimoes","followers_url":"https://api.github.com/users/fabianapsimoes/followers","following_url":"https://api.github.com/users/fabianapsimoes/following{/other_user}","gists_url":"https://api.github.com/users/fabianapsimoes/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianapsimoes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianapsimoes/subscriptions","organizations_url":"https://api.github.com/users/fabianapsimoes/orgs","repos_url":"https://api.github.com/users/fabianapsimoes/repos","events_url":"https://api.github.com/users/fabianapsimoes/events{/privacy}","received_events_url":"https://api.github.com/users/fabianapsimoes/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T12:50:35Z","updated_at":"2016-01-20T12:50:35Z","body":"> Also the bug is not limited to jetpack sites I believe. Since sitePlans is not updating, switching from any site we have a trial on to another site won't update the view (and the other way around). \r\n\r\nJust tested this, and `PlanActions` is re-rendered when we switch between WordPress.com sites. So it seems this is only getting Jetpack sites.\r\n\r\n![domain](https://cloud.githubusercontent.com/assets/1248436/12449322/adab4ffc-bf7c-11e5-87bb-48543fe01ca4.gif)\r\n\r\nIt'd be good to confirm if these users are able to signup for a trial, or are getting an error. \r\n"}}