Open aestoltm opened 2 years ago
Upon further discussion we have decided to revamp the logic on determining who should be notified when a resource warranty or service end date is approaching. We will add a resource attribute called owner_username. That username will be looked up in ColdFront to find their email and then send the email. This completely eliminates anything related to projects, allocations, or PIs, at least for email notifications. We will still display the banner on the project and allocation detail pages for any resources or child resources that have the warranty and/or service date approaching. This way the information is accessible to anyone who is on an allocation for these affected resources.
Fixes #371 : Provided email and webpage message notifications for resource warranty and service attribute expirations based on a user defined set of days similar to how 'EMAIL_ALLOCATION_EXPIRING_NOTIFICATION_DAYS' works. Also, users have the option to disable email notifications with 'EMAIL_RESOURCE_NOTIFICATIONS_ENABLED' (defaulted to off).
Tested: