[DOCS-16004] [Server] Add command name in `moveRange` example Created: 04/Apr/23  Updated: 30/Oct/23  Due: 05/Apr/23  Resolved: 05/Apr/23

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: 6.0.0, 6.3.0, 7.0.0-rc0
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Critical - P2
Reporter: Pierlauro Sciarelli Assignee: Joseph Dougherty
Resolution: Fixed Votes: 0
Labels: quick-win
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by DOCS-15363 Publicly document `moveRange` command Closed
Participants:
Days since reply: 44 weeks, 1 day ago

 Description   

The moveRange documentation committed under DOCS-15363 added an example missing the command name:

db.adminCommand(
  {
    toShard: <ID of the recipient shard>,
    min: <min key of the range to move>,
    max: <max key of the range to move>, // optional
    forceJumbo: <bool>, // optional
    waitForDelete: <bool>, // optional
    writeConcern: <write concern>, // optional
    secondaryThrottle: <bool> // optional
  }
)

We must correct it to:

db.adminCommand(
  {
    moveRange: <namespace>,
    toShard: <ID of the recipient shard>,
    min: <min key of the range to move>,
    max: <max key of the range to move>, // optional
    forceJumbo: <bool>, // optional
    waitForDelete: <bool>, // optional
    writeConcern: <write concern>, // optional
    secondaryThrottle: <bool> // optional
  }
)



 Comments   
Comment by Sarah Olson [ 04/Apr/23 ]

joseph.dougherty@mongodb.com, I'm going to give you "right of first refusal" on this one. 

Generated at Thu Feb 08 08:14:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.