-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications are never queued #953
Comments
@jasonmule can you look into this? I haven't tried to reproduce locally yet. |
I tried to reproduced this locally and it's possible that this fails because of the following reasons:
The following commands queue notifications for saved searches: 1 . Find posts from saved searches
2 . Queue notifications
|
When I tried at krcs.ushahidi.io, I checked that I was subscribed to notifications before publishing a post, and made sure that the post had been published (and all post steps completed). The notification was still not sent. |
Thanks @sebm90. We should probably still remind you to add a contact if you don't have one when you subscribe. |
@jasonmule Could you explain what adding a contact involves? Aren't my own contact details (my email, which is already in the system) enough? Does this need to be a different person? |
@rjmackay Did you run |
@sebm90 Could you go to Manage notifications and check that your email contact is turned on to receive notifications? |
@jasonmule I was testing on staging. I haven't tried to reproduce locally yet. I'll do that today.
That might have been my issue.. though I thought I tested both. I definitely enabled notifications in the UI. |
oops that was me not a bot. |
@jasonmule My email contact is turned on and was turned on when I tested notifications: |
Just reproduced the issue locally for myself. |
Looking in the DB. |
Looks like the saved search criteria includes some values which get filtered out by the client, but don't work when used directly on the server. ie. form = 'none' |
@rjmackay When the saved searches were added, was there a contact turned on to receive notifications? Could you clarify the bit about only default sets? |
So the |
SavedSearch console command was using a single SearchData - this meant values from the previous search were left in the state. Updated to use the DataFactory and get a fresh data object each time. Refs #953
Looks like this was dependent on state - filters from previous searches leaked into the next one. |
Expected: messages queued to send
Actual: No messages are ever queued
The text was updated successfully, but these errors were encountered: