This is an automated email from the ASF dual-hosted git repository. jscheffl 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 c5cd0a8008 Remove deprecation warnings in endpoints.py (#39389) c5cd0a8008 is described below commit c5cd0a80089212573000cee4dddc189060c8789a Author: hamsh <hamed.sheyk...@gmail.com> AuthorDate: Sat May 4 20:29:55 2024 +0100 Remove deprecation warnings in endpoints.py (#39389) fix DeprecationWarnings endpoints.py:27 DeprecationWarning: This module is deprecated. Please use `airflow.api.common.delete_dag` instead endpoints.py:27 DeprecationWarning: This module is deprecated. Please use `airflow.api.common.trigger_dag` instead. --- airflow/www/api/experimental/endpoints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airflow/www/api/experimental/endpoints.py b/airflow/www/api/experimental/endpoints.py index 22a955610f..cba955d4da 100644 --- a/airflow/www/api/experimental/endpoints.py +++ b/airflow/www/api/experimental/endpoints.py @@ -24,7 +24,8 @@ from typing import TYPE_CHECKING, Callable, TypeVar, cast from flask import Blueprint, current_app, g, jsonify, request, url_for from airflow import models -from airflow.api.common.experimental import delete_dag as delete, pool as pool_api, trigger_dag as trigger +from airflow.api.common import delete_dag as delete, trigger_dag as trigger +from airflow.api.common.experimental import pool as pool_api from airflow.api.common.experimental.get_code import get_code from airflow.api.common.experimental.get_dag_run_state import get_dag_run_state from airflow.api.common.experimental.get_dag_runs import get_dag_runs