Skip to content

generate-blueprint: apply defaults to selected generators - #34133

Open
patchwork-coder wants to merge 4 commits into
jhipster:mainfrom
patchwork-coder:fix-blueprint-defaults-noninteractive
Open

generate-blueprint: apply defaults to selected generators#34133
patchwork-coder wants to merge 4 commits into
jhipster:mainfrom
patchwork-coder:fix-blueprint-defaults-noninteractive

Conversation

@patchwork-coder

Copy link
Copy Markdown

Fixes #33923

Problem

generate-blueprint --defaults --sub-generators app applies defaults to the top-level configuration, but still prompts for each selected sub-generator. This blocks unattended blueprint upgrades and exits with ExitPromptError in non-interactive environments.

Change

Apply defaultSubGeneratorConfig() to every selected built-in and additional sub-generator when --defaults is enabled. Duplicate selections are collapsed before initializing their storage.

A regression test supplies conflicting prompt answers and verifies that the stored per-generator values remain the documented defaults, proving the prompts are skipped.

Verification

  • Manual reproduction before the patch: command stops at "Is app generator a side-by-side blueprint?"
  • Manual verification after the patch: the same command completes and generates the blueprint without interaction
  • npx esmocha generators/generate-blueprint/generator.spec.ts --no-parallel --no-insight — 26 passing
  • npm run lint — passing
  • npm run check-types — passing

AI assistance disclosure

OpenAI Codex assisted with reproducing the issue, implementing the focused change, and preparing the regression test. The resulting diff was reviewed and tested locally. Both commits include a Co-authored-by: OpenAI Codex <[email protected]> trailer.


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

  • All continuous integration tests are green (pending)
  • Tests are added where necessary
  • The JDL part is updated if necessary (not applicable)
  • jhipster-online is updated if necessary (not applicable)
  • Documentation is added/updated where necessary (not applicable)
  • Coding Rules & Commit Guidelines as per our CONTRIBUTING.md document are followed
  • AI coding assistant use is disclosed above and credited via Co-authored-by: trailers
  • I have personally reviewed, understood, and tested the changes — including any AI-generated code

patchwork-coder and others added 4 commits July 14, 2026 13:44
Keep the focused regression test aligned with the repository file style.

Co-authored-by: OpenAI Codex <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update blueprints to JHipster v9.2.0

1 participant