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
fix custom notification for deleted event #451
Conversation
data=dict(email=participant.email, event_id=event.id, content=content), | ||
data=dict( | ||
email=participant.email, | ||
event_id=event.id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the id, still?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not at the moment, but I think we should keep the ability to fetch the event from the db for sending to query for more information (if it exists)
email=participant.email, | ||
event_id=event.id, | ||
content=content, | ||
event_title=event.title, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must admit this feels like fixing symptoms. There are more occasions in which we will try to fetch objects in Notification sending that have been deleted in the meantime...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well usually you won't confirm people directly before deleting the event, so this will be the case where it happens IMO.
What would be your suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the best solution would be to send Notifications without delay, but that's for another day.
email=participant.email, | ||
event_id=event.id, | ||
content=content, | ||
event_title=event.title, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the best solution would be to send Notifications without delay, but that's for another day.
No description provided.