{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/OSF-Offline/issues/125","labels_url":"https://api.github.com/repos/CenterForOpenScience/OSF-Offline/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/OSF-Offline/issues/125/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/OSF-Offline/issues/125/events","html_url":"https://github.com/CenterForOpenScience/OSF-Offline/pull/125","id":126028852,"number":125,"title":"Feature/log out","user":{"login":"chennan47","id":4974056,"avatar_url":"https://avatars.githubusercontent.com/u/4974056?v=3","gravatar_id":"","url":"https://api.github.com/users/chennan47","html_url":"https://github.com/chennan47","followers_url":"https://api.github.com/users/chennan47/followers","following_url":"https://api.github.com/users/chennan47/following{/other_user}","gists_url":"https://api.github.com/users/chennan47/gists{/gist_id}","starred_url":"https://api.github.com/users/chennan47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chennan47/subscriptions","organizations_url":"https://api.github.com/users/chennan47/orgs","repos_url":"https://api.github.com/users/chennan47/repos","events_url":"https://api.github.com/users/chennan47/events{/privacy}","received_events_url":"https://api.github.com/users/chennan47/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-11T20:24:11Z","updated_at":"2016-01-13T14:31:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/OSF-Offline/pulls/125","html_url":"https://github.com/CenterForOpenScience/OSF-Offline/pull/125","diff_url":"https://github.com/CenterForOpenScience/OSF-Offline/pull/125.diff","patch_url":"https://github.com/CenterForOpenScience/OSF-Offline/pull/125.patch"},"body":"<b>Purpose</b>\r\nFix the problem that log out button doesn't work properly.\r\nhttps://openscience.atlassian.net/browse/OFF-66\r\nhttps://openscience.atlassian.net/browse/OFF-65\r\n\r\n<b>Changes</b>\r\nNow the log out button will close the preference window and hide the system tray icon. The system tray icon will appear again after you log in and the close button on the log in window will close the application."},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/OSF-Offline/issues/comments/171308039","html_url":"https://github.com/CenterForOpenScience/OSF-Offline/pull/125#issuecomment-171308039","issue_url":"https://api.github.com/repos/CenterForOpenScience/OSF-Offline/issues/125","id":171308039,"user":{"login":"abought","id":2957073,"avatar_url":"https://avatars.githubusercontent.com/u/2957073?v=3","gravatar_id":"","url":"https://api.github.com/users/abought","html_url":"https://github.com/abought","followers_url":"https://api.github.com/users/abought/followers","following_url":"https://api.github.com/users/abought/following{/other_user}","gists_url":"https://api.github.com/users/abought/gists{/gist_id}","starred_url":"https://api.github.com/users/abought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abought/subscriptions","organizations_url":"https://api.github.com/users/abought/orgs","repos_url":"https://api.github.com/users/abought/repos","events_url":"https://api.github.com/users/abought/events{/privacy}","received_events_url":"https://api.github.com/users/abought/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T14:31:59Z","updated_at":"2016-01-13T14:31:59Z","body":"To help document requirements, here is the manual test sequence I used to make sure the feature worked. Basically: hide menus and don't try to sync when user logged out; when you log in as a different user, make sure that requests are being sent with the right person's credentials. (User B should not have the privileges of User A)\r\n\r\n- [ ] Log in and sync projects as User A. Confirm sync works and log out.\r\n- [ ] Click log out from the settings window. Confirm settings window closes and system tray icon disappears. Log in window appears\r\n- [ ] Log in as User B. Confirm that projects owned by user B (and none from user A) are visible in the sync list. Confirm sync works\r\n- [ ] Log out as User B by clicking \"log out\" on the system tray icon menu\r\n- [ ] Log back in as User A, and confirm that sync works for User A projects (not owned by user B)\r\n- [ ] Restart the program and confirm it is working as user A\r\n- [ ] Click log out from the system tray icon\r\n- [ ] Wait 5+ min to be sure that the program is not trying to sync while logged out\r\n- [ ] Close the program by clicking the close button in the corner of the login screen. Confirm that the program closes (and doesn't crash)\r\n- Run above list on both Windows and Mac"}}