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
Add option to remove all documents from collections being seeding #149
Conversation
Codecov Report
@@ Coverage Diff @@
## master #149 +/- ##
==========================================
+ Coverage 93.43% 93.50% +0.07%
==========================================
Files 18 18
Lines 274 277 +3
Branches 49 50 +1
==========================================
+ Hits 256 259 +3
Misses 7 7
Partials 11 11
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
24e1a49
to
d773494
Compare
@pkosiec could you please help with it? I don't know what is going on. |
a21c7cc
to
9e32562
Compare
@pkosiec sorry for bothering with it, I would love to use this library but I won’t be able to do it without this feature. Can we have a new release asap, please? Thank you. |
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.
Almost there! I have a few comments. Once they are resolved, we're ready to merge this 🚀
c381690
to
77b2c0e
Compare
@pkosiec I have fixed all the issues as you requested, except the removing the test case about a non-existing collection, if I remove this test case the code coverage test will fail. |
77b2c0e
to
9b0befd
Compare
I would love to see this feature merge and ship, and would be happy to report back if it works or not. We are currently using |
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.
LGTM - Thank you @EltonGarcia for your contribution! Great work!
@nickpalmer I've just published a new draft release, so you can try it even right now 🙂 https://github.com/pkosiec/mongo-seeding/releases/tag/v3.7.0-alpha.0 |
Fix #148 by adding the option to remove all documents without dropping the database or collection.