{"action":"created","issue":{"url":"https://api.github.com/repos/fsek/web/issues/105","labels_url":"https://api.github.com/repos/fsek/web/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/fsek/web/issues/105/comments","events_url":"https://api.github.com/repos/fsek/web/issues/105/events","html_url":"https://github.com/fsek/web/issues/105","id":63780876,"number":105,"title":"Confusion between User and Profile","user":{"login":"henrikssn","id":859779,"avatar_url":"https://avatars.githubusercontent.com/u/859779?v=3","gravatar_id":"","url":"https://api.github.com/users/henrikssn","html_url":"https://github.com/henrikssn","followers_url":"https://api.github.com/users/henrikssn/followers","following_url":"https://api.github.com/users/henrikssn/following{/other_user}","gists_url":"https://api.github.com/users/henrikssn/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikssn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikssn/subscriptions","organizations_url":"https://api.github.com/users/henrikssn/orgs","repos_url":"https://api.github.com/users/henrikssn/repos","events_url":"https://api.github.com/users/henrikssn/events{/privacy}","received_events_url":"https://api.github.com/users/henrikssn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fsek/web/labels/issue/feature","name":"issue/feature","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-03-23T17:21:17Z","updated_at":"2015-03-25T13:40:37Z","closed_at":null,"body":"I am very confused regarding these two models. Why do we have both?"},"comment":{"url":"https://api.github.com/repos/fsek/web/issues/comments/86029007","html_url":"https://github.com/fsek/web/issues/105#issuecomment-86029007","issue_url":"https://api.github.com/repos/fsek/web/issues/105","id":86029007,"user":{"login":"henrikssn","id":859779,"avatar_url":"https://avatars.githubusercontent.com/u/859779?v=3","gravatar_id":"","url":"https://api.github.com/users/henrikssn","html_url":"https://github.com/henrikssn","followers_url":"https://api.github.com/users/henrikssn/followers","following_url":"https://api.github.com/users/henrikssn/following{/other_user}","gists_url":"https://api.github.com/users/henrikssn/gists{/gist_id}","starred_url":"https://api.github.com/users/henrikssn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrikssn/subscriptions","organizations_url":"https://api.github.com/users/henrikssn/orgs","repos_url":"https://api.github.com/users/henrikssn/repos","events_url":"https://api.github.com/users/henrikssn/events{/privacy}","received_events_url":"https://api.github.com/users/henrikssn/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T13:40:36Z","updated_at":"2015-03-25T13:40:36Z","body":"Jag anser att de är samma sak och bör sättas ihop till en modell.\r\n\r\n@lham Om det inte finns något tillfälle då man vill ha en User utan profile (eller tvärtom) så ska de vara i samma modell. Annars får vi massa overhead då vi måste kontrollera att varje user har en profile och att varje profile har en user. Vad händer om create_profile failar efter att en user skapats? Troligen massa fel överallt då alla modeller förutsätter att varje user har en profile.\r\n\r\nVill vi trasha vårt inloggningssystem till fördel för LDAP/nått annat i framtiden så gör det inte någonting att det ligger några extra fields i User(/Profile) som vi inte behöver. Dessa kan ju också enkelt tas bort med en migration."}}