pierrejeambrun commented on code in PR #57342:
URL: https://github.com/apache/airflow/pull/57342#discussion_r2493662143


##########
airflow-core/src/airflow/ui/src/components/TriggerDag/TriggerDAGForm.tsx:
##########
@@ -123,6 +131,40 @@ const TriggerDAGForm = ({ dagDisplayName, dagId, isPaused, 
onClose, open }: Trig
           )}
         />
 
+        <Controller
+          control={control}
+          name="dataIntervalStart"
+          render={({ field }) => (
+            <Field.Root invalid={Boolean(errors.date) || dataIntervalInvalid} 
orientation="horizontal">
+              <Stack>
+                <Field.Label fontSize="md" style={{ flexBasis: "30%" }}>
+                  {translate("dagRun.dataIntervalStart")}
+                </Field.Label>
+              </Stack>
+              <Stack css={{ flexBasis: "70%" }}>
+                <DateTimeInput {...field} onBlur={resetDateError} size="sm" />
+              </Stack>              
+            </Field.Root>
+          )}
+        />

Review Comment:
   That is a good point.
   
   It looks like the model validator will ignore `data_interval_start` and 
`data_interval_end` if `logical_date` is None. So basically the only war for 
the backend to confider such dates is to have the `logical_date` defined too.
   
   I don't know if this is the expected behavior @uranusjr ?
   
   Maybe we need a hint to specify that? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to