From 3dee896842fbdd961fc9e4e9d3a7cfaa09014347 Mon Sep 17 00:00:00 2001 From: Collin Date: Wed, 20 Mar 2024 17:13:28 -0400 Subject: [PATCH] Render artifacts and states on the flow run graph by default. (#12300) --- src/prefect/settings.py | 4 ++-- tests/_internal/compatibility/test_experimental.py | 4 ++++ tests/server/test_app.py | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/prefect/settings.py b/src/prefect/settings.py index d7d30ddb2339..a18300aef323 100644 --- a/src/prefect/settings.py +++ b/src/prefect/settings.py @@ -1334,12 +1334,12 @@ def default_cloud_ui_url(settings, value): The maximum number of artifacts to show on a flow run graph on the v2 API """ -PREFECT_EXPERIMENTAL_ENABLE_ARTIFACTS_ON_FLOW_RUN_GRAPH = Setting(bool, default=False) +PREFECT_EXPERIMENTAL_ENABLE_ARTIFACTS_ON_FLOW_RUN_GRAPH = Setting(bool, default=True) """ Whether or not to enable artifacts on the flow run graph. """ -PREFECT_EXPERIMENTAL_ENABLE_STATES_ON_FLOW_RUN_GRAPH = Setting(bool, default=False) +PREFECT_EXPERIMENTAL_ENABLE_STATES_ON_FLOW_RUN_GRAPH = Setting(bool, default=True) """ Whether or not to enable flow run states on the flow run graph. """ diff --git a/tests/_internal/compatibility/test_experimental.py b/tests/_internal/compatibility/test_experimental.py index 33646169b437..278532e0cee7 100644 --- a/tests/_internal/compatibility/test_experimental.py +++ b/tests/_internal/compatibility/test_experimental.py @@ -476,6 +476,8 @@ def test_enabled_experiments_with_opt_in(): "enhanced_cancellation", "enhanced_deployment_parameters", "work_queue_status", + "artifacts_on_flow_run_graph", + "states_on_flow_run_graph", } @@ -490,4 +492,6 @@ def test_enabled_experiments_without_opt_in(): "enhanced_cancellation", "enhanced_deployment_parameters", "work_queue_status", + "artifacts_on_flow_run_graph", + "states_on_flow_run_graph", } diff --git a/tests/server/test_app.py b/tests/server/test_app.py index c317f3ea1af8..5bc4defd9fdb 100644 --- a/tests/server/test_app.py +++ b/tests/server/test_app.py @@ -43,6 +43,8 @@ def test_app_exposes_ui_settings(): "enhanced_cancellation", "enhanced_deployment_parameters", "work_queue_status", + "artifacts_on_flow_run_graph", + "states_on_flow_run_graph", } @@ -65,6 +67,8 @@ def test_app_exposes_ui_settings_with_experiments_enabled(): "enhanced_deployment_parameters", "enhanced_cancellation", "work_queue_status", + "artifacts_on_flow_run_graph", + "states_on_flow_run_graph", }