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 composing component priority. #26080

Merged
merged 6 commits into from May 14, 2024
Merged

Conversation

mshima
Copy link
Member

@mshima mshima commented May 8, 2024

Add a new priority to improve prompts order.

This will allow to configure (initialize, prompt, configure and compose) every backend generator before client generators.

Related to #26057 (comment) and fixes #26079.


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.

@mshima mshima changed the title Add composing component component. Add composing component priority. May 9, 2024
it('should match order', () => {
expect(runResult.askedQuestions.map(({ name }) => name)).toMatchInlineSnapshot(`
[
"baseName",
Copy link
Member Author

Choose a reason for hiding this comment

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

project-name generator

expect(runResult.askedQuestions.map(({ name }) => name)).toMatchInlineSnapshot(`
[
"baseName",
"applicationType",
Copy link
Member Author

Choose a reason for hiding this comment

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

server generator

[
"baseName",
"applicationType",
"packageName",
Copy link
Member Author

Choose a reason for hiding this comment

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

java/bootstrap generator

"baseName",
"applicationType",
"packageName",
"buildTool",
Copy link
Member Author

Choose a reason for hiding this comment

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

java/build-tool generator

Comment on lines +181 to +189
"reactive",
"authenticationType",
"serverTestFrameworks",
"databaseType",
"prodDatabaseType",
"devDatabaseType",
"cacheProvider",
"enableHibernateCache",
"serverSideOptions",
Copy link
Member Author

Choose a reason for hiding this comment

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

spring-boot generator

Comment on lines 190 to 192
"enableTranslation",
"nativeLanguage",
"languages",
Copy link
Member Author

Choose a reason for hiding this comment

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

languages generator

Comment on lines +193 to +196
"clientFramework",
"clientTestFrameworks",
"withAdminUi",
"clientTheme",
Copy link
Member Author

Choose a reason for hiding this comment

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

client generator

@mshima mshima marked this pull request as ready for review May 13, 2024 16:44
@DanielFran DanielFran merged commit 03334ed into jhipster:main May 14, 2024
52 checks passed
@mshima mshima deleted the composing-component branch May 14, 2024 11:07
});

it('should match order', () => {
expect(runResult.askedQuestions.map(({ name }) => name)).toMatchInlineSnapshot(`
Copy link
Contributor

Choose a reason for hiding this comment

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

Locally running npm test, the askedQuestion returns undefined. Any clue?

Copy link
Member Author

Choose a reason for hiding this comment

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

npm ci?
Requires an updated version of yeoman-test.

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.

Questions should follow the same order between major releases
3 participants