-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected CLI prompt to save deployment configuration part 2 #17437
Comments
hi @ddeepwell - what is the unexpected behavior you're seeing? with your repro from #17409 i am seeing the CLI prompt for save in all cases where if you're saying that the prompt should not happen, what should the condition be for suppressing it? (if not only |
I would advocate for no prompt to be made, but this might end up being a bigger question about the philosophy within prefect as a whole about when prompting occurs. Before #17410, there was no prompt for a prefect.yaml file that would not be changed (as in there was no templating). In my mind, this is the desired effect since a prompt would seem to indicate that something is missing in the file. Furthermore, in this situation (using version 3.2.12 where the prompt always exists) selecting yes to the prompt only modifies the format of the prefect.yaml file which may mess with some projects style conventions. The removed conditional ( Alternatively, the wording of the prompt (Would you like to save configuration for this deployment for faster deployments in the future?) could be changed since receiving this prompt when a perfectly correct prefect.yaml file is used seems unclear to the user. I would also like to avoid the use of |
hi @ddeepwell - thanks for the thoughts! i chatted with @cicdw and we were thinking we should just remove the prompt that offers to save the config entirely, so we don't have to concoct a condition where we ought to ask and we never risk destructive action as you mention. the prompt is likely more annoying than useful in general what do you think? |
I think that's a good idea! I'd only add that if there was no file, then prompting to create one might be helpful. |
Bug summary
Unfortunately, #17410 which was meant to fix #17409 did not remove the prompt since
should_prompt_for_save
still returns True.should_prompt_for_save
is an alias forapp.console.is_interactive
whereconsole
is a Rich Console which returns true for theis_interactive
property (as seen here) when executing the commandprefect deploy
.Version info
Additional context
No response
The text was updated successfully, but these errors were encountered: