Skip to content

Commit

Permalink
Render artifacts and states on the flow run graph by default. (#12300)
Browse files Browse the repository at this point in the history
  • Loading branch information
collincchoy authored Mar 20, 2024
1 parent 2a91347 commit 3dee896
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prefect/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
4 changes: 4 additions & 0 deletions tests/_internal/compatibility/test_experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}


Expand All @@ -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",
}
4 changes: 4 additions & 0 deletions tests/server/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}


Expand All @@ -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",
}


Expand Down

0 comments on commit 3dee896

Please sign in to comment.