orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Create a 'safe mode' for the console/studio

Open thecyman opened this issue 12 years ago • 5 comments

This would allow the user to undo/redo queries they type. Perhaps also require confirmation for certain actions. For example, delete edge will delete all edges in the DB. It could block or need confirmation on that.

thecyman avatar Oct 01 '14 17:10 thecyman

Well just for fun deleting nodes? Imagine 100mio edges, and now an undo of that. Well I think this could be useful somehow but should have lowest priority. But the idea about asking about those sensitive queries would be very helpful. So let's say when deleting something via Browser, ask the use like you already do in the Schema window.

kwoxer avatar Oct 01 '14 18:10 kwoxer

For me personally, the main thing is those very sensitive queries. A safe mode could have other things. Maybe it will first get the count of objects affected, and if over 10 deletes are present, then it asks for confirmation. Just an idea. I think it's low priority as well.

thecyman avatar Oct 14 '14 13:10 thecyman

@thecyman +1

lvca avatar Oct 14 '14 13:10 lvca

If it does become a feature, I'd suggest working it through the existing permissions system and have a "safe" role or something similar. This way it would trickle down to other database access points (REST etc.) You can build a UI on top of that more universal system for each access point (pop ups for Studio, something else for REST)

mccarvell avatar Oct 14 '14 14:10 mccarvell

Small thing I noticed: When typing: delete edge 'SomeEdge' from #6:11 Notice that the ' key is right near the return key. So I almost accidentally typed delete edge{return} just because of that. Luckily I typed delete edge {return} so the extra space stopped me. I think my main concern is really the delete edge command since it's so easy to make a mistake. Again, a very low priority issue.

thecyman avatar Oct 15 '14 19:10 thecyman