{"action":"created","issue":{"url":"https://api.github.com/repos/ushahidi/platform/issues/756","labels_url":"https://api.github.com/repos/ushahidi/platform/issues/756/labels{/name}","comments_url":"https://api.github.com/repos/ushahidi/platform/issues/756/comments","events_url":"https://api.github.com/repos/ushahidi/platform/issues/756/events","html_url":"https://github.com/ushahidi/platform/pull/756","id":109991511,"number":756,"title":"Discover and queue posts from Saved Searches","user":{"login":"jasonmule","id":150815,"avatar_url":"https://avatars.githubusercontent.com/u/150815?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonmule","html_url":"https://github.com/jasonmule","followers_url":"https://api.github.com/users/jasonmule/followers","following_url":"https://api.github.com/users/jasonmule/following{/other_user}","gists_url":"https://api.github.com/users/jasonmule/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonmule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonmule/subscriptions","organizations_url":"https://api.github.com/users/jasonmule/orgs","repos_url":"https://api.github.com/users/jasonmule/repos","events_url":"https://api.github.com/users/jasonmule/events{/privacy}","received_events_url":"https://api.github.com/users/jasonmule/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ushahidi/platform/labels/4%20-%20In%20Review","name":"4 - In Review","color":"0082dd"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ushahidi/platform/milestones/8","html_url":"https://github.com/ushahidi/platform/milestones/3.1%20Release","labels_url":"https://api.github.com/repos/ushahidi/platform/milestones/8/labels","id":1267779,"number":8,"title":"3.1 Release","description":"","creator":{"login":"rjmackay","id":7965,"avatar_url":"https://avatars.githubusercontent.com/u/7965?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":17,"state":"open","created_at":"2015-08-23T02:13:57Z","updated_at":"2015-10-28T08:50:43Z","due_on":"2015-10-30T11:00:00Z","closed_at":null},"comments":7,"created_at":"2015-10-06T11:48:50Z","updated_at":"2015-10-28T21:33:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ushahidi/platform/pulls/756","html_url":"https://github.com/ushahidi/platform/pull/756","diff_url":"https://github.com/ushahidi/platform/pull/756.diff","patch_url":"https://github.com/ushahidi/platform/pull/756.patch"},"body":"Discover new posts from saved searches through polling and send out the post count.\r\n\r\nQueue saved searches using:\r\n`bin/ushahidi notification:savedsearch queue`\r\n\r\nQueue collections using:\r\n`bin/ushahidi notification:collection queue`\r\n\r\n<!-- Reviewable:start -->\r\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/ushahidi/platform/756)\r\n<!-- Reviewable:end -->\r\n"},"comment":{"url":"https://api.github.com/repos/ushahidi/platform/issues/comments/151999261","html_url":"https://github.com/ushahidi/platform/pull/756#issuecomment-151999261","issue_url":"https://api.github.com/repos/ushahidi/platform/issues/756","id":151999261,"user":{"login":"jasonmule","id":150815,"avatar_url":"https://avatars.githubusercontent.com/u/150815?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonmule","html_url":"https://github.com/jasonmule","followers_url":"https://api.github.com/users/jasonmule/followers","following_url":"https://api.github.com/users/jasonmule/following{/other_user}","gists_url":"https://api.github.com/users/jasonmule/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonmule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonmule/subscriptions","organizations_url":"https://api.github.com/users/jasonmule/orgs","repos_url":"https://api.github.com/users/jasonmule/repos","events_url":"https://api.github.com/users/jasonmule/events{/privacy}","received_events_url":"https://api.github.com/users/jasonmule/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T21:33:35Z","updated_at":"2015-10-28T21:33:35Z","body":"\n\n\n\n\n\n\n\n<sup>**[application/classes/Ushahidi/Console/Notification/SavedSearch.php, line 97 \\[r1\\]](https://reviewable.io:443/reviews/ushahidi/platform/756#-K0XcvWAMaAtZzSwVhhM-r1-97)** ([raw file](https://github.com/ushahidi/platform/blob/6ddeeefa4d908b55178fa8d4b9dd7e8f0c5e6067/application/classes/Ushahidi/Console/Notification/SavedSearch.php#L97)):</sup>\nAgreed that we should not rely on the post creation time but if we send out the post content instead, do we limit the number of posts sent out in a notification? E.g. what happens when a saved search has 50 new posts.  This is why I was thinking of sending out the count + url to the saved search as the notification message.\n<!-- Reviewable comment -K1kKyH7EzV7mgCClsYW:-1766504530 -->\n\n---\n\n\nComments from the [review on Reviewable.io](https://reviewable.io:443/reviews/ushahidi/platform/756)\n<!-- Sent from Reviewable.io -->\n"}}