Summary
Adds the ability to configure custom (granular) deletion policies for posts for specific teams and/or channels. When the daily retention job runs it selectively deletes posts by age based on the configuration.
...
Updates to the global retention policy continues to be managed via the config APIs.
TBD: Does setting EnableMessageDeletion
or EnableFileDeletion
to false
disable all of the policies?
...
Retention Policies
POST /api/v4/retention_policies
create a new retention policy.
...
Column name | Description |
---|---|
| varchar, the RetentionPolicies.Id foreign key |
| varchar, the Channels.Id foreign key |
TBD: Does ChannelId
need to be indexed?
RetentionPoliciesTeams
table
Column name | Description |
---|---|
| varchar, the RetentionPolicies.Id foreign key |
| varchar, the Teams.Id foreign key |
TBD: Does TeamId
need to be indexed?
Model
Rename
DataRetentionPolicy
toGlobalDataRetentionPolicy
Add
RetentionPolicy
Add
RetentionPolicyChannel
Add
RetentionPolicyTeam
...