[SERVER-8901] Improvements to DBQuery help(), comment() and some internal refactoring Created: 07/Mar/13  Updated: 11/Jul/16  Resolved: 18/Mar/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.4.0-rc2
Fix Version/s: 2.5.0

Type: Improvement Priority: Trivial - P5
Reporter: Jeremy Mikola Assignee: Jeremy Mikola
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Participants:

 Description   

I opened PR#270 some time ago (probably during 2.2's QA). It includes a few small improvements to DBQuery's JS:

  • DBQuery.comment() now returns the DBQuery object instead of chaining to this.next() (consistent with other methods, although maybe this is considered a BC break?)
  • comment(), snapshot(), and readPref() were added to help output
  • Use this._addSpecial() more to remove some code duplication

If necessary, I can break these apart into smaller commits and/or remove some changes.


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