-
Notifications
You must be signed in to change notification settings - Fork 2.8k
option to disable metadata and graphql apis (close #1088) #1650
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
Conversation
|
Review app for commit 1e334ff deployed to Heroku: https://hge-ci-pull-1650.herokuapp.com |
server/src-lib/Hasura/Server/App.hs
Outdated
|
|
||
| -- get "v1alpha1/graphql/schema" $ | ||
| -- mkSpockAction encodeQErr serverCtx v1Alpha1GQSchemaHandler | ||
| when enableRQL $ do |
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.
Let's put this under the earlier when enableRQL block
|
@nizar-m After a bit of discussion, we want to call these |
|
|
|
I'd also suggest changing So, |
server/src-lib/Hasura/Server/Init.hs
Outdated
| readAPIs :: String -> Either String [API] | ||
| readAPIs = mapM readAPI . T.splitOn "," . T.pack | ||
| where readAPI si = case T.toUpper $ T.strip si of | ||
| "RQL" -> Right RQL |
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.
We need to change RQL to METADATA
|
Review app for commit beed128 deployed to Heroku: https://hge-ci-pull-1650.herokuapp.com |
|
Review app for commit fb27d8e deployed to Heroku: https://hge-ci-pull-1650.herokuapp.com |
docs/graphql/manual/deployment/graphql-engine-flags/reference.rst
Outdated
Show resolved
Hide resolved
shahidhk
left a comment
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
|
Review app for commit acb56cc deployed to Heroku: https://hge-ci-pull-1650.herokuapp.com |
|
Review app https://hge-ci-pull-1650.herokuapp.com is deleted |
<!-- The PR description should answer 2 important questions: --> ### What Make these work, functional no-op. V3_GIT_ORIGIN_REV_ID: 92b0fb21da4fc3a9a540c6be58038e4e593ecca4
Description
Currently both the Metadata (/api/1/table and /v1/query) and the GraphQL endpoints (/v1alpha1/graphql) are enabled by default.
A new flag
--enabled-apis(EnvVar: HASURA_GRAPHQL_ENABLED_APIS) is introduced.--enabled-apis metadataenables Metadata--enabled-apis graphqlenabled GraphQL--enabled-apis metadata,graphqlenables bothWhat component does this PR affect?
Requires changes from other components? If yes, please mark the components:
Related Issue
#1088
Solution and Design
HASURA_GRAPHQL_ENABLED_APISas a comma separated list of APIs to be enabled--enabled-apisType
Checklist: