-
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
in CLI
#2403
Comments
sezal98
changed the title
[Enhancement]
[Enhancement] Oct 13, 2024
dab configure --runtime
in CLIdab configure --runtime
GRAPHQL in CLI
2 tasks
@sezal98, Please don't change the name of this issue. This was created to track dab-configure at a single place. Just like you created the issue for https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-sub-issues |
abhishekkumams
changed the title
[Enhancement]
[Enhancement] Oct 14, 2024
dab configure --runtime
GRAPHQL in CLIdab configure --runtime
in CLI
Added sub issues as suggested. |
seantleonard
pushed a commit
that referenced
this issue
Oct 19, 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? - [x] Integration Tests - [x] 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}` <img width="663" alt="image" src="https://github.com/user-attachments/assets/e8230cad-1c85-4088-8c9d-6bacdc26aabd"> ---------
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Below are the requirements for adding support for updating runtime section of the config using
dab-configure
command.rest.path
/api
)rest.enabled
true
,false
(default:true
)rest.request-body-strict
true
,false
(default:true
)graphql.allow-introspection
true
,false
(default:true
)graphql.path
/graphql
)graphql.enabled
true
,false
(default:true
)graphql.multiple-mutations.create.enabled
true
,false
(default:true
)host.mode
Development
,Production
host.cors.origins
host.cors.allow-credentials
true
,false
(default:false
)host.authentication.provider
StaticWebApps
,AppService
,AzureAD
,Jwt
host.authentication.jwt.audience
host.authentication.jwt.issuer
cache.enabled
true
,false
(default:false
)cache.ttl-seconds
3600
)Design guide: Design guide: https://github.com/Azure/data-api-builder/blob/main/docs/design/dab-configure.md
Have a look at the original issue: #2251
Attached to this issue are other PRs which can be used to get better understanding.
NOTE:
Feel free to break the task into multiple PRs such as rest/graphql/host.
The text was updated successfully, but these errors were encountered: