{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1167","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1167/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1167/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1167/events","html_url":"https://github.com/Automattic/wp-calypso/pull/1167","id":119834636,"number":1167,"title":"Site settings: only update clean fields with updated poll data","user":{"login":"gwwar","id":1270189,"avatar_url":"https://avatars.githubusercontent.com/u/1270189?v=3","gravatar_id":"","url":"https://api.github.com/users/gwwar","html_url":"https://github.com/gwwar","followers_url":"https://api.github.com/users/gwwar/followers","following_url":"https://api.github.com/users/gwwar/following{/other_user}","gists_url":"https://api.github.com/users/gwwar/gists{/gist_id}","starred_url":"https://api.github.com/users/gwwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwwar/subscriptions","organizations_url":"https://api.github.com/users/gwwar/orgs","repos_url":"https://api.github.com/users/gwwar/repos","events_url":"https://api.github.com/users/gwwar/events{/privacy}","received_events_url":"https://api.github.com/users/gwwar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Site%20Settings","name":"Site Settings","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":"gwwar","id":1270189,"avatar_url":"https://avatars.githubusercontent.com/u/1270189?v=3","gravatar_id":"","url":"https://api.github.com/users/gwwar","html_url":"https://github.com/gwwar","followers_url":"https://api.github.com/users/gwwar/followers","following_url":"https://api.github.com/users/gwwar/following{/other_user}","gists_url":"https://api.github.com/users/gwwar/gists{/gist_id}","starred_url":"https://api.github.com/users/gwwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwwar/subscriptions","organizations_url":"https://api.github.com/users/gwwar/orgs","repos_url":"https://api.github.com/users/gwwar/repos","events_url":"https://api.github.com/users/gwwar/events{/privacy}","received_events_url":"https://api.github.com/users/gwwar/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/20","html_url":"https://github.com/Automattic/wp-calypso/milestones/Core:%20Iteration%2017","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/20/labels","id":1420284,"number":20,"title":"Core: Iteration 17","description":"","creator":{"login":"hoverduck","id":7233112,"avatar_url":"https://avatars.githubusercontent.com/u/7233112?v=3","gravatar_id":"","url":"https://api.github.com/users/hoverduck","html_url":"https://github.com/hoverduck","followers_url":"https://api.github.com/users/hoverduck/followers","following_url":"https://api.github.com/users/hoverduck/following{/other_user}","gists_url":"https://api.github.com/users/hoverduck/gists{/gist_id}","starred_url":"https://api.github.com/users/hoverduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoverduck/subscriptions","organizations_url":"https://api.github.com/users/hoverduck/orgs","repos_url":"https://api.github.com/users/hoverduck/repos","events_url":"https://api.github.com/users/hoverduck/events{/privacy}","received_events_url":"https://api.github.com/users/hoverduck/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":15,"state":"open","created_at":"2015-11-19T17:10:22Z","updated_at":"2015-12-07T17:43:42Z","due_on":"2015-12-31T06:00:00Z","closed_at":null},"comments":5,"created_at":"2015-12-01T23:43:35Z","updated_at":"2015-12-07T18:19:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/1167","html_url":"https://github.com/Automattic/wp-calypso/pull/1167","diff_url":"https://github.com/Automattic/wp-calypso/pull/1167.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/1167.patch"},"body":"Fixes #43 #40 and #42 where unsaved changes to site settings could be wiped out on rerender. This is triggered by SitesList polling periodically via the /me/sites endpoint. Note that this affects all settings, not just the site tagline.\r\n\r\n## Testing Instructions\r\n1. Navigate to: http://calypso.localhost:3000/settings/\r\n2. Select a site when prompted\r\n3. Update some site settings\r\n4. Wait around 30 seconds for SitesList to update\r\n\r\nExpected: Your unsaved changes are still there.\r\n\r\ncc @hoverduck @rralian \r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/162613387","html_url":"https://github.com/Automattic/wp-calypso/pull/1167#issuecomment-162613387","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1167","id":162613387,"user":{"login":"gwwar","id":1270189,"avatar_url":"https://avatars.githubusercontent.com/u/1270189?v=3","gravatar_id":"","url":"https://api.github.com/users/gwwar","html_url":"https://github.com/gwwar","followers_url":"https://api.github.com/users/gwwar/followers","following_url":"https://api.github.com/users/gwwar/following{/other_user}","gists_url":"https://api.github.com/users/gwwar/gists{/gist_id}","starred_url":"https://api.github.com/users/gwwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwwar/subscriptions","organizations_url":"https://api.github.com/users/gwwar/orgs","repos_url":"https://api.github.com/users/gwwar/repos","events_url":"https://api.github.com/users/gwwar/events{/privacy}","received_events_url":"https://api.github.com/users/gwwar/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T18:19:55Z","updated_at":"2015-12-07T18:19:55Z","body":"> I wonder if this would be a useful module to open source separately and publish via npm?\r\nIt's a pretty good candidate for it. Sounds like we might want to add in some generators to make publishing npm packages easier? Like boilerplate babel config/testing setup."}}