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

v20.07: fix(GraphQL): don't update cacheMb if not specified by user (GRAPHQL-… #7106

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

abhimanyusinghgaur
Copy link
Contributor

@abhimanyusinghgaur abhimanyusinghgaur commented Dec 10, 2020

…888) (#7103)

Fixes GRAPHQL-888.
Previously, if you ran this request:

$ curl -H "Content-Type: application/json" http://localhost:8080/admin -d '{"query": "mutation {config(input: {logRequest: false}){response {code message}}}"}'

Alpha logs would also print this:

I1205 22:22:51.684693 2681396 middlewares.go:178] GraphQL admin mutation. Name =  config
I1205 22:22:51.684724 2681396 config.go:38] Got config update through GraphQL admin API
I1205 22:22:51.684810 2681396 worker.go:138] Updating cacheMb to 0

Indicating that cacheMb was also updated, even it wasn't specified in the request.

This PR fixes this issue.

(cherry picked from commit c03c327)

# Conflicts:
# graphql/admin/config.go


This change is Reviewable

…888) (#7103)

Fixes GRAPHQL-888.
Previously, if you ran this request:
```
$ curl -H "Content-Type: application/json" http://localhost:8080/admin -d '{"query": "mutation {config(input: {logRequest: false}){response {code message}}}"}'
```
Alpha logs would also print this:
```
I1205 22:22:51.684693 2681396 middlewares.go:178] GraphQL admin mutation. Name =  config
I1205 22:22:51.684724 2681396 config.go:38] Got config update through GraphQL admin API
I1205 22:22:51.684810 2681396 worker.go:138] Updating cacheMb to 0
```
Indicating that cacheMb was also updated, even it wasn't specified in the request.

This PR fixes this issue.

(cherry picked from commit c03c327)

# Conflicts:
#	graphql/admin/config.go
@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Dec 10, 2020
@netlify
Copy link

netlify bot commented Dec 10, 2020

✔️ Deploy preview for dgraph-docs ready!

🔨 Explore the source changes: f2b3605

🔍 Inspect the deploy logs: https://app.netlify.com/sites/dgraph-docs/deploys/5fd200d311407400072f9051

😎 Browse the preview: https://deploy-preview-7106--dgraph-docs.netlify.app

@abhimanyusinghgaur abhimanyusinghgaur changed the title fix(GraphQL): don't update cacheMb if not specified by user (GRAPHQL-… v20.07: fix(GraphQL): don't update cacheMb if not specified by user (GRAPHQL-… Dec 10, 2020
@abhimanyusinghgaur abhimanyusinghgaur merged commit da310c1 into release/v20.07 Dec 10, 2020
@abhimanyusinghgaur abhimanyusinghgaur deleted the abhimanyu/cp-20.07 branch December 10, 2020 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

2 participants