-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove collection prefix and default mongo URI #1479
Remove collection prefix and default mongo URI #1479
Conversation
This reverts commit 529d67d.
It starts being so beautiful @drew-gross ! |
return database.adaptiveCollection(className).then(collection => { | ||
return database.adapter.deleteFields(className, [fieldName], [], database.collectionPrefix, collection); | ||
}) | ||
return database.adapter.deleteFields(className, [fieldName], []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we expose the deleteFields on the dbController just so we don't call adapter here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really see the point of having a super thin extra dbController layer that just calls into some other function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to hide the internals as they are pretty much hidden everywhere else. but that's ok
Just one tiny suggestion, let me know if you wanna do it, otherwise I'll merge. |
Current coverage is
|
This removes the collection prefix and default mongo URI from DatabaseAdapter.
The DefaultMongoURI is now duplicated across the MongoAdapter and GridStore but those are separate adapters that will eventually be in separate repos, so it makes sense for them to be duplicated.