{"action":"opened","issue":{"url":"https://api.github.com/repos/otavanopisto/muikku/issues/1006","labels_url":"https://api.github.com/repos/otavanopisto/muikku/issues/1006/labels{/name}","comments_url":"https://api.github.com/repos/otavanopisto/muikku/issues/1006/comments","events_url":"https://api.github.com/repos/otavanopisto/muikku/issues/1006/events","html_url":"https://github.com/otavanopisto/muikku/issues/1006","id":119887634,"number":1006,"title":"DefaultUser change in Pyramus","user":{"login":"anttiviljakainen","id":2852275,"avatar_url":"https://avatars.githubusercontent.com/u/2852275?v=3","gravatar_id":"","url":"https://api.github.com/users/anttiviljakainen","html_url":"https://github.com/anttiviljakainen","followers_url":"https://api.github.com/users/anttiviljakainen/followers","following_url":"https://api.github.com/users/anttiviljakainen/following{/other_user}","gists_url":"https://api.github.com/users/anttiviljakainen/gists{/gist_id}","starred_url":"https://api.github.com/users/anttiviljakainen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anttiviljakainen/subscriptions","organizations_url":"https://api.github.com/users/anttiviljakainen/orgs","repos_url":"https://api.github.com/users/anttiviljakainen/repos","events_url":"https://api.github.com/users/anttiviljakainen/events{/privacy}","received_events_url":"https://api.github.com/users/anttiviljakainen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/otavanopisto/muikku/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/otavanopisto/muikku/milestones/15","html_url":"https://github.com/otavanopisto/muikku/milestones/2015/27","labels_url":"https://api.github.com/repos/otavanopisto/muikku/milestones/15/labels","id":1426751,"number":15,"title":"2015/27","description":"","creator":{"login":"anttileppa","id":1730736,"avatar_url":"https://avatars.githubusercontent.com/u/1730736?v=3","gravatar_id":"","url":"https://api.github.com/users/anttileppa","html_url":"https://github.com/anttileppa","followers_url":"https://api.github.com/users/anttileppa/followers","following_url":"https://api.github.com/users/anttileppa/following{/other_user}","gists_url":"https://api.github.com/users/anttileppa/gists{/gist_id}","starred_url":"https://api.github.com/users/anttileppa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anttileppa/subscriptions","organizations_url":"https://api.github.com/users/anttileppa/orgs","repos_url":"https://api.github.com/users/anttileppa/repos","events_url":"https://api.github.com/users/anttileppa/events{/privacy}","received_events_url":"https://api.github.com/users/anttileppa/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":3,"state":"open","created_at":"2015-11-24T08:36:13Z","updated_at":"2015-12-02T07:57:58Z","due_on":"2015-12-03T22:00:00Z","closed_at":null},"comments":0,"created_at":"2015-12-02T07:57:58Z","updated_at":"2015-12-02T07:57:58Z","closed_at":null,"body":"Reproduction steps:\n1. Have a Student in Pyramus which is synchronized to Muikku\n2. Create a new studyprogramme for the student without updating the defaultuser i.e. let it point to the old studyprogramme.\n3. Add the student to a course with the new studyprogramme, let it sync to Muikku\n4. Change the default user to correct one (the new studyprogramme)\n5. Log in to Muikku with the student and you do not see the course as your own course.\n\nSo in part 4 the synchronization should probably do some magic to fix this issue - or this may be related to the problem with old studyprogrammes not synchronizing to Muikku.\n\nThis can be fixed by triggering update for the coursestudent from Pyramus (f.ex. edit course, edit student on course and just save)"}}