{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15270","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15270/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15270/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15270/events","html_url":"https://github.com/Automattic/wp-calypso/pull/15270","id":237014528,"number":15270,"title":"Work in progress - Show a cart abandonment nudge (notice) to users","user":{"login":"travisw","id":690843,"avatar_url":"https://avatars1.githubusercontent.com/u/690843?v=3","gravatar_id":"","url":"https://api.github.com/users/travisw","html_url":"https://github.com/travisw","followers_url":"https://api.github.com/users/travisw/followers","following_url":"https://api.github.com/users/travisw/following{/other_user}","gists_url":"https://api.github.com/users/travisw/gists{/gist_id}","starred_url":"https://api.github.com/users/travisw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisw/subscriptions","organizations_url":"https://api.github.com/users/travisw/orgs","repos_url":"https://api.github.com/users/travisw/repos","events_url":"https://api.github.com/users/travisw/events{/privacy}","received_events_url":"https://api.github.com/users/travisw/received_events","type":"User","site_admin":false},"labels":[{"id":542899089,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Size]%20M","name":"[Size] M","color":"8d478a","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":"travisw","id":690843,"avatar_url":"https://avatars1.githubusercontent.com/u/690843?v=3","gravatar_id":"","url":"https://api.github.com/users/travisw","html_url":"https://github.com/travisw","followers_url":"https://api.github.com/users/travisw/followers","following_url":"https://api.github.com/users/travisw/following{/other_user}","gists_url":"https://api.github.com/users/travisw/gists{/gist_id}","starred_url":"https://api.github.com/users/travisw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisw/subscriptions","organizations_url":"https://api.github.com/users/travisw/orgs","repos_url":"https://api.github.com/users/travisw/repos","events_url":"https://api.github.com/users/travisw/events{/privacy}","received_events_url":"https://api.github.com/users/travisw/received_events","type":"User","site_admin":false},"assignees":[{"login":"travisw","id":690843,"avatar_url":"https://avatars1.githubusercontent.com/u/690843?v=3","gravatar_id":"","url":"https://api.github.com/users/travisw","html_url":"https://github.com/travisw","followers_url":"https://api.github.com/users/travisw/followers","following_url":"https://api.github.com/users/travisw/following{/other_user}","gists_url":"https://api.github.com/users/travisw/gists{/gist_id}","starred_url":"https://api.github.com/users/travisw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisw/subscriptions","organizations_url":"https://api.github.com/users/travisw/orgs","repos_url":"https://api.github.com/users/travisw/repos","events_url":"https://api.github.com/users/travisw/events{/privacy}","received_events_url":"https://api.github.com/users/travisw/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-06-19T20:29:09Z","updated_at":"2017-06-22T00:33:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/15270","html_url":"https://github.com/Automattic/wp-calypso/pull/15270","diff_url":"https://github.com/Automattic/wp-calypso/pull/15270.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/15270.patch"},"body":"As my first journey into Calypso development I'm trying to show a notice to a user who has an item in their cart older than a certain amount of time. A cart abandonment nudge.\r\n\r\nWhat this PR does (tries to do) is:\r\n* Call the me/shopping-cart/ endpoint to get the cart data (normally polled in other areas of Calypso).\r\n* Check the timestamp (recently added property) of each item in the cart to see if it is older than 10 minutes.\r\n* If so, show a notice to the user. The notice should click through to the checkout page where they can complete their purchase.\r\n\r\nThere's still a bit to do but I'm looking for any feedback on my approach. Currently, `infoNotice()` doesn't work from where it's being called but doesn't show any errors either. Is there a more appropriate place for this?\r\n\r\nAll candid feedback is appreciated. :) \r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/310242424","html_url":"https://github.com/Automattic/wp-calypso/pull/15270#issuecomment-310242424","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/15270","id":310242424,"user":{"login":"travisw","id":690843,"avatar_url":"https://avatars1.githubusercontent.com/u/690843?v=3","gravatar_id":"","url":"https://api.github.com/users/travisw","html_url":"https://github.com/travisw","followers_url":"https://api.github.com/users/travisw/followers","following_url":"https://api.github.com/users/travisw/following{/other_user}","gists_url":"https://api.github.com/users/travisw/gists{/gist_id}","starred_url":"https://api.github.com/users/travisw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisw/subscriptions","organizations_url":"https://api.github.com/users/travisw/orgs","repos_url":"https://api.github.com/users/travisw/repos","events_url":"https://api.github.com/users/travisw/events{/privacy}","received_events_url":"https://api.github.com/users/travisw/received_events","type":"User","site_admin":false},"created_at":"2017-06-22T00:33:41Z","updated_at":"2017-06-22T00:33:41Z","body":"Thank @gwwar \r\n> If we don't have one already I think it might make more sense to do this as an email job. Since we can also ping folks who might rarely visit.\r\n\r\nI agree that email does make a lot of sense for this and that email does actually already exist.\r\nHere's some background on the different channels being explored.\r\nhttps://marketingscratchpad.wordpress.com/2017/04/03/cart-abandoner-remarketing-channels/\r\n\r\n"}}
{"actor":{"display_login":"travisw"}}