DEV Community

Cover image for Tales from the Scrum Dungeon: The Safety Dialog
Joel Bennett
Joel Bennett

Posted on

Tales from the Scrum Dungeon: The Safety Dialog

Once upon a time, there was a tool that was written that allowed a client to alter their own database in a fairly serious way. The tool wasn't written on a whim, but was actually needed in some select cases. Because of the seriousness of the operations being performed, there had to be some mechanism to ensure that the user running it was really sure that they wanted to run it.

Enter the "safety dialog".

It wasn't so much as a single dialog, as a series of message boxes with "yes" and "no" options. The user running the tool would have to select "yes", then "no", then "yes". Each message box explained the correct option to select to proceed. There had been more than one support call where some user had complained along the lines of "Well, I selected 'yes, yes, yes', and it's not working!".

In theory, the idea behind the safety dialog was good - wanting to prevent users from doing irreversible damage to a database, but the implementation could have used some improvement.

These days, a better alternative I've seen is to get the user to type in a specific series of words or a phrase when deleting things like API keys. It's maybe still not the best option (designing a system where such tools aren't necessary), but at least the "safety dialog" prevented a few accidents from happening along the way.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay