Skip to content

Commit 6815690

Browse files
committed
[DOP-29475] Set default values for resources & strategy
1 parent 4bac25b commit 6815690

File tree

2 files changed

+9
-1
lines changed
  • src/features/transfer/MutateTransferForm/components

2 files changed

+9
-1
lines changed

src/features/transfer/MutateTransferForm/components/StrategyParams/components/StrategyTypeForm/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ export const StrategyTypeForm = ({ sourceConnectionType }: StrategyTypeFormProps
3737
}, [formInstance, sourceConnectionType]);
3838

3939
return (
40-
<Form.Item label={t('strategyParams')} name={['strategy_params', 'type']} rules={[{ required: true }]}>
40+
<Form.Item
41+
label={t('strategyParams')}
42+
name={['strategy_params', 'type']}
43+
rules={[{ required: true }]}
44+
initialValue="full"
45+
>
4146
<Select
4247
size="large"
4348
options={strategyParamsSelectOptions}

src/features/transfer/MutateTransferForm/components/TransferResources/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const TransferResources = () => {
3030
},
3131
]}
3232
tooltip={<TooltipText minValue={MIN_PARALLEL_TASKS} maxValue={MAX_PARALLEL_TASKS} />}
33+
initialValue={1}
3334
>
3435
<InputNumber size="large" min={MIN_PARALLEL_TASKS} max={MAX_PARALLEL_TASKS} />
3536
</Form.Item>
@@ -44,6 +45,7 @@ export const TransferResources = () => {
4445
},
4546
]}
4647
tooltip={<TooltipText minValue={MIN_CPU_CORES_PER_TASKS} maxValue={MAX_CPU_CORES_PER_TASKS} />}
48+
initialValue={1}
4749
>
4850
<InputNumber size="large" min={MIN_CPU_CORES_PER_TASKS} max={MAX_CPU_CORES_PER_TASKS} />
4951
</Form.Item>
@@ -63,6 +65,7 @@ export const TransferResources = () => {
6365
maxValue={`${MAX_RAM_PER_TASK} ${t('gib', { ns: 'file' })}`}
6466
/>
6567
}
68+
initialValue={1}
6669
>
6770
<InputNumber size="large" min={MIN_RAM_PER_TASK} max={MAX_RAM_PER_TASK} />
6871
</Form.Item>

0 commit comments

Comments
 (0)