From 7243aa6751c266ecd342a41cbef390c71a962425 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Fri, 15 Sep 2017 17:53:48 +0100 Subject: PLT-6558: Basic data retention job scheduler/worker implementation. (#7449) * PLT-7639: Batch delete methods for data retention. * PLT-6558: Basic data retention job worker/scheduler implementation. --- model/license.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'model/license.go') diff --git a/model/license.go b/model/license.go index 5126f7c3e..9e25dd882 100644 --- a/model/license.go +++ b/model/license.go @@ -54,6 +54,7 @@ type Features struct { Announcement *bool `json:"announcement"` ThemeManagement *bool `json:"theme_management"` EmailNotificationContents *bool `json:"email_notification_contents"` + DataRetention *bool `json:"data_retention"` // after we enabled more features for webrtc we'll need to control them with this FutureFeatures *bool `json:"future_features"` @@ -74,6 +75,7 @@ func (f *Features) ToMap() map[string]interface{} { "password": *f.PasswordRequirements, "elastic_search": *f.Elasticsearch, "email_notification_contents": *f.EmailNotificationContents, + "data_retention": *f.DataRetention, "future": *f.FutureFeatures, } } @@ -163,6 +165,11 @@ func (f *Features) SetDefaults() { f.EmailNotificationContents = new(bool) *f.EmailNotificationContents = *f.FutureFeatures } + + if f.DataRetention == nil { + f.DataRetention = new(bool) + *f.DataRetention = *f.FutureFeatures + } } func (l *License) IsExpired() bool { -- cgit v1.2.3-1-g7c22