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

move entity to base-application #20957

Merged
merged 3 commits into from
Feb 1, 2023

Conversation

mshima
Copy link
Member

@mshima mshima commented Jan 29, 2023

Move entity operations from generators/base to generators/base-application.
Generate a temporary generator-ts.mts to keep ts implementation while generator is js.


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

/**
* get sorted list of entitiy names according to changelog date (i.e. the order in which they were added)
*/
getExistingEntityNames(): string[] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be in a support file isn't it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO no.
Every core api should be implemented inline in the generator (except some utilities).
And we should avoid utilities to use any complex parameter like the generator and the log.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why am I stating that: these APIs will certainly be used by many generators, so we'll avoid passing complex parameters (generator) reusing them by moving this method to a dedicated support package.

I agree generatorshould not be passed as an attribute. LogAdapter looks to be a must (quite systematic) as there's no slf4j-like static injection fwk

@DanielFran DanielFran merged commit 7c7a981 into jhipster:main Feb 1, 2023
@mshima mshima deleted the skip_ci-generator-base branch February 1, 2023 13:53
@DanielFran DanielFran added this to the 8.0.0-beta.1 milestone Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants