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

Refactor Index Operations to use async syntax

    • Type: Icon: Task Task
    • Resolution: Done
    • 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 admin operations to use async syntax
      So that... the driver is closer to generating async stack traces

      User Impact

      This is an internal change

      Dependencies

      Unknowns

      Acceptance Criteria

      Implementation Requirements

      • Index operations to change:
        • IndexesOperation, CreateIndexesOperation, CreateIndexOperation, EnsureIndexOperation, DropIndexOperation, DropIndexesOperation, IndexExistsOperation, IndexInformationOperation
      • For each operation:
        • Change its superclass from CommandCallbackOperation/AbstractCallbackOperation to CommandOperation/AbstractOperation
        • change executeCallback/executeCommandCallback to execute/executeCommand and return it, remove callback argument, and remove all uses of callback in the class
        • call server.commandAsync instead of server.command and return it

      Testing Requirements

      • clean up operation test files if need be

      Documentation Requirements

      • None

      Follow Up Requirements

      • None

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

              Created:
              Updated:
              Resolved: