This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-6-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 06214a1624badc3c92d47c3668fd7ca7c6e2f43c Author: Nikita Repin-Solev <[email protected]> AuthorDate: Wed May 3 22:23:42 2023 +0300 Fix problem with displaying graph (#30765) If run_id is presented in the graph URL for example: http://localhost:8080/dags/simple_dag/graph?run_id=scheduled__2023-03-14T12%3A47%3A00%2B00%3A00&execution_date=2023-03-14+12%3A47%3A00%2B00%3A00 query_date will be equal to base_date which set as (timezone.utcnow() + timedelta(seconds=1)).replace(microsecond=0) And drs will contain only recent num_runs results which may not include dag_run with desirable execution_date, instead of this you will have the latest one. (cherry picked from commit eb7b98d368a9d00ab6c6790dd85e327ed9c9e826) --- airflow/www/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/airflow/www/views.py b/airflow/www/views.py index c6d1b612b3..91f92dadda 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -197,8 +197,6 @@ def get_date_time_num_runs_dag_runs_form_data(www_request, session, dag): base_date = www_request.args.get("base_date") if base_date: base_date = _safe_parse_datetime(base_date) - elif run_id: - base_date = (timezone.utcnow() + datetime.timedelta(seconds=1)).replace(microsecond=0) else: # The DateTimeField widget truncates milliseconds and would loose # the first dag run. Round to next second.
