{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1038","labels_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1038/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1038/comments","events_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1038/events","html_url":"https://github.com/mozilla/fxa-auth-server/issues/1038","id":104837264,"number":1038,"title":"Publish device-connected events for basket journeybuilder integration","user":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/fxa-auth-server/labels/waffle:progress","name":"waffle:progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"philbooth","id":64367,"avatar_url":"https://avatars.githubusercontent.com/u/64367?v=3","gravatar_id":"","url":"https://api.github.com/users/philbooth","html_url":"https://github.com/philbooth","followers_url":"https://api.github.com/users/philbooth/followers","following_url":"https://api.github.com/users/philbooth/following{/other_user}","gists_url":"https://api.github.com/users/philbooth/gists{/gist_id}","starred_url":"https://api.github.com/users/philbooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philbooth/subscriptions","organizations_url":"https://api.github.com/users/philbooth/orgs","repos_url":"https://api.github.com/users/philbooth/repos","events_url":"https://api.github.com/users/philbooth/events{/privacy}","received_events_url":"https://api.github.com/users/philbooth/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mozilla/fxa-auth-server/milestones/44","html_url":"https://github.com/mozilla/fxa-auth-server/milestones/FxA-44:%20journeybuilder%20events","labels_url":"https://api.github.com/repos/mozilla/fxa-auth-server/milestones/44/labels","id":1289575,"number":44,"title":"FxA-44: journeybuilder events","description":"https://mozilla.aha.io/features/FXA-44","creator":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-09-04T06:09:12Z","updated_at":"2015-09-04T06:46:27Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-09-04T06:29:58Z","updated_at":"2015-09-10T05:10:00Z","closed_at":null,"body":"The engagement team are launching an initiative to try to increase multi-device users, with a targetted email \"journey\" pitching the benefits of the connected experience.  To help drive it their \"journeybuilder\" software needs to receive notification when users connect new devices - both when they connect their first device to know when a user should start the journey, and when they connect their second device to know when they have completed the journey successfully.\r\n\r\nAt the same point where we send out an email saying \"new device syncing with your account\", let's also pop an event in the queue to be sent to basket, which will work the necessary magic to get it into journeybuilder.  This event will need to include whether or not the user has multiple devices connected to their account.\r\n\r\nBasket-side bug, for context:  https://bugzilla.mozilla.org/show_bug.cgi?id=1179878"},"comment":{"url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/comments/139118925","html_url":"https://github.com/mozilla/fxa-auth-server/issues/1038#issuecomment-139118925","issue_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1038","id":139118925,"user":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T05:10:00Z","updated_at":"2015-09-10T05:10:00Z","body":"I'd like to avoid adding a super-special-purpose API for this, but I think a slightly more general \"list the sessiontokens on the account\" API like in [1] would suit our needs well and be more forward-looking for other purposes.  I don't think @dannycoates would be too sad if you wanted to take that one off his plate :-)\r\n\r\n> Although there's no email address in the new payload, should I include it in the login\r\n> (or whatever) event data so that I can perform a similar check in the new handler\r\n\r\nHmmm, good point.  It seems safe to add even if we don't end up needing to use it.\r\n\r\nAlso you just made me realize, I hadn't really shared an overview of the scope of work for this integration with you.  The waffleboad view for this milestone [2] should give you a bit of an idea, if you haven't already seen it.\r\n\r\n[1] https://github.com/mozilla/fxa-auth-db-mysql/issues/98\r\n[2] https://waffle.io/mozilla/fxa?milestone=FxA-44:%20journeybuilder%20events"}}