Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5392

Refactor Cursor Operations to use async syntax

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 6.0.0
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Use Case

      As a... node driver engineer
      I want... all cursor operations to use async syntax
      So that...the driver is closer to generating async stack traces

      User Impact

      This is an internal change

      Dependencies

      None

      Unknowns

      Acceptance Criteria

      Implementation Requirements

      • Cursor operations to change:
        • FindOperation, GetMoreOperation, ListIndexesOperation, ListDatabasesOperation, ListCollectionsOperation, CollectionsOperation, KillCursorsOperation
      • For each operation:
        • Change its superclass from CommandCallbackOperation/AbstractCallbackOperation to CommandOperation/AbstractOperation
        • change executeCallback to execute, remove callback argument, and remove all uses of callback in the class
        • call server.commandAsync instead of server.command and return it

      Testing Requirements

      • test to see if a call to an operation invoked server.commandAsync

      Documentation Requirements

      • None

      Follow Up Requirements

      • None

            Assignee:
            malik.javaid@mongodb.com Malik Javaid (Inactive)
            Reporter:
            malik.javaid@mongodb.com Malik Javaid (Inactive)
            Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: