Skip to content

Fix structurally wrong dab init --graphql.multiple-create.enabled#3407

Open
souvikghosh04 wants to merge 1 commit intomainfrom
Usr/sogh/bug3372
Open

Fix structurally wrong dab init --graphql.multiple-create.enabled#3407
souvikghosh04 wants to merge 1 commit intomainfrom
Usr/sogh/bug3372

Conversation

@souvikghosh04
Copy link
Copy Markdown
Contributor

@souvikghosh04 souvikghosh04 commented Apr 2, 2026

Why make this change?

dab init used a flat, structurally wrong option --graphql.multiple-create.enabled while the JSON schema and dab configure both use the correct nested structure --runtime.graphql.multiple-mutations.create.enabled.

What is this change?

  • Renames the dab init CLI option from --graphql.multiple-create.enabled to --graphql.multiple-mutations.create.enabled to align with the config schema hierarchy (runtime.graphql.multiple-mutations.create.enabled) and dab configure.
  • Updates all references in source, config generators, and tests. No changes to the underlying config model — MultipleMutationOptions/MultipleCreateOptions was already correct.
  • Breaking change note: The old flag --graphql.multiple-create.enabled is no longer accepted by dab init. Users should migrate to --graphql.multiple-mutations.create.enabled.

How was this tested?

  • Integration Tests
  • Unit Tests

Sample Request(s)

Before (broken):

dab init --database-type mssql --connection-string "@env('conn')" --graphql.multiple-create.enabled true

After (fixed):

dab init --database-type mssql --connection-string "@env('conn')" --graphql.multiple-mutations.create.enabled true

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the dab init CLI option name for enabling GraphQL multiple-create mutations to match the runtime configuration structure (multiple-mutations.create.enabled) and aligns related messaging/tests accordingly.

Changes:

  • Renames the dab init flag from --graphql.multiple-create.enabled to --graphql.multiple-mutations.create.enabled.
  • Updates warnings/comments and CLI tests to use the new flag name.
  • Updates the MSSQL config-generator command file to use the new flag name.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Cli/ConfigGenerator.cs Updates warning/help text references to the new CLI option name.
src/Cli/Commands/InitOptions.cs Renames the init option attribute string to the new flag name.
src/Cli.Tests/InitTests.cs Updates test documentation and DataRow display names to the new flag.
src/Cli.Tests/EndToEndTests.cs Updates end-to-end CLI argument construction and assertions to the new flag.
config-generators/mssql-commands.txt Updates generated MSSQL init command to use the new flag.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Review In Progress

Development

Successfully merging this pull request may close these issues.

[Bug]: [Critical] Structurally wrong dab init --graphql.multiple-create.enabled

5 participants