{"action":"created","issue":{"url":"https://api.github.com/repos/HabitRPG/habitica/issues/8272","repository_url":"https://api.github.com/repos/HabitRPG/habitica","labels_url":"https://api.github.com/repos/HabitRPG/habitica/issues/8272/labels{/name}","comments_url":"https://api.github.com/repos/HabitRPG/habitica/issues/8272/comments","events_url":"https://api.github.com/repos/HabitRPG/habitica/issues/8272/events","html_url":"https://github.com/HabitRPG/habitica/pull/8272","id":194715711,"number":8272,"title":"Adding new user.addNotification method with Mongodb Update","user":{"login":"Hus274","id":17734753,"avatar_url":"https://avatars.githubusercontent.com/u/17734753?v=3","gravatar_id":"","url":"https://api.github.com/users/Hus274","html_url":"https://github.com/Hus274","followers_url":"https://api.github.com/users/Hus274/followers","following_url":"https://api.github.com/users/Hus274/following{/other_user}","gists_url":"https://api.github.com/users/Hus274/gists{/gist_id}","starred_url":"https://api.github.com/users/Hus274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hus274/subscriptions","organizations_url":"https://api.github.com/users/Hus274/orgs","repos_url":"https://api.github.com/users/Hus274/repos","events_url":"https://api.github.com/users/Hus274/events{/privacy}","received_events_url":"https://api.github.com/users/Hus274/received_events","type":"User","site_admin":false},"labels":[{"id":192741463,"url":"https://api.github.com/repos/HabitRPG/habitica/labels/status:%20pr:%20ready%20for%20review","name":"status: pr: ready for review","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-09T22:47:04Z","updated_at":"2016-12-14T13:47:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HabitRPG/habitica/pulls/8272","html_url":"https://github.com/HabitRPG/habitica/pull/8272","diff_url":"https://github.com/HabitRPG/habitica/pull/8272.diff","patch_url":"https://github.com/HabitRPG/habitica/pull/8272.patch"},"body":"[//]: # (Note: See http://habitica.wikia.com/wiki/Using_Habitica_Git#Pull_Request for more info)\r\n\r\n[//]: # (Put Issue # or URL here, if applicable. This will automatically close the issue if your PR is merged in)\r\nFixes #8264 \r\n\r\n### Changes\r\n[//]: # (Describe the changes that were made in detail here. Include pictures if necessary)\r\nAdded a new method to the user schema that uses mongo's update functionality to push the notification to the database.\r\n\r\nCurrently the method is called addNotificationUpdate which I don't love. If you have a suggestion let me know. Other things I thought of were \r\n* addNotificationAndSave\r\n* pushNewNotification\r\n* updateNotificationsWithNew\r\n\r\nLet me know what you think.\r\n\r\n[//]: # (Put User ID in here - found in Settings -> API)\r\n\r\n----\r\nUUID: 2a4d30ee-4833-420e-be7c-ad6a6e261c5f\r\n"},"comment":{"url":"https://api.github.com/repos/HabitRPG/habitica/issues/comments/267037733","html_url":"https://github.com/HabitRPG/habitica/pull/8272#issuecomment-267037733","issue_url":"https://api.github.com/repos/HabitRPG/habitica/issues/8272","id":267037733,"user":{"login":"paglias","id":589911,"avatar_url":"https://avatars.githubusercontent.com/u/589911?v=3","gravatar_id":"","url":"https://api.github.com/users/paglias","html_url":"https://github.com/paglias","followers_url":"https://api.github.com/users/paglias/followers","following_url":"https://api.github.com/users/paglias/following{/other_user}","gists_url":"https://api.github.com/users/paglias/gists{/gist_id}","starred_url":"https://api.github.com/users/paglias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paglias/subscriptions","organizations_url":"https://api.github.com/users/paglias/orgs","repos_url":"https://api.github.com/users/paglias/repos","events_url":"https://api.github.com/users/paglias/events{/privacy}","received_events_url":"https://api.github.com/users/paglias/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T13:47:52Z","updated_at":"2016-12-14T13:47:52Z","body":"@Hus274 just wanted to say that we'll merge this soon. We're trying to debug some issues with notifications and would prefer to fix that before merging new code. "}}
{"actor":{"display_login":"paglias"}}