This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Conversation
This file contains 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
@simison Any particular reason for the other package dependency upgrades in package.json? I'm planning on spending some time on this, and agree that we could use a re-write of our mongoose service. |
@mleanos nope, I should actually remove that commit from here and open a PR for it. If you can take over this would be aaaawesome! |
That was my intention. Do keep an eye on it though. I'll probably need some guidance/review from you at some point 😸 |
Sure 👍 just ping me when there's something to check, I'll be busy at a hackathon over the weekend but I can check over something if need. |
mleanos
added a commit
to mleanos/mean
that referenced
this pull request
Jul 26, 2017
Upgrades Mongoose to 4.11.1 Updates Mongoose connection implementation to accommodate deprecated features & connection options. Also, updates the Gulp Mocha tasks to reflect changes to the Mongoose implementation. Fixes tests to get the database from the existing Mongoose singleton. Derives from changes in meanjs#1816 Closes meanjs#1814
mleanos
added a commit
that referenced
this pull request
Jul 27, 2017
Upgrades Mongoose to 4.11.1 Updates Mongoose connection implementation to accommodate deprecated features & connection options. Also, updates the Gulp Mocha tasks to reflect changes to the Mongoose implementation. Fixes tests to get the database from the existing Mongoose singleton. Derives from changes in #1816 Closes #1814
cicorias
pushed a commit
to JavaScriptExpert/mean
that referenced
this pull request
Sep 12, 2017
Upgrades Mongoose to 4.11.1 Updates Mongoose connection implementation to accommodate deprecated features & connection options. Also, updates the Gulp Mocha tasks to reflect changes to the Mongoose implementation. Fixes tests to get the database from the existing Mongoose singleton. Derives from changes in meanjs#1816 Closes meanjs#1814
lupinthethirdgentleman
pushed a commit
to lupinthethirdgentleman/mean-dashboard
that referenced
this pull request
Aug 5, 2021
Upgrades Mongoose to 4.11.1 Updates Mongoose connection implementation to accommodate deprecated features & connection options. Also, updates the Gulp Mocha tasks to reflect changes to the Mongoose implementation. Fixes tests to get the database from the existing Mongoose singleton. Derives from changes in meanjs/mean#1816 Closes meanjs/mean#1814
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Just work in progress branch of mine which currently has several things I was testing and learning around updating Mongoose from 4.10 to 4.11. I got the app working, but tests are still failing.
I might get back to this at some point, but meanwhile if anyone else wants to take a stab at updating Mongoose, feel free to look at this.
Passing user/pass in connection's
options
throws deprecated warning so I removed it, I saw an issue where it was mentioned they might add it back but I lost it. Gotta double check.Using new mongoose connection logic by setting:
useMongoClient:true
Above will make everything into promises so I'm using those in several places instead of callbacks, but I didn't spend too much time in refactoring. I think the whole thing could do with proper rewrite.
I'm using
mongooseService.loadModels()
's callback everywhere but this probably isn't needed, I was just trying to get rid of errors with tests.Running tests throws "Schema not defined" errors so here are some solutions I was testing
Rename
mongoose
variables tomongooseService
so that it's obvious its not referring to mongoose module but our own internal service.Read more; #1814