-
Notifications
You must be signed in to change notification settings - Fork 18
Add method to list pending migrations #10
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10 +/- ##
=========================================
+ Coverage 82.85% 85.36% +2.5%
=========================================
Files 1 1
Lines 70 82 +12
=========================================
+ Hits 58 70 +12
Misses 6 6
Partials 6 6
Continue to review full report at Codecov.
|
Hello @cinemast thank you very much for using migrator and for working on this! TBH, I wanted to keep migrator as thin as possible, but this seems to be a reasonable common feature to have! I'll take a look on this shortly, but looks pretty nice! |
I was also not sure if this is already bloat. But from an operations perspective this feature calms my nerves. |
I think it's a good idea. Just one thing, I see that we are replicating the following snippet of code:
Maybe it would make more sense to tidy up this, or simply export a function that accomplish this task so the users could use it? Apart from this logic we are just offering printing. |
Something like the Maybe it could make sense also to merge that func with the existing What do you think? |
Yes, of course. I wanted to keep the noise low on changes. But your suggestions make sense to me. |
This would require breaking interface changes because |
What you say it's what is being asked at #8 . Any other idea? Leave the PR as is? I prefer not to make them, but I wouldn't worry too much about breaking changes as we already are at v0. |
We definitevely have a naming issue here, maybe changing the interface name when exporting it would be easier without falling on those problems? Since the project's name is migrator (maybe the most adequate name for an interface I can think of) according to Effective GO: https://golang.org/doc/effective_go.html#interface-names We have to think about alternatives. I cannot say I love it, but maybe https://en.wiktionary.org/wiki/migrater Thoughts? |
Another option could be (with breaking changes): Interface CC\ @glerchundi |
Hi, I did not want to do heavy changes on your code. It also adds change verification of applied migrations, which is also important to me. |
I pushed the interface changes I already had here. |
Cool! Although I didn't wanted to add Let me check the whole code to reason about tests etc, so we can polish things before merging. Thanks a lot for the work done! |
I'll be off for a few weeks, but will revisit this once I return. 🙂 |
Thanks a lot for the job done here, I'ts been very useful in #17 I think that I didn't added Please, let me know want you think about this @cinemast and if this works for you. There are few other improvements since this also. |
This fixes #9