-
-
Notifications
You must be signed in to change notification settings - Fork 609
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
Codegen output to multiple files (one per table) #906 #1785
Conversation
If anything is preventing this from being merged in I'll be happy to adjust it. |
@Asamsig still happy with this. If there are no objections, I could include this in 3.3 |
This should be good. Would be great to see in the next release. 👍 |
If so. My last request is that we do not merge all those commits separately, but do some cleanup. I see two approaches and I let you choose 😉 :
|
I will argue that squash-merge is not really a cowboy version, but the best option we have to easy maintenance. If there is only one single commit it's very easy to backport changes by cherry-picking. The common practice in many projects is to have a Back in the time, when #1274 was fixed, it was impossible to make a quick bug fixing release. The The akka project have been using this technique successfully for quite some time. The bottom line is: between a list of commits with some meaningful messages, that probably nobody will analize later on, and a cherry-pickable commit, there is much more value, from a maintenance point of view, to choose for the latter. (my 2cc) |
@renatocaval hear hear! I agree with most of that. By option 2 I meant one, or possibly more, cherry-pickable commits. If it is going to be just one, then I can do it with squash merge, but if there are parts of this PR that could be used as independent commits, then I think more commits is better. |
I don't think any of the seperate commits has any value, so we should probably just squash it all. I have time tomorrow to fix this. |
4b0404f
to
a05d562
Compare
I've now squashed all the commits into one commit, I ran into a few problems, but I think I resolved everything correctly, the tests look fine on my machine, so we'll see what the CI says. :) |
can you document the problems, please |
It was just git problems, I couldn't squash automatically, so I had to resolve a few conflicts and such. I ran the tests locally, and everything seems in order. |
Looks good! What about documentation? Does that need to be updated? |
I.e. anything in here that needs to change: http://slick.lightbend.com/doc/3.2.3/code-generation.html |
a05d562
to
4ba463f
Compare
I've added a little information to the documentation, describing the new parameter and the effects of it. |
This is a continuation of pull request 987, solving issue #906
I've updated the code to work with 3.2.x, added multiple file out to the current test suites, i.e. CodeGeneratorRoundTripTest and CodeGeneratorAllTest. Everything should be working. I've added a new boolean to the run methods called
outputToMultipleFiles
, I've set the default value to false, it shouldn't break any existing behavior.