[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: |
|
||||||||||||||||
| Assigned Teams: |
Server Tooling & Methods
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||
| 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. |