After deleting an application, `rad app delete` still prompts the app that was just deleted
ytimocin opened this issue · comments
Steps to reproduce
- Run
rad init
and selectYes
to create application in the current directory - Run
rad app list
and see the application - Run
rad app delete
without specifying an application - See that it is going to ask if you'd like to delete the application you saw after running
rad app list
- Select
Yes
and wait for the command to run - Run
rad app delete
again without specifying an application - See that it is again going to ask you to delete the application you saw in step 2
Observed behavior
Desired behavior
Second rad app delete
should say There is no application to delete
or something like that.
Workaround
No response
rad Version
RELEASE VERSION BICEP COMMIT
0.32.0 v0.32.0 0.32.0 1b8bd4a
Operating system
MacOS, Sonoma 14.4.1, Apple Chip
Additional context
No response
Would you like to support us?
- Yes, I would like to support you
👋 @ytimocin Thanks for filing this bug report.
A project maintainer will review this report and get back to you soon. If you'd like immediate help troubleshooting, please visit our Discord server.
For more information on our triage process please visit our triage overview
It does communicate that the app does not exist because it was deleted in the previous step. This is the expected behavior in the case of race conditions where someone runs the command but it was deleted by someone else.
👍 We've reviewed this issue and have agreed to add it to our backlog. Please subscribe to this issue for notifications, we'll provide updates when we pick it up.
We also welcome community contributions! If you would like to pick this item up sooner and submit a pull request, please visit our contribution guidelines and assign this to yourself by commenting "/assign" on this issue.
For more information on our triage process please visit our triage overview
I guess what I am asking is that if we should do the check of application existence before prompting Are you sure you want to delete...
message.