From 85b8cf9f3784bc7fc33fe6c08d68c1b6f0a44351 Mon Sep 17 00:00:00 2001 From: Vadim Ogievetsky Date: Tue, 9 Jan 2024 16:09:42 -0800 Subject: [PATCH] Web console: Fix concurrent tasks (#15649) * Improve handling of concurrent tasks option * Update snapshots --- .../src/components/auto-form/auto-form.tsx | 10 +- .../compaction-config-dialog.spec.tsx.snap | 2640 ++++++++--------- .../compaction-config-dialog.tsx | 27 +- .../compaction-config/compaction-config.tsx | 9 - .../ingestion-spec/ingestion-spec.tsx | 5 +- .../views/load-data-view/load-data-view.tsx | 47 +- 6 files changed, 1356 insertions(+), 1382 deletions(-) diff --git a/web-console/src/components/auto-form/auto-form.tsx b/web-console/src/components/auto-form/auto-form.tsx index c63f7a7bc500..357046876afd 100644 --- a/web-console/src/components/auto-form/auto-form.tsx +++ b/web-console/src/components/auto-form/auto-form.tsx @@ -72,10 +72,6 @@ export interface Field { hide?: Functor; hideInMore?: Functor; valueAdjustment?: (value: any) => any; - /** - * An optional callback to transform the value before it is set on the input - */ - adjustValue?: (value: any) => any; adjustment?: (model: Partial, oldModel: Partial) => Partial; issueWithValue?: (value: any) => string | undefined; @@ -382,14 +378,12 @@ export class AutoForm> extends React.PureComponent const disabled = AutoForm.evaluateFunctor(field.disabled, model, false); const intent = required && modelValue == null ? AutoForm.REQUIRED_INTENT : undefined; - const adjustedValue = field.adjustValue ? field.adjustValue(shownValue) : shownValue; - return (