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 2023/01/11 21:25:44 UTC
[airflow] 03/27: 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 v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 2898eec08e922113db60cc9955be503f716c24bc
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
(cherry picked from commit c3eee4372556f9b09d3395a3f251c9ee21278846)
---
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 8c649c9a32..c645a56b58 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1898,7 +1898,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")