You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by pi...@apache.org on 2025/06/25 15:11:16 UTC

(airflow) branch v3-0-test updated: [v3-0-test] Set downstream option to default on task instance clear (#52130) (#52246)

This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-0-test by this push:
     new 504dc553c67 [v3-0-test] Set downstream option to default on task instance clear (#52130) (#52246)
504dc553c67 is described below

commit 504dc553c67d87524745960ec31db60a1ad594df
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Wed Jun 25 17:11:10 2025 +0200

    [v3-0-test] Set downstream option to default on task instance clear (#52130) (#52246)
    
    * Set downstream default when clear task instance
    
    * Set downstream default when mark TI success or failed
    (cherry picked from commit c31146a29fa36fd28a6be45742baeaab87e028d9)
    
    Co-authored-by: humit <jh...@naver.com>
---
 .../ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx     | 1 +
 .../ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsDialog.tsx   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx b/airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx
index 3d251138ff1..e8202304281 100644
--- a/airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx
+++ b/airflow-core/src/airflow/ui/src/components/Clear/TaskInstance/ClearTaskInstanceDialog.tsx
@@ -103,6 +103,7 @@ const ClearTaskInstanceDialog = ({ onClose, open, taskInstance }: Props) => {
         <Dialog.Body width="full">
           <Flex justifyContent="center">
             <SegmentedControl
+              defaultValues={["downstream"]}
               multiple
               onChange={setSelectedOptions}
               options={[
diff --git a/airflow-core/src/airflow/ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsDialog.tsx b/airflow-core/src/airflow/ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsDialog.tsx
index b22992d39f9..8411be44076 100644
--- a/airflow-core/src/airflow/ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsDialog.tsx
+++ b/airflow-core/src/airflow/ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsDialog.tsx
@@ -98,6 +98,7 @@ const MarkTaskInstanceAsDialog = ({ onClose, open, state, taskInstance }: Props)
         <Dialog.Body width="full">
           <Flex justifyContent="center">
             <SegmentedControl
+              defaultValues={["downstream"]}
               multiple
               onChange={setSelectedOptions}
               options={[