mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-11003: Global Relay Export Refactor (#9136)
This commit is contained in:
@@ -44,15 +44,25 @@ var ActianceExportCmd = &cobra.Command{
|
||||
RunE: buildExportCmdF("actiance"),
|
||||
}
|
||||
|
||||
var GlobalRelayExportCmd = &cobra.Command{
|
||||
Use: "global-relay",
|
||||
Short: "Export data from Mattermost in Global Relay format",
|
||||
Long: "Export data from Mattermost in Global Relay format",
|
||||
Example: "export global-relay --exportFrom=12345",
|
||||
RunE: buildExportCmdF("globalrelay"),
|
||||
}
|
||||
|
||||
func init() {
|
||||
ScheduleExportCmd.Flags().String("format", "actiance", "The format to export data")
|
||||
ScheduleExportCmd.Flags().Int64("exportFrom", -1, "The timestamp of the earliest post to export, expressed in seconds since the unix epoch.")
|
||||
ScheduleExportCmd.Flags().Int("timeoutSeconds", -1, "The maximum number of seconds to wait for the job to complete before timing out.")
|
||||
CsvExportCmd.Flags().Int64("exportFrom", -1, "The timestamp of the earliest post to export, expressed in seconds since the unix epoch.")
|
||||
ActianceExportCmd.Flags().Int64("exportFrom", -1, "The timestamp of the earliest post to export, expressed in seconds since the unix epoch.")
|
||||
GlobalRelayExportCmd.Flags().Int64("exportFrom", -1, "The timestamp of the earliest post to export, expressed in seconds since the unix epoch.")
|
||||
MessageExportCmd.AddCommand(ScheduleExportCmd)
|
||||
MessageExportCmd.AddCommand(CsvExportCmd)
|
||||
MessageExportCmd.AddCommand(ActianceExportCmd)
|
||||
MessageExportCmd.AddCommand(GlobalRelayExportCmd)
|
||||
RootCmd.AddCommand(MessageExportCmd)
|
||||
}
|
||||
|
||||
|
||||
44
i18n/en.json
44
i18n/en.json
@@ -3358,6 +3358,50 @@
|
||||
"id": "ent.ldap.validate_filter.app_error",
|
||||
"translation": "Invalid AD/LDAP Filter"
|
||||
},
|
||||
{
|
||||
"id": "ent.compliance.global_relay.open_temporary_file.appError",
|
||||
"translation": "Unable to open the temporary export file."
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay.create_file_in_zip.app_error",
|
||||
"translation": "Unable to create the eml file."
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay_export.deliver.close.app_error",
|
||||
"translation": "Unable to deliver the email to Global Relay."
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay_export.deliver.from_address.app_error",
|
||||
"translation": "Unable to set the email From address."
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay_export.deliver.msg.app_error",
|
||||
"translation": "Unable to set the email message."
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay_export.deliver.msg_data.app_error",
|
||||
"translation": "Unable to write the email message."
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay_export.deliver.parse_mail.app_error",
|
||||
"translation": "Unable to read the email information."
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay_export.deliver.to_address.app_error",
|
||||
"translation": "Unable to set the email To address."
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay_export.deliver.unable_to_get_file_info.app_error",
|
||||
"translation": "Unable to get the information of the export temporary file"
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay_export.deliver.unable_to_open_email_file.app_error",
|
||||
"translation": "Unable to get the an email from the temporary file"
|
||||
},
|
||||
{
|
||||
"id": "ent.message_export.global_relay_export.deliver.unable_to_open_zip_file_data.app_error",
|
||||
"translation": "Unable to open the export temporary file"
|
||||
},
|
||||
{
|
||||
"id": "ent.mfa.activate.authenticate.app_error",
|
||||
"translation": "Error attempting to authenticate MFA token"
|
||||
|
||||
Reference in New Issue
Block a user