Skip to content

Commit

Permalink
fix(data-integrity): change default report type to summary (#603) [de…
Browse files Browse the repository at this point in the history
…fer release]

* fix(data-integrity): change default report type to summary

* fix: failing test
  • Loading branch information
Birkbjo authored Mar 13, 2024
1 parent 44adaa2 commit 1e27b04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Then(
saveAndExpect({
cronExpression: '0 0 * ? * *',
jobParameters: {
type: 'REPORT',
type: 'SUMMARY',
},
jobType: 'DATA_INTEGRITY',
name: 'Name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 * ? * *',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -23,7 +23,7 @@ const DataIntegrityReportTypeField = ({ name, constants }) => {
<Field
name={name}
component={SingleSelectFieldFF}
initialValue={DEFAULT_VALUE}
defaultValue={DEFAULT_VALUE}
options={labeledOptions}
label={i18n.t('Report type')}
/>
Expand Down

1 comment on commit 1e27b04

@dhis2-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.