You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ur...@apache.org on 2024/07/19 04:39:08 UTC

(airflow) branch main updated: Fix tasks API endpoint when DAG doesn't have `start_date` (#40878)

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

uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new afde88ac33 Fix tasks API endpoint when DAG doesn't have `start_date` (#40878)
afde88ac33 is described below

commit afde88ac336b34c89654b7f4e2f23fae64863134
Author: Jed Cunningham <66...@users.noreply.github.com>
AuthorDate: Thu Jul 18 22:39:00 2024 -0600

    Fix tasks API endpoint when DAG doesn't have `start_date` (#40878)
---
 airflow/api_connexion/openapi/v1.yaml        | 1 +
 airflow/www/static/js/types/api-generated.ts | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/airflow/api_connexion/openapi/v1.yaml b/airflow/api_connexion/openapi/v1.yaml
index 6b5800f870..cefb9faa7c 100644
--- a/airflow/api_connexion/openapi/v1.yaml
+++ b/airflow/api_connexion/openapi/v1.yaml
@@ -4070,6 +4070,7 @@ components:
           type: string
           format: "date-time"
           readOnly: true
+          nullable: true
         end_date:
           type: string
           format: "date-time"
diff --git a/airflow/www/static/js/types/api-generated.ts b/airflow/www/static/js/types/api-generated.ts
index 2a92c2c087..ad5368299d 100644
--- a/airflow/www/static/js/types/api-generated.ts
+++ b/airflow/www/static/js/types/api-generated.ts
@@ -1684,7 +1684,7 @@ export interface components {
       task_display_name?: string;
       owner?: string;
       /** Format: date-time */
-      start_date?: string;
+      start_date?: string | null;
       /** Format: date-time */
       end_date?: string | null;
       trigger_rule?: components["schemas"]["TriggerRule"];