-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Improve new generators. #15883
Improve new generators. #15883
Conversation
ac1d23c
to
dda5c13
Compare
Way cleaner than what we were before for sure :-). Perfect! |
registerSpringBootOptions() { | ||
this.jhipsterOptions(options); | ||
getSpringBootOptions() { | ||
return options; |
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.
Isn't it the occasion to set scopes for options? ApplicationScope (or platformscope), ModuleScope, EntityScope and entityKeyScope?
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.
They cannot mix with applications and I hope mixins will not be required for entities.
What do you consider a platform scope?
From my point of view, it's specific to a technology, and are hierarchical instead of polymorphic.
By changing getSpringBootOptions to getSpringBootApplicationOptions, it would make sense to change the entire mixin api to *Application*
.
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.
Monitoring and service registry? I think that also docker-compose, kubenretes, openshift, ... Any platform configuration could be part of the platformconfig.
And very good idea for the Application mixins ;-)
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.
We should create platform generator with those configs.
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.
yes, but in addition I was thinking about populating a dedicated scope
object for each kind of options instead of injecting them in 'this'.
c9f679b
to
5bcabc0
Compare
5bcabc0
to
44491ce
Compare
_
from blueprint api related to Provide a custom prefix for generator tasks #15784.Please make sure the below checklist is followed for Pull Requests.
When you are still working on the PR, consider converting it to Draft (bellow reviewers) and adding
skip-ci
label, you can still see CI build result at your branch.