[SERVER-8197] Make all the shell helper functions usable via the scripting interface. Created: 16/Jan/13  Updated: 10/May/22

Status: Backlog
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: eHarmony Matching Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Unresolved Votes: 1
Labels: move-sa, neweng, platform-lhf, platforms-re-triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-14882 Modify sh.status to include output fr... Closed
is related to DOCS-992 The documentation does not call out t... Closed
Participants:

 Description   

In general, it would be easier to use – and, importantly, to learn – the shell if all shell commands worked in a similar way, and could be used in the same way from a hand-typed JavaScript or a file-based JavaScript. In particular, all commands that retrieve some data should return that data as a well-formed BSON object. Since the shell already echoes return values to the shell, there should be no usability harm in doing things this way. I see the following culprits:

  • db.printCollectionStats
  • db.printReplicationInfo
  • db.printShardingStatus
  • db.printSlaveReplicationInfo


 Comments   
Comment by Steven Vannelli [ 10/May/22 ]

Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions.

Generated at Thu Feb 08 03:16:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.