-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Define a module value object? #1768
Comments
as discussed together with @hdurix @matthieulapatate : we're in a good direction here, as it will simplify a lot all the code in DomainService |
After some iterations the API now looks like this:
Still not perfect but looks like ti's the best version we got so far :) |
So a part of it done and starts to be used. Next step seems to be #1787 and we'll then need lots of other thinks (npm dependencies, replacements, etc...). Dunno how you want to handle this particular issue lifecycle |
@DamnClin : I have some question about the module system here. I'm working on refactoring the Init context:
How should I do this? 1st solution:
2nd solution:
Any advices? |
I'll say 3rd solution :) wait for #1787 since I'll have to refactor this part to handle this kind of action and you'll then be able to make a git init. Hopefully I'll work on this tomorrow (unless the weather's too good to stay inside...) |
cc @pascalgrimaud how do you want to handle this issue lifecycle? |
increasing the bounty for all the huge work |
@DamnClin : approved :) |
Following #1760 and to prepare #1666 and #1565 I think a
Module
domain object can be a good idea.A module holds all information for a specific... module in JHipster Lite (example: init, cache, ...). The idea would be to enforce modules invariants, ease modules creation / maintenance and avoid the big ApplicationService (which is a very bad smell).
I gave a try to a build API, ended up with something like that:
The idea will then be to create a domain service using the current
ProjectRepository
to create a module (this is a first step, the next one would be to move that in a dedicated repository and to deleteProjectRepository
)What do you think of this idea? I give it a try to create a very simple new module (ex: one with a git cheat sheet)?
The text was updated successfully, but these errors were encountered: