-
Notifications
You must be signed in to change notification settings - Fork 160
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
feat: allow config to be passed via api #36
Conversation
1 similar comment
Thank you for your contribution. I will look into it when I find the time. |
Yes, i'm happy to leave it out if we decide we want to go that way. I started using es6 without linting errors then when I tried to import it, thought the quicker (future proof) solution was to add babel rather than go back. If we want to merge my changes in, then we can look at making the code DRY-er and revert back. Have a look through and see what you think and then we can talk again. |
Hi, I'd also recommend leaving babel out, at least out of this PR. It's easier to review your actual changes and you'll get a faster turn-around time. On a related note, generated files (by babel, minifiers etc) shouldn't be checked into git, especially for a module that's only used in node and not on the browser. Best, |
Hi guys, passing config via api is really necessary feature. Is this PR going to be merged? |
Guys can we get this up? |
Bump again! Is it rly possible that there is no 1h to just check this great contribution of @powderham ? |
Sorry, I'm very busy at the moment. |
Ok guys I'm looking in to this now @seppevs I have removed babel and added some tests. I want to check in with you and everyone else before polishing a solution that's not yet been accepted. Let me know what you think. |
45985c0
to
322a1f7
Compare
ping @seppevs @ahvetskovich @joelmukuthu @salesh anyone got time to check this? |
What's the status on this? |
I forked this with an API if you want to use it now |
952d33c
to
0f39678
Compare
I finally found some time and implemented this feature. It's in migrate-mongo v8.1.1 or later. I'm closing this PR. |
Guys,
This is my proposal for creating an instance of
migrateMongo
from a constructor, passing config via api. It introduces no regressions (Although it does introduce some code duplication)It's not ready for merging because it has no tests or an updated readme.
Is this a direction we would like to go in, if so I'd appreciate some help getting it ready for a PR.