Open
Conversation
Without this, the API between memory-backed services have a different API to `save-mongodb` services, which can cause test failures.
Owner
|
What cases do you still need idType()? |
Contributor
Author
|
article-slug-listener performs a read on the service by firstly casting the _id. This works with a save-mongodb persistence, but not a memory engine. |
Owner
|
I don't think it is needed in that case. |
Owner
|
I was hoping to deprecate |
Contributor
Author
|
The tests do appear to pass without the call to It looks as though The only other use case I can think is: var ids = _.map([1, 2, 3], function (id) {
return service.idType(id)
})
var query = { _id: { $in: ids } }Would this be catered for? |
Owner
Contributor
Author
|
In which case, i dont think this is needed and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Without this, the API between memory-backed services have a
different API to
save-mongodbservices, which can cause testfailures.