mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-2115 adding compliance
This commit is contained in:
@@ -3,10 +3,13 @@
|
||||
|
||||
package einterfaces
|
||||
|
||||
import ()
|
||||
import (
|
||||
"github.com/mattermost/platform/model"
|
||||
)
|
||||
|
||||
type ComplianceInterface interface {
|
||||
StartComplianceDailyJob()
|
||||
RunComplianceJob(jobName string, dir string, filename string, startTime int64, endTime int64) *model.AppError
|
||||
}
|
||||
|
||||
var theComplianceInterface ComplianceInterface
|
||||
|
||||
17
i18n/en.json
17
i18n/en.json
@@ -1776,21 +1776,22 @@
|
||||
"translation": "Failed to read security bulletin details"
|
||||
},
|
||||
{
|
||||
"id": "mattermost.compliance_init.info",
|
||||
"translation": "Compliance running for the first time initializing to yesterday"
|
||||
"id": "ent.compliance.run_started.info",
|
||||
"translation": "Compliance export started for job '{{.JobName}}' at '{{.FilePath}}'"
|
||||
},
|
||||
{
|
||||
"id": "mattermost.compliance_run.info",
|
||||
"translation": "Compliance export started for {{.Time}}"
|
||||
"id": "ent.compliance.run_failed.error",
|
||||
"translation": "Compliance export failed for job '{{.JobName}}' at '{{.FilePath}}'"
|
||||
},
|
||||
{
|
||||
"id": "mattermost.compliance_run_fail.error",
|
||||
"translation": "Compliance export failed for {{.Time}} with err='{{.Error}}'"
|
||||
"id": "ent.compliance.run_limit.warning",
|
||||
"translation": "Compliance export warning for job '{{.JobName}}' too many rows returned truncating to 30,000 at '{{.FilePath}}'"
|
||||
},
|
||||
{
|
||||
"id": "mattermost.compliance_run_finish.info",
|
||||
"translation": "Compliance export finished writing {{.Count}} items to {{.Filename}}"
|
||||
"id": "ent.compliance.run_finished.info",
|
||||
"translation": "Compliance export finished for job '{{.JobName}}' exported {{.Count}} records to '{{.FilePath}}'"
|
||||
},
|
||||
|
||||
{
|
||||
"id": "mattermost.security_checks.debug",
|
||||
"translation": "Checking for security update from Mattermost"
|
||||
|
||||
@@ -1019,7 +1019,7 @@ func (s SqlPostStore) ComplianceExport(startTime int64, endTime int64) StoreChan
|
||||
AND Posts.CreateAt > :StartTime
|
||||
AND Posts.CreateAt <= :EndTime
|
||||
ORDER BY Posts.CreateAt
|
||||
LIMIT 50000`
|
||||
LIMIT 30000`
|
||||
|
||||
var cposts []*model.CompliancePost
|
||||
|
||||
|
||||
Reference in New Issue
Block a user