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

Remove deprecated items in driver V6

    • 2
    • Needed
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      This change removes

      • Admin.addUser() helper
      • Collection.stats() helper

      uses of addUser should be migrate to the createUser command
      uses of Collection.stats() should migrate to the $collStats aggregation stage
      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      See [https://github.com/mongodb/node-mongodb-native/pull/3781|PR release notes] for examples

      3. Which versions of the driver/connector does this apply to?
      >= v6

      Show
      1. What would you like to communicate to the user about this feature? This change removes Admin.addUser() helper Collection.stats() helper uses of addUser should be migrate to the createUser command uses of Collection.stats() should migrate to the $collStats aggregation stage 2. Would you like the user to see examples of the syntax and/or executable code and its output? See [https://github.com/mongodb/node-mongodb-native/pull/3781|PR release notes] for examples 3. Which versions of the driver/connector does this apply to? >= v6

      Use Case

      Remove all deprecations planned for deletion in the v6 release.

      User Impact

      • Migration to db.command for removed helpers.

      Dependencies

      • None

      Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      List of items to remove:

      • addUser admin helper
      • AddUserOperation class
      • AddUserOptions interface
      • RoleSpecification interface
      • Collection#stats helper
      • CollStatsOptions interface
      • WiredTigerData interface
      • CollStats interface

      Testing Requirements

      • remove addUser usages in tests

      Documentation Requirements

      • Release notes
        • migration for addUser (link to createUser / runCommand)

      Follow Up Requirements

      • mongodb-legacy subtask, sync up removals

        There are no Sub-Tasks for this issue.

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            daria.pardue@mongodb.com Daria Pardue
            Warren James
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: