{"action":"created","issue":{"url":"https://api.github.com/repos/doodlesacademy/doodles/issues/47","repository_url":"https://api.github.com/repos/doodlesacademy/doodles","labels_url":"https://api.github.com/repos/doodlesacademy/doodles/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/doodlesacademy/doodles/issues/47/comments","events_url":"https://api.github.com/repos/doodlesacademy/doodles/issues/47/events","html_url":"https://github.com/doodlesacademy/doodles/issues/47","id":145554793,"number":47,"title":"Discuss merging subscription/user data models","user":{"login":"phantummm","id":2888017,"avatar_url":"https://avatars.githubusercontent.com/u/2888017?v=3","gravatar_id":"","url":"https://api.github.com/users/phantummm","html_url":"https://github.com/phantummm","followers_url":"https://api.github.com/users/phantummm/followers","following_url":"https://api.github.com/users/phantummm/following{/other_user}","gists_url":"https://api.github.com/users/phantummm/gists{/gist_id}","starred_url":"https://api.github.com/users/phantummm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantummm/subscriptions","organizations_url":"https://api.github.com/users/phantummm/orgs","repos_url":"https://api.github.com/users/phantummm/repos","events_url":"https://api.github.com/users/phantummm/events{/privacy}","received_events_url":"https://api.github.com/users/phantummm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/doodlesacademy/doodles/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"phantummm","id":2888017,"avatar_url":"https://avatars.githubusercontent.com/u/2888017?v=3","gravatar_id":"","url":"https://api.github.com/users/phantummm","html_url":"https://github.com/phantummm","followers_url":"https://api.github.com/users/phantummm/followers","following_url":"https://api.github.com/users/phantummm/following{/other_user}","gists_url":"https://api.github.com/users/phantummm/gists{/gist_id}","starred_url":"https://api.github.com/users/phantummm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantummm/subscriptions","organizations_url":"https://api.github.com/users/phantummm/orgs","repos_url":"https://api.github.com/users/phantummm/repos","events_url":"https://api.github.com/users/phantummm/events{/privacy}","received_events_url":"https://api.github.com/users/phantummm/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-04-04T00:11:09Z","updated_at":"2016-04-06T07:06:34Z","closed_at":null,"body":"Might be good to keep track of mailing-list subscriptions on our side of things.\r\n\r\ncc @rjsheperd @teaboz "},"comment":{"url":"https://api.github.com/repos/doodlesacademy/doodles/issues/comments/206165863","html_url":"https://github.com/doodlesacademy/doodles/issues/47#issuecomment-206165863","issue_url":"https://api.github.com/repos/doodlesacademy/doodles/issues/47","id":206165863,"user":{"login":"phantummm","id":2888017,"avatar_url":"https://avatars.githubusercontent.com/u/2888017?v=3","gravatar_id":"","url":"https://api.github.com/users/phantummm","html_url":"https://github.com/phantummm","followers_url":"https://api.github.com/users/phantummm/followers","following_url":"https://api.github.com/users/phantummm/following{/other_user}","gists_url":"https://api.github.com/users/phantummm/gists{/gist_id}","starred_url":"https://api.github.com/users/phantummm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantummm/subscriptions","organizations_url":"https://api.github.com/users/phantummm/orgs","repos_url":"https://api.github.com/users/phantummm/repos","events_url":"https://api.github.com/users/phantummm/events{/privacy}","received_events_url":"https://api.github.com/users/phantummm/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T07:06:34Z","updated_at":"2016-04-06T07:06:34Z","body":"Ok, so here's how we'll do this:\r\n\r\n* Subscribing to the mailing list will create an instance of the `Subscription` class. Creating this record will also hit the MailChimp API and create the subscription there.\r\n* We will keep local records of the \"interests\" registered with MailChimp (data-points like \"location\", \"how are you involved...\", et cetera) as instances of a `SubscriptionOption` class.\r\n* When someone subscribes, we create the `Subscription`, and then send them to an optional form with all the `SubscriptionOption`s. Submitting that form will update the existing `Subscription` locally, and on MailChimp.\r\n* The contact page *will use the same options*. In fact, filling out the contact form and checking the \"subscribe me to the list\" box will really just create a `Subscription` and attendant `SubscriptionOption` selections in one fell swoop. If they don't check the box, then the contact form just emails to @teaboz without creating the `Subscription` record."}}