{"action":"created","issue":{"url":"https://api.github.com/repos/ushahidi/platform/issues/60","labels_url":"https://api.github.com/repos/ushahidi/platform/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/ushahidi/platform/issues/60/comments","events_url":"https://api.github.com/repos/ushahidi/platform/issues/60/events","html_url":"https://github.com/ushahidi/platform/pull/60","id":15099305,"number":60,"title":"Ushahidi 2.x to 3.x Migration Script","user":{"login":"rjmackay","id":7965,"avatar_url":"https://avatars.githubusercontent.com/u/7965?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2013-06-04T02:27:09Z","updated_at":"2015-12-21T15:20:37Z","closed_at":"2013-10-02T06:37:01Z","pull_request":{"url":"https://api.github.com/repos/ushahidi/platform/pulls/60","html_url":"https://github.com/ushahidi/platform/pull/60","diff_url":"https://github.com/ushahidi/platform/pull/60.diff","patch_url":"https://github.com/ushahidi/platform/pull/60.patch"},"body":"This is the first cut at a 2.x to 3.x migration script. You can import from DB or API.\r\n\r\nTo view task docs:\r\n```./minion --task=ushahidi:import2x --help```\r\n\r\nTo import from API\r\n```./minion --task=ushahidi:import2x --source=api --url=http://zombiereports.com```\r\n\r\nTo import from DB\r\n```./minion --task=ushahidi:import2x --source=db --database=ushahidi_zombie --username=ushahidi --password=ushahidi```\r\n\r\n**Things not covered:**\r\n* Can't get unapproved reports via API - this is a 2.x issue\r\n* Can't get incident person data from the API - 2.x issue\r\n* Can't get hidden categories from API - 2.x issue\r\n* We don't have anywhere to store category color, icon or visibility yet\r\n* Not importing users - this code would be best built with the users API #17\r\n* Not importing custom fields or data yet - I'd rather just spin this out to another task to build later.\r\n* Can't import photos - no way to handle media yet #53\r\n* Not importing incident person data from DB - need to figure out where to store it. Related #54\r\n\r\n**Testing**\r\nI'm struggling to figure out how to test this. I can write some behat magic to run the migration script but it would rely on external factors: 1. external 2.x db or 2. external 2.x api\r\nWhich would mean it failing anytime those weren't set up. Any ideas?\r\n\r\n**Tasks**\r\n- [x] Import from api\r\n- [x] Import from database\r\n- [x] Import functional tests\r\n- [ ] Unit test import functions\r\n- [x] Better handling of errors when creating form"},"comment":{"url":"https://api.github.com/repos/ushahidi/platform/issues/comments/166328317","html_url":"https://github.com/ushahidi/platform/pull/60#issuecomment-166328317","issue_url":"https://api.github.com/repos/ushahidi/platform/issues/60","id":166328317,"user":{"login":"alexhalbi","id":5500720,"avatar_url":"https://avatars.githubusercontent.com/u/5500720?v=3","gravatar_id":"","url":"https://api.github.com/users/alexhalbi","html_url":"https://github.com/alexhalbi","followers_url":"https://api.github.com/users/alexhalbi/followers","following_url":"https://api.github.com/users/alexhalbi/following{/other_user}","gists_url":"https://api.github.com/users/alexhalbi/gists{/gist_id}","starred_url":"https://api.github.com/users/alexhalbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexhalbi/subscriptions","organizations_url":"https://api.github.com/users/alexhalbi/orgs","repos_url":"https://api.github.com/users/alexhalbi/repos","events_url":"https://api.github.com/users/alexhalbi/events{/privacy}","received_events_url":"https://api.github.com/users/alexhalbi/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T15:20:37Z","updated_at":"2015-12-21T15:20:37Z","body":"I only get the \"Please enable the Minion module for CLI support.\".error when starting this on Windows with: \r\nC:\\xampp\\htdocs\\ushahidi-platform>php httpdocs\\index.php --uri=minion\r\nPlease enable the Minion module for CLI support."}}