Skip to content
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

divergent migration handling is missleading #339

Open
ignatz opened this issue Jul 9, 2024 · 3 comments
Open

divergent migration handling is missleading #339

ignatz opened this issue Jul 9, 2024 · 3 comments

Comments

@ignatz
Copy link

ignatz commented Jul 9, 2024

Was just playing around with divergent migrations, i.e. same version but different name.

The Runner has a configuration flag "set_abort_divergent" that does what the name suggests. However, it may come as a surprise that divergent migration are then simply not applied (they also cannot, since the version column in the migration schema has a unique constraint).

There's a lot of error logging going on, it might be worth letting the user know that while the migration proceeds, it is only partially applied 🤷

@jxs
Copy link
Member

jxs commented Jul 9, 2024

Hi, and thanks for your interest! Would you be open to submit a PR addressing it?
Thanks!

@ignatz
Copy link
Author

ignatz commented Jul 10, 2024

Would you be open to submit a PR addressing it?

I normally would by default and since you asked explicitly I did: #341 .

That said, let me share some thoughts and please don't take this personal, maintaining open source is hard and refinery is much appreciated. Ok, here it comes...

I held myself from sending a PR because I wasn't sure if this project/respository is still alive:

  • A unit test is failing at head
  • Formatting isn't applied
  • Some of the code could benefit from some streamlinging (The PR is so long because I felt the urge to opportunistically refactor)
  • (and least importantly and understandably so, you seem to be rejecting new drivers. Which makes sense but means that I'm maintaining my own fork anyways)

All that said, this is all very normal. We're all busy and have other things going on. I'm mostly just wondering where you see the future of refinery? Do you need help?

@ignatz
Copy link
Author

ignatz commented Jul 21, 2024

Coming back to this, I guess I'm full of crap. I did break a bunch of tests. Should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants