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

[Enhancement] dab configure --runtime GraphQL in CLI #2421

Merged
merged 15 commits into from
Oct 19, 2024

Conversation

sezal98
Copy link
Contributor

@sezal98 sezal98 commented Oct 13, 2024

Why make this change?

This change is related to allowing users to modify the config file with a simple CLI command.
This PR covers adding changes for field for GRAPHQL config parameters
Related to issue:
Parent Issue #2403
Sub Issue: #2422

What is the Change?

This change is to accomodate updation in runtime config from the CLI tool.
A change in adding RuntimeConfigValidatorUtil is added to make a static class which contains all the statis functions in RuntimeConfigValidator so that we dont have to create an object everytime we use this validator function. We can simply call this using the static function class.

[-] RuntimeConfigValidatorUtil also added another validation condition in the check where URI should not contain white-spaces along with reserved characters and starts with '/'.

How was this tested?

  • Integration Tests
  • Unit Tests

Sample Request(s)

dab configure --runtime.graphql.enabled true -c {ConfigFileName}
dab configure --runtime.graphql.path /updatedPath -c {ConfigFileName}
dab configure --runtime.graphql.allow-introspection true -c {ConfigFileName}
dab configure --runtime.graphql.multiple-mutations.create.enabled true -c {ConfigFileName}

image

@sezal98 sezal98 added this to the 1.3 milestone Oct 13, 2024
@sezal98 sezal98 self-assigned this Oct 13, 2024
@abhishekkumams abhishekkumams added the enhancement New feature or request label Oct 14, 2024
@sezal98 sezal98 added config changes related to config enhancement New feature or request and removed enhancement New feature or request labels Oct 14, 2024
@sezal98
Copy link
Contributor Author

sezal98 commented Oct 14, 2024

@microsoft-github-policy-service agree company="Microsoft"

@sezal98
Copy link
Contributor Author

sezal98 commented Oct 14, 2024

/azp run

@sezal98
Copy link
Contributor Author

sezal98 commented Oct 14, 2024

/azp run

@abhishekkumams
Copy link
Contributor

add the screenshot in the sample request section.

@abhishekkumams
Copy link
Contributor

Also, add few lines for

What is the Change?

src/Cli.Tests/EndToEndTests.cs Outdated Show resolved Hide resolved
src/Cli/ConfigGenerator.cs Outdated Show resolved Hide resolved
Copy link
Contributor

@seantleonard seantleonard left a comment

Choose a reason for hiding this comment

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

Some nits and suggestions. Thanks for adding this functionality to DAB CLI and DAB validation!

src/Cli/ConfigGenerator.cs Outdated Show resolved Hide resolved
src/Core/Configurations/RuntimeConfigValidatorUtil.cs Outdated Show resolved Hide resolved
src/Core/Configurations/RuntimeConfigValidatorUtil.cs Outdated Show resolved Hide resolved
src/Cli.Tests/ConfigureOptionsTests.cs Outdated Show resolved Hide resolved
src/Cli.Tests/ConfigureOptionsTests.cs Outdated Show resolved Hide resolved
src/Cli.Tests/ConfigureOptionsTests.cs Outdated Show resolved Hide resolved
src/Cli.Tests/ConfigureOptionsTests.cs Outdated Show resolved Hide resolved
src/Cli.Tests/EndToEndTests.cs Outdated Show resolved Hide resolved
Copy link
Contributor

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

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

Great starter PR, left some suggestions.

Copy link
Contributor

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

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

LGTM. Congratulations on your first PR!

@sezal98
Copy link
Contributor Author

sezal98 commented Oct 19, 2024

/azp run

@seantleonard
Copy link
Contributor

/azp run

@seantleonard seantleonard enabled auto-merge (squash) October 19, 2024 22:08
@seantleonard seantleonard merged commit bc0f8f0 into main Oct 19, 2024
7 checks passed
@seantleonard seantleonard deleted the dev/sezalchug/addDabConfigureRuntime branch October 19, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config changes related to config enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] dab configure --runtime GRAPH QL in CLI
5 participants