-
Notifications
You must be signed in to change notification settings - Fork 207
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
Conversation
… dev/sezalchug/addDabConfigureRuntime
@microsoft-github-policy-service agree company="Microsoft" |
/azp run |
/azp run |
add the screenshot in the sample request section. |
Also, add few lines for What is the Change? |
There was a problem hiding this 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!
There was a problem hiding this 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.
….com/Azure/data-api-builder into dev/sezalchug/addDabConfigureRuntime
There was a problem hiding this 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!
/azp run |
/azp run |
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?
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}