-
Notifications
You must be signed in to change notification settings - Fork 584
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
Extended 'Accidental Deletion Prevention' Verification #721
Conversation
If the Disable Accidental prevention is true then the new one is also going to be disabled automatically. But if the Disable Accidental prevention is false then you can disable just the extended part depending on user preference. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I think it will be confusing for some users what the different delete prevention alternatives will do. What do you think of combining them into one?
Also, can you provide more information about which scenario(s) this PR solves? Preferably in an issue that this PR can refer too.
Thanks!
…he existing 'Disable Accidental Deletition Prevention'
bfc195a
to
79069b6
Compare
Hi @ErikMogensen, I have merged the options as you suggested. I don't know if there are any Issues reported as this was an issue that I encountered myself with some of my support engineers as they accidentally deleted the entire queue when trying to delete some dead-letter messages. These changes extended the delete verification to anywhere where a main Item is been deleted (Queue, Topic, Subscription) to avoid accidental loss of possibly hundreds of queued messages. |
Hi @ErikMogensen what do you think now with the changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes done
@ErikMogensen, @paolosalvatori, @SeanFeldman Thank you in advance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Sorry about the delay.
Just one thing. Please add curly brackets around the bodies belonging to the if statements, since that is the way it is usually done in this repo. Also, it may prevent someone from adding a deletion statement after such a body, not realizing it will be not be conditional.
@ErikMogensen Brackets added as requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @BruAlcaraz.
We have revived #505 to set expected code style when making PRs.
I have created an extended deletion Prevention to avoid accidental deletion of Queues, Topics and subscriptions.
This new option is is enabled by default and can be disabled in the Options menu