Open matmaxgeds opened 4 years ago
After studying the Implementation of this feature, I am listing the steps below for confirmation:
@raashidahmad this sounds good - it would be sensible if the 7 day period applied to all the cases we have where a management user is notified if another user has not taken action e.g. joining a project, deleting a project, approving a user etc - I wonder why we have not come onto this issue before - so maybe it would be best to add the column to the notifications table e.g. 'initial trigger date' rather than needing it on all the different tables?
@matmaxgeds Thanks for your sharing you ideas. Agree with your thoughts on managing days for notifications through a management page. However, we cannot keep the date for all the cases in notifications table. The reason for these are:
@raashidahmad understood - if we are also not allowing configuration of the delay anywhere else, we should also not do it here
The stranger part is that I got an email about it. An email should come at the point where there is a notification, not before. This suggests that the email system is running on a different logic to the notifications?
The conditions (business rules) in the code says this:
Edge case:- If a project has only funder or implementer and not other organization is involved or if there are organizations involved but only of them is registered who actually initiated the request. Then the notification might appear to manager users after 7 days.
No, this is not the edge case. I thought over it and below I have given the reasons. The easy at this stage was to forward Project deletion requests to manager users straightaway. The edge case needs lot of query calculations while showing the notifications count. For example:
Similarly, same to check while sending email for project deletion request.
We can discuss it in the upcoming meeting.
Solution