{"action":"created","issue":{"url":"https://api.github.com/repos/goodeggs/node-migrate-mongo/issues/12","labels_url":"https://api.github.com/repos/goodeggs/node-migrate-mongo/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/goodeggs/node-migrate-mongo/issues/12/comments","events_url":"https://api.github.com/repos/goodeggs/node-migrate-mongo/issues/12/events","html_url":"https://github.com/goodeggs/node-migrate-mongo/pull/12","id":107755958,"number":12,"title":"Extract migration logic from data storage logic","user":{"login":"demands","id":443070,"avatar_url":"https://avatars.githubusercontent.com/u/443070?v=3","gravatar_id":"","url":"https://api.github.com/users/demands","html_url":"https://github.com/demands","followers_url":"https://api.github.com/users/demands/followers","following_url":"https://api.github.com/users/demands/following{/other_user}","gists_url":"https://api.github.com/users/demands/gists{/gist_id}","starred_url":"https://api.github.com/users/demands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demands/subscriptions","organizations_url":"https://api.github.com/users/demands/orgs","repos_url":"https://api.github.com/users/demands/repos","events_url":"https://api.github.com/users/demands/events{/privacy}","received_events_url":"https://api.github.com/users/demands/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-22T16:56:02Z","updated_at":"2015-09-22T18:12:07Z","closed_at":"2015-09-22T18:11:59Z","pull_request":{"url":"https://api.github.com/repos/goodeggs/node-migrate-mongo/pulls/12","html_url":"https://github.com/goodeggs/node-migrate-mongo/pull/12","diff_url":"https://github.com/goodeggs/node-migrate-mongo/pull/12.diff","patch_url":"https://github.com/goodeggs/node-migrate-mongo/pull/12.patch"},"body":"It was annoying me that this module and [node-migrate-redis](https://github.com/goodeggs/node-migrate-redis) didn't share code, even though they do pretty much exactly the same thing. The code was just copy-pasted from one module to the other! And this module has been since updated. Hence, the plan:\n\n1. Pull all the shared code out into its own module, I'm thinking [data-migrate](https://www.npmjs.com/package/data-migrate) or something\n2. Require that module in this one and also in node-migrate-redis\n3. ???\n4. Profit (from DRY-er code)"},"comment":{"url":"https://api.github.com/repos/goodeggs/node-migrate-mongo/issues/comments/142368807","html_url":"https://github.com/goodeggs/node-migrate-mongo/pull/12#issuecomment-142368807","issue_url":"https://api.github.com/repos/goodeggs/node-migrate-mongo/issues/12","id":142368807,"user":{"login":"demands","id":443070,"avatar_url":"https://avatars.githubusercontent.com/u/443070?v=3","gravatar_id":"","url":"https://api.github.com/users/demands","html_url":"https://github.com/demands","followers_url":"https://api.github.com/users/demands/followers","following_url":"https://api.github.com/users/demands/following{/other_user}","gists_url":"https://api.github.com/users/demands/gists{/gist_id}","starred_url":"https://api.github.com/users/demands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demands/subscriptions","organizations_url":"https://api.github.com/users/demands/orgs","repos_url":"https://api.github.com/users/demands/repos","events_url":"https://api.github.com/users/demands/events{/privacy}","received_events_url":"https://api.github.com/users/demands/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T18:12:07Z","updated_at":"2015-09-22T18:12:07Z","body":"Thanks!"}}