PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
15.35k stars 1.5k forks source link

Variables: Enable Parameters to be deployed with variables as default input type #14181

Open trahloff opened 2 weeks ago

trahloff commented 2 weeks ago

First check

Prefect Version

2.x

Describe the current behavior

When you trigger a Flow Run from a Flow Deployment, you need to click the meatballs menu button and click "Select variable" to get the drop-down menu to select variables:

Screenshot_2024-06-20_atTime_17-31-13@2x

Describe the proposed behavior

Users have the option to specify the default input type for Flow parameters either in Flow code or at deployment time.

Example Use

Enforce picking a variable as the value for a specific parameter

Additional context

Stretch-goal: Give users the option to restrict the possible variables the user can pick based on a tag.

trahloff commented 2 weeks ago

@zhen0, sorry, I think I mistakenly left "3.x" from the issue template as the Prefect version when creating the ticket. Ideally, this would also be supported in v2.x

serinamarie commented 2 days ago

Hi @trahloff, thanks for the issue! We've added this to our backlog for 2. x and 3.x