Open dmurphy1 opened 10 years ago
Criteria for pestering: (1) If unavailable and become available is NULL (note: set_unavailable_timestamp will also be NULL if become available is NULL, and vice versa): If they've been unavailable for more than 6 months, and they have not been pestered in 2 months, then pester. (2) If unavailable and become available is set (note: set_unavailable_timestamp will also be set if become available is set, and vice versa): If they become available in more than 7 months from now, and they've been unavailable for more than 6 months, and they have not been pestered in 2 months, then pester. So, for example, a user that sets their availability 13 months in the future will receive one pester email before they automatically become available.
User's whose become available date passes will automatically become available, and they will be notified via email.
Also, need to include a way to test.
Per Randy: "Also, in the default text, make sure the username is included in the subject, which causes the various support requests to sort separately in gmail"
For testing - the problem is that wsuser save will automatically set/update the timestamps for set_available_timestamp, set_unavailable_timestamp, and last_unavailability_pester, making it difficult to test.
Also, become available SHOULD NOT be allowed to be set in the past, so that SHOULD be difficult to test too.
My notes and thoughts regarding local development prior to making a pull request.