From 1978b1ac413734b7add88ad3187b226b16b37c11 Mon Sep 17 00:00:00 2001 From: yadhap Dahal Date: Tue, 19 Nov 2024 13:49:49 -0500 Subject: [PATCH] =?UTF-8?q?Removed=20the=20Cron=20option=20from=20the=20sc?= =?UTF-8?q?heduler=20picker=20to=20simplify=20functionality,=20as=20it=20i?= =?UTF-8?q?ntroduced=20unnecessary=20complexity.=20The=20existing=20schedu?= =?UTF-8?q?ling=20options=E2=80=94Daily,=20Weekly,=20Monthly,=20and=20Year?= =?UTF-8?q?ly=E2=80=94adequately=20cover=20all=20required=20use=20cases.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jobMonitoring/SchedulePicker.jsx | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/Tombolo/client-reactjs/src/components/application/jobMonitoring/SchedulePicker.jsx b/Tombolo/client-reactjs/src/components/application/jobMonitoring/SchedulePicker.jsx index 01eaaca3d..34b5eda40 100644 --- a/Tombolo/client-reactjs/src/components/application/jobMonitoring/SchedulePicker.jsx +++ b/Tombolo/client-reactjs/src/components/application/jobMonitoring/SchedulePicker.jsx @@ -51,8 +51,8 @@ function SchedulePicker({ completeSchedule, setCompleteSchedule, cron, - setCron, - cronMessage, + // setCron, + // cronMessage, setCronMessage, }) { const [yearlyRadio, setYearlyRadio] = useState(null); @@ -385,35 +385,35 @@ function SchedulePicker({ ); // handle corn input change - const handleCronInputChange = (e) => { - const v = e.target.value; - setCron(v); - setIntermittentScheduling((prev) => ({ frequency: prev.frequency, cron: v })); - }; + // const handleCronInputChange = (e) => { + // const v = e.target.value; + // setCron(v); + // setIntermittentScheduling((prev) => ({ frequency: prev.frequency, cron: v })); + // }; //Cron Input and validation - const cronInputAndValidation = ( - <> - handleCronInputChange(e)} allowClear value={cron} /> - {cronMessage == null ? ( -
- Click{' '} - - Here - {' '} - to create cron expression -
- ) : null} - {cronMessage && cronMessage?.valid ? ( -
Runs {cronMessage.message.toLowerCase()}
- ) : null} - {cronMessage && !cronMessage?.valid ?
{cronMessage.message}
: null} - - ); + // const cronInputAndValidation = ( + // <> + // handleCronInputChange(e)} allowClear value={cron} /> + // {cronMessage == null ? ( + //
+ // Click{' '} + // + // Here + // {' '} + // to create cron expression + //
+ // ) : null} + // {cronMessage && cronMessage?.valid ? ( + //
Runs {cronMessage.message.toLowerCase()}
+ // ) : null} + // {cronMessage && !cronMessage?.valid ?
{cronMessage.message}
: null} + // + // ); //Schedule options const schedulingOptions = [ @@ -421,7 +421,7 @@ function SchedulePicker({ { label: 'Weekly', value: 'weekly', component: weeklyBreakDown }, { label: 'Monthly', value: 'monthly', component: monthlyBreakDown }, { label: 'Yearly', value: 'yearly', component: yearlyBreakDown }, - { label: 'Cron', value: 'cron', component: cronInputAndValidation }, + // { label: 'Cron', value: 'cron', component: cronInputAndValidation }, ]; const selectedComponent = schedulingOptions.find(