[SERVER-32849] Prompt before write commands with shell Created: 23/Jan/18  Updated: 06/Dec/22

Status: Open
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: features we're not sure of

Type: Improvement Priority: Major - P3
Reporter: Chris Harris Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Unresolved Votes: 0
Labels: move-stm
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-36196 expose function in shell to determine... Closed
is related to SERVER-3437 Console safe mode Closed
is related to SERVER-36803 Ability to prompt for user input in s... Closed
Assigned Teams:
Server Tooling & Methods
Participants:
Case:

 Description   

It would be nice if the shell could (perhaps by default) prompt the user for confirmation before issuing write commands. These warnings could also highlight when there are no filters applied (which would result in modifying all documents in the targeted collection). This could be viewed as a "reasonably safe mode" which would be helpful in situations where the user has permission and must sometimes issue writes, but needs to be careful because of the target environment (such as production deployments).



 Comments   
Comment by Asya Kamsky [ 21/Dec/18 ]

Now that you can tell in the shell if it's an interactive shell session, it makes sense to add this for interactive mode only.

SERVER-36196

Generated at Thu Feb 08 04:31:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.