Skip to content

Commit

Permalink
MM-8810: Add CSV Compliance export (mattermost#1355)
Browse files Browse the repository at this point in the history
  • Loading branch information
jespino committed Jun 22, 2018
1 parent aa0b357 commit 5fd32dc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions components/admin_console/message_export_settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import TextSetting from './text_setting.jsx';
import RadioSetting from './radio_setting';

const exportFormats = {
EXPORT_FORMAT_CSV: 'csv',
EXPORT_FORMAT_ACTIANCE: 'actiance',
EXPORT_FORMAT_GLOBALRELAY: 'globalrelay',
};
Expand Down Expand Up @@ -70,6 +71,7 @@ export default class MessageExportSettings extends AdminSettings {

renderSettings() {
const exportFormatOptions = [
{value: exportFormats.EXPORT_FORMAT_CSV, text: Utils.localizeMessage('admin.complianceExport.exportFormat.csv', 'CSV')},
{value: exportFormats.EXPORT_FORMAT_ACTIANCE, text: Utils.localizeMessage('admin.complianceExport.exportFormat.actiance', 'Actiance XML')},
{value: exportFormats.EXPORT_FORMAT_GLOBALRELAY, text: Utils.localizeMessage('admin.complianceExport.exportFormat.globalrelay', 'GlobalRelay EML')},
];
Expand Down
3 changes: 2 additions & 1 deletion i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@
"admin.complianceExport.createJob.help": "Initiates a Compliance Export job immediately.",
"admin.complianceExport.createJob.title": "Run Compliance Export Job Now",
"admin.complianceExport.description": "This feature supports compliance exports to the Actiance XML and Global Relay EML formats, and is currently in beta. Support for the Mattermost CSV format is scheduled for a future release, and will replace the existing <a href=\"/admin_console/general/compliance\">Compliance</a> feature.",
"admin.complianceExport.exportFormat.csv": "CSV",
"admin.complianceExport.exportFormat.actiance": "Actiance XML",
"admin.complianceExport.exportFormat.description": "Format of the compliance export. Corresponds to the system that you want to import the data into.<br><br>For Actiance XML, compliance export files are written to the \"exports\" subdirectory of the configured <a href=\"/admin_console/files/storage\">Local Storage Directory</a>. For Global Relay EML, they are emailed to the configured email address.",
"admin.complianceExport.exportFormat.description": "Format of the compliance export. Corresponds to the system that you want to import the data into.<br><br>For Actiance XML or CSV, compliance export files are written to the \"exports\" subdirectory of the configured <a href=\"/admin_console/files/storage\">Local Storage Directory</a>. For Global Relay EML, they are emailed to the configured email address.",
"admin.complianceExport.exportFormat.globalrelay": "Global Relay EML",
"admin.complianceExport.exportFormat.title": "Export Format:",
"admin.complianceExport.exportJobStartTime.description": "Set the start time of the daily scheduled compliance export job. Choose a time when fewer people are using your system. Must be a 24-hour time stamp in the form HH:MM.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ exports[`components/MessageExportSettings should match snapshot, disabled, actia
value="actiance"
values={
Array [
Object {
"text": "CSV",
"value": "csv",
},
Object {
"text": "Actiance XML",
"value": "actiance",
Expand Down Expand Up @@ -302,6 +306,10 @@ exports[`components/MessageExportSettings should match snapshot, disabled, globa
value="globalrelay"
values={
Array [
Object {
"text": "CSV",
"value": "csv",
},
Object {
"text": "Actiance XML",
"value": "actiance",
Expand Down Expand Up @@ -598,6 +606,10 @@ exports[`components/MessageExportSettings should match snapshot, enabled, actian
value="actiance"
values={
Array [
Object {
"text": "CSV",
"value": "csv",
},
Object {
"text": "Actiance XML",
"value": "actiance",
Expand Down Expand Up @@ -784,6 +796,10 @@ exports[`components/MessageExportSettings should match snapshot, enabled, global
value="globalrelay"
values={
Array [
Object {
"text": "CSV",
"value": "csv",
},
Object {
"text": "Actiance XML",
"value": "actiance",
Expand Down

0 comments on commit 5fd32dc

Please sign in to comment.