{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/18509","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/18509/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/18509/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/18509/events","html_url":"https://github.com/Automattic/wp-calypso/pull/18509","id":262567428,"number":18509,"title":"Store Promotions: \"Applies To\" products/categories","user":{"login":"coderkevin","id":945228,"avatar_url":"https://avatars2.githubusercontent.com/u/945228?v=4","gravatar_id":"","url":"https://api.github.com/users/coderkevin","html_url":"https://github.com/coderkevin","followers_url":"https://api.github.com/users/coderkevin/followers","following_url":"https://api.github.com/users/coderkevin/following{/other_user}","gists_url":"https://api.github.com/users/coderkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderkevin/subscriptions","organizations_url":"https://api.github.com/users/coderkevin/orgs","repos_url":"https://api.github.com/users/coderkevin/repos","events_url":"https://api.github.com/users/coderkevin/events{/privacy}","received_events_url":"https://api.github.com/users/coderkevin/received_events","type":"User","site_admin":false},"labels":[{"id":545515130,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Store","name":"Store","color":"96588a","default":false},{"id":285010017,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20In%20Progress","name":"[Status] In Progress","color":"207de5","default":false}],"state":"open","locked":false,"assignee":{"login":"coderkevin","id":945228,"avatar_url":"https://avatars2.githubusercontent.com/u/945228?v=4","gravatar_id":"","url":"https://api.github.com/users/coderkevin","html_url":"https://github.com/coderkevin","followers_url":"https://api.github.com/users/coderkevin/followers","following_url":"https://api.github.com/users/coderkevin/following{/other_user}","gists_url":"https://api.github.com/users/coderkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderkevin/subscriptions","organizations_url":"https://api.github.com/users/coderkevin/orgs","repos_url":"https://api.github.com/users/coderkevin/repos","events_url":"https://api.github.com/users/coderkevin/events{/privacy}","received_events_url":"https://api.github.com/users/coderkevin/received_events","type":"User","site_admin":false},"assignees":[{"login":"coderkevin","id":945228,"avatar_url":"https://avatars2.githubusercontent.com/u/945228?v=4","gravatar_id":"","url":"https://api.github.com/users/coderkevin","html_url":"https://github.com/coderkevin","followers_url":"https://api.github.com/users/coderkevin/followers","following_url":"https://api.github.com/users/coderkevin/following{/other_user}","gists_url":"https://api.github.com/users/coderkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderkevin/subscriptions","organizations_url":"https://api.github.com/users/coderkevin/orgs","repos_url":"https://api.github.com/users/coderkevin/repos","events_url":"https://api.github.com/users/coderkevin/events{/privacy}","received_events_url":"https://api.github.com/users/coderkevin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-10-03T20:06:00Z","updated_at":"2017-10-12T13:54:25Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/18509","html_url":"https://github.com/Automattic/wp-calypso/pull/18509","diff_url":"https://github.com/Automattic/wp-calypso/pull/18509.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/18509.patch"},"body":"This adds support for a promotion to apply to any number of products, or\r\nany number of categories.\r\n\r\nTo Test:\r\n1. `npm start`\r\n2. Visit `http://calypso.localhost:3000/store/promotion/<site url>`\r\n3. Select \"Coupon\"\r\n4. Select Applies to \"Products\"\r\n5. Click the checkboxes on several products.\r\n6. Select Applies to \"Product Categories\"\r\n7. Click checkboxes on categories.\r\n8. Select Applies to \"Products\"\r\n9. Observe that the previously checked boxes have been cleared.\r\n\r\n(Note: only All products is supported in this PR.)\r\n(This also will require further styling for the checkboxes as well, but functionality is working in this PR)\r\n\r\n![new_promotion_ _coderkevin_ _wordpress_com](https://user-images.githubusercontent.com/945228/31480005-d945bea4-aee0-11e7-9e15-ac4350b9910b.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/336144352","html_url":"https://github.com/Automattic/wp-calypso/pull/18509#issuecomment-336144352","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/18509","id":336144352,"user":{"login":"coderkevin","id":945228,"avatar_url":"https://avatars2.githubusercontent.com/u/945228?v=4","gravatar_id":"","url":"https://api.github.com/users/coderkevin","html_url":"https://github.com/coderkevin","followers_url":"https://api.github.com/users/coderkevin/followers","following_url":"https://api.github.com/users/coderkevin/following{/other_user}","gists_url":"https://api.github.com/users/coderkevin/gists{/gist_id}","starred_url":"https://api.github.com/users/coderkevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderkevin/subscriptions","organizations_url":"https://api.github.com/users/coderkevin/orgs","repos_url":"https://api.github.com/users/coderkevin/repos","events_url":"https://api.github.com/users/coderkevin/events{/privacy}","received_events_url":"https://api.github.com/users/coderkevin/received_events","type":"User","site_admin":false},"created_at":"2017-10-12T13:54:25Z","updated_at":"2017-10-12T13:54:25Z","author_association":"CONTRIBUTOR","body":"I'm going to add some styling changes here for the \"Applies To\" component. Seems a good place to do it."}}
{"actor":{"display_login":"coderkevin"}}