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/12/19 06:09:46 UTC
[airflow] branch main updated: Add `ensure_ascii=False` in trigger dag run API (#28451)
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 c3eee43725 Add `ensure_ascii=False` in trigger dag run API (#28451)
c3eee43725 is described below
commit c3eee4372556f9b09d3395a3f251c9ee21278846
Author: Mansu Kim <ak...@naver.com>
AuthorDate: Mon Dec 19 15:09:36 2022 +0900
Add `ensure_ascii=False` in trigger dag run API (#28451)
* Add ensure_ascii=False in trigger dag run api
* Fix static checks
---
airflow/www/views.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/airflow/www/views.py b/airflow/www/views.py
index fe40cf25c3..baf806b5f5 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1992,7 +1992,9 @@ class Airflow(AirflowBaseView):
else:
try:
default_conf = json.dumps(
- {str(k): v.resolve(suppress_exception=True) for k, v in dag.params.items()}, indent=4
+ {str(k): v.resolve(suppress_exception=True) for k, v in dag.params.items()},
+ indent=4,
+ ensure_ascii=False,
)
except TypeError:
flash("Could not pre-populate conf field due to non-JSON-serializable data-types")