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

Add rank when building modules #12075

Merged

Conversation

pascalgrimaud
Copy link
Member

No description provided.

Copy link
Contributor

@renanfranca renanfranca left a comment

Choose a reason for hiding this comment

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

Thank you for your work @pascalgrimaud ! I liked the solution to automated the configuration!

@renanfranca renanfranca merged commit 91949ca into jhipster:main Mar 10, 2025
38 checks passed
@@ -26,7 +26,7 @@ private JHipsterModuleResource(JHipsterModuleResourceBuilder builder) {
apiDoc = builder.apiDoc;
tags = builder.tags;
organization = builder.organization;
rank = Optional.ofNullable(builder.rank).orElse(JHipsterModuleRank.RANK_D);
rank = JHLiteModuleSlug.getRank(slug.get()).orElse(JHipsterModuleRank.RANK_D);
Copy link
Contributor

Choose a reason for hiding this comment

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

The issue is that this will not work for slugs of custom modules from a custom jhlite.
A proper solution is to extends the module slug factory interface.

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, all custom modules will be rank D :-D

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.

3 participants