jscheffl commented on code in PR #48584:
URL: https://github.com/apache/airflow/pull/48584#discussion_r2021624227


##########
airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx:
##########
@@ -105,15 +112,19 @@ const ClearTaskInstanceDialog = ({ onClose, open, 
taskInstance }: Props) => {
               multiple
               onChange={setSelectedOptions}
               options={[
-                { disabled: taskInstance.logical_date === null, label: "Past", 
value: "past" },
-                { disabled: taskInstance.logical_date === null, label: 
"Future", value: "future" },
+                { disabled: !Boolean(logicalDate), label: "Past", value: 
"past" },
+                { disabled: !Boolean(logicalDate), label: "Future", value: 
"future" },
                 { label: "Upstream", value: "upstream" },
                 { label: "Downstream", value: "downstream" },
                 { label: "Only Failed", value: "onlyFailed" },
               ]}
             />
           </Flex>
-          <ActionAccordion affectedTasks={affectedTasks} note={note} 
setNote={setNote} />
+          <ActionAccordion
+            affectedTasks={affectedTasks}
+            note={taskNote === undefined ? undefined : note}

Review Comment:
   I briefly thought about if it would make sense to keep the notes fied and if 
all are cleared then the note is applied to all mapped tasks?
   But not critical / blocking. Can also be adjusted in future.



-- 
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