{"action":"created","issue":{"url":"https://api.github.com/repos/curt-labs/GoAPI/issues/21","labels_url":"https://api.github.com/repos/curt-labs/GoAPI/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/curt-labs/GoAPI/issues/21/comments","events_url":"https://api.github.com/repos/curt-labs/GoAPI/issues/21/events","html_url":"https://github.com/curt-labs/GoAPI/issues/21","id":52158252,"number":21,"title":"Import Cycle","user":{"login":"ninnemana","id":187030,"avatar_url":"https://avatars.githubusercontent.com/u/187030?v=3","gravatar_id":"","url":"https://api.github.com/users/ninnemana","html_url":"https://github.com/ninnemana","followers_url":"https://api.github.com/users/ninnemana/followers","following_url":"https://api.github.com/users/ninnemana/following{/other_user}","gists_url":"https://api.github.com/users/ninnemana/gists{/gist_id}","starred_url":"https://api.github.com/users/ninnemana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninnemana/subscriptions","organizations_url":"https://api.github.com/users/ninnemana/orgs","repos_url":"https://api.github.com/users/ninnemana/repos","events_url":"https://api.github.com/users/ninnemana/events{/privacy}","received_events_url":"https://api.github.com/users/ninnemana/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/curt-labs/GoAPI/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/curt-labs/GoAPI/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/curt-labs/GoAPI/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":40,"created_at":"2014-12-16T19:49:06Z","updated_at":"2015-01-07T21:57:19Z","closed_at":"2015-01-07T21:57:19Z","body":"The apicontext helper has introduced an import cycle:\r\n\r\nmodels/customer -> models/product -> helpers/apicontext -> models/customer\r\n\r\nIn my opinion, the apicontext helper should be abstracted away from the customer object as much as possible. I think the simplest approach is to remove the DataContext completely and map the individual properties rather than a struct. \r\n\r\nI guess if this problem has been created solely for the purpose of mocking data, it's probably being done wrong."},"comment":{"url":"https://api.github.com/repos/curt-labs/GoAPI/issues/comments/69099655","html_url":"https://github.com/curt-labs/GoAPI/issues/21#issuecomment-69099655","issue_url":"https://api.github.com/repos/curt-labs/GoAPI/issues/21","id":69099655,"user":{"login":"DavidVaini","id":2159280,"avatar_url":"https://avatars.githubusercontent.com/u/2159280?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidVaini","html_url":"https://github.com/DavidVaini","followers_url":"https://api.github.com/users/DavidVaini/followers","following_url":"https://api.github.com/users/DavidVaini/following{/other_user}","gists_url":"https://api.github.com/users/DavidVaini/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidVaini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidVaini/subscriptions","organizations_url":"https://api.github.com/users/DavidVaini/orgs","repos_url":"https://api.github.com/users/DavidVaini/repos","events_url":"https://api.github.com/users/DavidVaini/events{/privacy}","received_events_url":"https://api.github.com/users/DavidVaini/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T21:57:19Z","updated_at":"2015-01-07T21:57:19Z","body":"fixed with this:\r\nhttps://github.com/curt-labs/GoAPI/commit/5c8bb2d4e18d084a10db9e66a757fa03a0ad6100\r\nand\r\nhttps://github.com/curt-labs/GoAPI/commit/b39adf07d93fccf1b5b67c7000a6fcce406d4e6b"}}