[DRIVERS-127] Deprecate "addUser" helpers in favor of "createUser" and "updateUser" helpers Created: 19/Nov/13  Updated: 06/Aug/16  Resolved: 23/Jun/14

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Barrie Segal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on MOTOR-20 Replace addUser with createUser Closed
Related
related to SERVER-11555 Deprecate addUser shell helper in fav... Closed
related to DRIVERS-169 Work around localhost exception issue... Closed
related to CDRIVER-326 add update_user helper to mongoc_data... Closed
Driver Compliance:
Key Status/Resolution FixVersion
MOTOR-20 Done 0.2

 Description   

In the server, user creation is done through the command "createUser". There is a shell helper "addUser" that has been around for a while, but is being deprecated in 2.6 according to SERVER-11555, in favor of a new shell helper "createUser".

In the past we have been inconsistent in the verbs we use for creation events. We had the addUser helper, but have createCollection, createDatabase, and createIndex operations. Also, in other databases, the term "create" is much more heavily used than the term "add". It has been pointed out to me by andreas.nilsson@10gen.com that having so many different verbs can be confusing to non-native english speakers.

We should standardize our terminology around the verb "create" rather than "add" so that we have consistent and predictable naming.

Since we have already gone ahead and done this in the server, we should do this in the drivers as well so that no matter what tool you are using to connect to MongoDB, you know that users are created via a createUser call, you shouldn't have to use addUser in some places and createUser in others, and be expected to keep track of when you use which.


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