You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/08/31 09:37:02 UTC
[airflow] branch main updated: FIX Make items nullable for TaskInstance related endpoints to avoid API errors (#26076)
This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi 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 02010e869d FIX Make items nullable for TaskInstance related endpoints to avoid API errors (#26076)
02010e869d is described below
commit 02010e869d6aacc9dded45dc1f9ca719dbf5ecc4
Author: Jorrick Sleijster <jo...@gmail.com>
AuthorDate: Wed Aug 31 11:36:39 2022 +0200
FIX Make items nullable for TaskInstance related endpoints to avoid API errors (#26076)
FIX Add missing nullable items to TaskInstance related endpoints
Co-authored-by: jorrick <jo...@adyen.com>
---
airflow/api_connexion/openapi/v1.yaml | 3 +++
airflow/www/static/js/types/api-generated.ts | 6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/airflow/api_connexion/openapi/v1.yaml b/airflow/api_connexion/openapi/v1.yaml
index 2e5ee1d4ae..962753a5a1 100644
--- a/airflow/api_connexion/openapi/v1.yaml
+++ b/airflow/api_connexion/openapi/v1.yaml
@@ -2958,8 +2958,10 @@ components:
type: integer
queue:
type: string
+ nullable: true
priority_weight:
type: integer
+ nullable: true
operator:
type: string
nullable: true
@@ -3279,6 +3281,7 @@ components:
queue:
type: string
readOnly: true
+ nullable: true
pool:
type: string
readOnly: true
diff --git a/airflow/www/static/js/types/api-generated.ts b/airflow/www/static/js/types/api-generated.ts
index 0abe4cf19b..2d575347b0 100644
--- a/airflow/www/static/js/types/api-generated.ts
+++ b/airflow/www/static/js/types/api-generated.ts
@@ -1171,8 +1171,8 @@ export interface components {
unixname?: string;
pool?: string;
pool_slots?: number;
- queue?: string;
- priority_weight?: number;
+ queue?: string | null;
+ priority_weight?: number | null;
/** @description *Changed in version 2.1.1*: Field becomes nullable. */
operator?: string | null;
queued_when?: string | null;
@@ -1349,7 +1349,7 @@ export interface components {
is_mapped?: boolean;
wait_for_downstream?: boolean;
retries?: number;
- queue?: string;
+ queue?: string | null;
pool?: string;
pool_slots?: number;
execution_timeout?: components["schemas"]["TimeDelta"] | null;