Notify admins 15 days prior to license expiration
All threads resolved!
All threads resolved!
Compare changes
Files
3+ 1
− 1
@@ -107,7 +107,7 @@ functionality.
Related to #337250 (closed)
As stated in #337250 (closed), the subscription expiration banner was being shown to SM Admins up to a month before the license expiration. However, SM customers aren't able to renew their subscriptions until 15 days prior to expiration (or later). This led to some understandable confusion from customers where the warning didn't align with the call to action.
The agreed solution was to align the admin notification timing with the renewal ability (15 days prior). It was found that the admin and user notification windows is actually set by 2 attributes in the Gitlab::License
object. IOW, the timing was being driven by the license key and not logic in the GitLab codebase. We decided to change this so that GitLab has this notification logic and we will remove the attributes from the Gitlab::License
class as it was unnecessary.
In this MR, the notification method, notify_admins?
, in Gitlab::License
is overridden so that admins are notified only 15 days prior to license expiration. Similarly, the notification method, notify_users?
, is overridden for consistency. This will allow us to remove these methods from Gitlab::License
at some point in the future.
Example of expiring license admin notification
Example of expired license admin notification
I was able to test this by uploading license keys under various conditions. Here's the procedure I followed:
Examples:
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.