{"action":"created","issue":{"url":"https://api.github.com/repos/OpenConceptLab/oclapi/issues/54","labels_url":"https://api.github.com/repos/OpenConceptLab/oclapi/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/OpenConceptLab/oclapi/issues/54/comments","events_url":"https://api.github.com/repos/OpenConceptLab/oclapi/issues/54/events","html_url":"https://github.com/OpenConceptLab/oclapi/issues/54","id":46284922,"number":54,"title":"Import script for mappings integrated into the concept import","user":{"login":"paynejd","id":1189689,"avatar_url":"https://avatars.githubusercontent.com/u/1189689?v=3","gravatar_id":"","url":"https://api.github.com/users/paynejd","html_url":"https://github.com/paynejd","followers_url":"https://api.github.com/users/paynejd/followers","following_url":"https://api.github.com/users/paynejd/following{/other_user}","gists_url":"https://api.github.com/users/paynejd/gists{/gist_id}","starred_url":"https://api.github.com/users/paynejd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paynejd/subscriptions","organizations_url":"https://api.github.com/users/paynejd/orgs","repos_url":"https://api.github.com/users/paynejd/repos","events_url":"https://api.github.com/users/paynejd/events{/privacy}","received_events_url":"https://api.github.com/users/paynejd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenConceptLab/oclapi/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/OpenConceptLab/oclapi/labels/high-priority","name":"high-priority","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"MisterNando","id":1670990,"avatar_url":"https://avatars.githubusercontent.com/u/1670990?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterNando","html_url":"https://github.com/MisterNando","followers_url":"https://api.github.com/users/MisterNando/followers","following_url":"https://api.github.com/users/MisterNando/following{/other_user}","gists_url":"https://api.github.com/users/MisterNando/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterNando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterNando/subscriptions","organizations_url":"https://api.github.com/users/MisterNando/orgs","repos_url":"https://api.github.com/users/MisterNando/repos","events_url":"https://api.github.com/users/MisterNando/events{/privacy}","received_events_url":"https://api.github.com/users/MisterNando/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenConceptLab/oclapi/milestones/5","html_url":"https://github.com/OpenConceptLab/oclapi/milestones/OCL%20API%20February%202015%20Push","labels_url":"https://api.github.com/repos/OpenConceptLab/oclapi/milestones/5/labels","id":932769,"number":5,"title":"OCL API February 2015 Push","description":"","creator":{"login":"paynejd","id":1189689,"avatar_url":"https://avatars.githubusercontent.com/u/1189689?v=3","gravatar_id":"","url":"https://api.github.com/users/paynejd","html_url":"https://github.com/paynejd","followers_url":"https://api.github.com/users/paynejd/followers","following_url":"https://api.github.com/users/paynejd/following{/other_user}","gists_url":"https://api.github.com/users/paynejd/gists{/gist_id}","starred_url":"https://api.github.com/users/paynejd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paynejd/subscriptions","organizations_url":"https://api.github.com/users/paynejd/orgs","repos_url":"https://api.github.com/users/paynejd/repos","events_url":"https://api.github.com/users/paynejd/events{/privacy}","received_events_url":"https://api.github.com/users/paynejd/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":16,"state":"open","created_at":"2015-01-13T02:38:15Z","updated_at":"2015-03-12T02:26:21Z","due_on":"2015-02-24T05:00:00Z","closed_at":null},"comments":23,"created_at":"2014-10-20T15:11:01Z","updated_at":"2015-03-12T02:26:21Z","closed_at":"2015-03-12T02:26:21Z","body":"Need a method for importing mappings. The approach will be defined when the new mappings model is defined."},"comment":{"url":"https://api.github.com/repos/OpenConceptLab/oclapi/issues/comments/78412952","html_url":"https://github.com/OpenConceptLab/oclapi/issues/54#issuecomment-78412952","issue_url":"https://api.github.com/repos/OpenConceptLab/oclapi/issues/54","id":78412952,"user":{"login":"MisterNando","id":1670990,"avatar_url":"https://avatars.githubusercontent.com/u/1670990?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterNando","html_url":"https://github.com/MisterNando","followers_url":"https://api.github.com/users/MisterNando/followers","following_url":"https://api.github.com/users/MisterNando/following{/other_user}","gists_url":"https://api.github.com/users/MisterNando/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterNando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterNando/subscriptions","organizations_url":"https://api.github.com/users/MisterNando/orgs","repos_url":"https://api.github.com/users/MisterNando/repos","events_url":"https://api.github.com/users/MisterNando/events{/privacy}","received_events_url":"https://api.github.com/users/MisterNando/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T02:26:21Z","updated_at":"2015-03-12T02:26:21Z","body":"It ran successfully! ...almost.  In 20 instances, it failed due to:\r\n\r\n```Could not persist new mapping due to {'__all__': [u'Cannot map concept to itself.']}```\r\n\r\nBut the other 137 succeeded.  After that, I rebuilt the Solr index, and now you can see all the mappings at: http://api.dev.openconceptlab.com/mappings/.\r\n\r\nOptimistically marking this \"Closed\"."}}