[DOCS-15022] [Manual] Wrong position of comment field for delete command Created: 11/Jan/22  Updated: 13/Nov/23  Resolved: 08/Feb/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.4.0, 5.0.0, 5.2.0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Bug Priority: Minor - P4
Reporter: Dmitry Rybakov Assignee: Sarah Olson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 2 years, 1 day ago
Epic Link: DOCSP-11701

 Description   

Reference manual page for delete command - https://docs.mongodb.com/manual/reference/command/delete/ - says that comment field should be inside of deletes array. However, comment has to be a top level field.

test> db.runCommand({"delete": "collection0", "deletes": [{"q": {}, "limit": 1, "comment": "test"}]})
MongoServerError: BSON field 'delete.deletes.comment' is an unknown field.
 
test> db.runCommand({"delete": "collection0", "deletes": [{"q": {}, "limit": 1}], "comment": "test"})
{
  n: 0,
  electionId: ObjectId("7fffffff0000000000000004"),
  opTime: { ts: Timestamp({ t: 1641910276, i: 1 }), t: Long("4") },
  ok: 1,
  '$clusterTime': {
    clusterTime: Timestamp({ t: 1641910276, i: 1 }),
    signature: {
      hash: Binary(Buffer.from("0000000000000000000000000000000000000000", "hex"), 0),
      keyId: Long("0")
    }
  },
  operationTime: Timestamp({ t: 1641910276, i: 1 })
}



 Comments   
Comment by Sarah Olson [ 08/Feb/22 ]

This has been reviewed, approved, and backported. Closing this ticket as fixed.

Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Sarah Olson', 'email': '98367156+sarah-olson-mongodb@users.noreply.github.com', 'username': 'sarah-olson-mongodb'}

Message: Docs 15022 v4.4 (#555)

  • Changed location of comment field (#478)
  • Changed location of comment field
  • DOCS-15022: Reordered the comment field in code block syntax and table description.
  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local>
Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

  • Clean up cherry pick. Remove let option
  • Clean up additional Let option from cherry pick
  • One more cherry pick cleanup; remove let description

Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local>
Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>
Branch: v4.4
https://github.com/10gen/docs-mongodb-internal/commit/95ffe6e06657f9f21fbc7599de30da0aa892279d

Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Sarah Olson', 'email': '98367156+sarah-olson-mongodb@users.noreply.github.com', 'username': 'sarah-olson-mongodb'}

Message: Changed location of comment field (#478) (#534)

  • Changed location of comment field
  • DOCS-15022: Reordered the comment field in code block syntax and table description.
  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local>
Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local>
Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>
Branch: v5.0
https://github.com/10gen/docs-mongodb-internal/commit/5ba16613295831c4cd22f67a444b011a571455e9

Comment by Githook User [ 07/Feb/22 ]

Author:

{'name': 'Sarah Olson', 'email': '98367156+sarah-olson-mongodb@users.noreply.github.com', 'username': 'sarah-olson-mongodb'}

Message: Changed location of comment field (#478) (#532)

  • Changed location of comment field
  • DOCS-15022: Reordered the comment field in code block syntax and table description.
  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local>
Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local>
Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>
Branch: v5.2
https://github.com/10gen/docs-mongodb-internal/commit/abd068dd4e8203744a964094c8c7037d5ad8cb2f

Comment by Githook User [ 02/Feb/22 ]

Author:

{'name': 'Sarah Olson', 'email': '98367156+sarah-olson-mongodb@users.noreply.github.com', 'username': 'sarah-olson-mongodb'}

Message: Changed location of comment field (#478)

  • Changed location of comment field
  • DOCS-15022: Reordered the comment field in code block syntax and table description.
  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

  • Update source/reference/command/delete.txt

Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>

Co-authored-by: Sarah Olson <sarah.olson@Sarahs-MacBook-Pro.local>
Co-authored-by: jeff-allen-mongo <jeffrey.allen@10gen.com>
Branch: master
https://github.com/10gen/docs-mongodb-internal/commit/215d005d66be7ce92cf0ac0dd77faeb12dcee93d

Comment by Sarah Olson [ 01/Feb/22 ]

PR: 

https://github.com/10gen/docs-mongodb-internal/pull/478

Update staged here: 

https://docs-mongodbcom-staging.corp.mongodb.com/docs/docsworker-xlarge/DOCS-15022/reference/command/delete/#mongodb-dbcommand-dbcmd.delete

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