From 54749de34492e9f58be69851085914043d713b43 Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Mon, 11 Mar 2024 15:52:25 +0100 Subject: [PATCH 1/2] fix(data-integrity): change default report type to summary --- .../FormFields/Custom/DataIntegrityReportTypeField.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FormFields/Custom/DataIntegrityReportTypeField.js b/src/components/FormFields/Custom/DataIntegrityReportTypeField.js index 45fbcbb4..35137666 100644 --- a/src/components/FormFields/Custom/DataIntegrityReportTypeField.js +++ b/src/components/FormFields/Custom/DataIntegrityReportTypeField.js @@ -6,7 +6,7 @@ import { getReportTypeLabel } from '../../../services/server-translations/dataIn const { Field } = ReactFinalForm -const DEFAULT_VALUE = 'REPORT' +const DEFAULT_VALUE = 'SUMMARY' const DataIntegrityReportTypeField = ({ name, constants }) => { if (!constants) { @@ -23,7 +23,7 @@ const DataIntegrityReportTypeField = ({ name, constants }) => { From 54cc980fdf5c7a44a036703fafaab0acabc513dd Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Mon, 11 Mar 2024 17:05:47 +0100 Subject: [PATCH 2/2] fix: failing test --- cypress/integration/add-job/create-parameterless-jobs/index.js | 2 +- cypress/integration/edit-job/edit-parameterless-jobs/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/add-job/create-parameterless-jobs/index.js b/cypress/integration/add-job/create-parameterless-jobs/index.js index 05e23605..e099fd9e 100644 --- a/cypress/integration/add-job/create-parameterless-jobs/index.js +++ b/cypress/integration/add-job/create-parameterless-jobs/index.js @@ -57,7 +57,7 @@ Then( saveAndExpect({ cronExpression: '0 0 * ? * *', jobParameters: { - type: 'REPORT', + type: 'SUMMARY', }, jobType: 'DATA_INTEGRITY', name: 'Name', diff --git a/cypress/integration/edit-job/edit-parameterless-jobs/index.js b/cypress/integration/edit-job/edit-parameterless-jobs/index.js index 1671f6ef..82ec64fe 100644 --- a/cypress/integration/edit-job/edit-parameterless-jobs/index.js +++ b/cypress/integration/edit-job/edit-parameterless-jobs/index.js @@ -73,7 +73,7 @@ Then('the job is updated when the user saves the data integrity job', () => saveAndExpect({ jobType: 'DATA_INTEGRITY', jobParameters: { - type: 'REPORT', + type: 'SUMMARY', }, name: 'Name', cronExpression: '0 0 * ? * *',