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

Split server cleanup in multiple files #18449

Merged
merged 1 commit into from
Apr 24, 2022

Conversation

Tcharl
Copy link
Contributor

@Tcharl Tcharl commented Apr 23, 2022

This pr is meant to help the future split of server variant into multiple generator or sub folders

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.

@DanielFran
Copy link
Member

@Tcharl maybe rename method cleanupOldServerFiles to cleanupOldFiles?

@Tcharl
Copy link
Contributor Author

Tcharl commented Apr 24, 2022

@DanielFran
As I'm not sure about the future split I prefer to keep it like this.
i.e., the future modules split could contain only one cleanup.js file that will clean server, client and platform files for old versions. In this case we'll be happy to have a cleanupoldserverfile method instead of a one fits all I guess

@Tcharl Tcharl merged commit 2e35255 into jhipster:main Apr 24, 2022
@@ -0,0 +1,37 @@
/**
Copy link
Member

Choose a reason for hiding this comment

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

This belongs to the server generator .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not so sure for this one: in the future this method will be in the cleanup file of angular

@@ -0,0 +1,37 @@
/**
Copy link
Member

Choose a reason for hiding this comment

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

We won’t have h2 generator, we will have sql.

@@ -0,0 +1,36 @@
/**
Copy link
Member

Choose a reason for hiding this comment

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

We won’t have postgres generator, should be sql.

@@ -0,0 +1,38 @@
/**
Copy link
Member

Choose a reason for hiding this comment

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

If we split reactive, we may need to split every other tech into imperative/reactive.
We probably should keep it in server.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suggest to have a clean-reactive file for everything that is common, but use if(reactive)in the respective cleanup-<tech> for everything related to a particular technology (sql, angular, ...)

@Tcharl
Copy link
Contributor Author

Tcharl commented Apr 24, 2022

Clear, I'll take it into account in the next PR (I've a 3 hours flight so will be fixed tonight)

@DanielFran DanielFran added this to the 7.9.0 milestone Jun 22, 2022
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