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

release/v20.07: fix(GRAPHQL): fix restoreStatusQuery #6424

Merged
merged 1 commit into from
Sep 21, 2020

Commits on Sep 9, 2020

  1. fix(GraphQL): fix restoreStatus query with query variables (#6414)

    Fixes GRAPHQL-642.
    
    For this restoreStatus query using variable
    ```
    query restoreStatus($restoreId: Int!) {
    	restoreStatus(restoreId: $restoreId) {
    		status
    		errors
    	}
    }
    ```
    was giving this panic
    ```
    panic: interface conversion: interface {} is json.Number, not int64.
    ```
    Whereas the expected result should be
    ```
    {
      "data": {
        "restoreStatus": {
          "status": "UNKNOWN",
          "errors": []
        }
      },
      "extensions": {}
    }
    ```
    This PR fixes this panic, Now `resolveStatus` with or without variable works fine.
    
    (cherry picked from commit 45afae9)
    minhaj-shakeel committed Sep 9, 2020
    Configuration menu
    Copy the full SHA
    7fbfa34 View commit details
    Browse the repository at this point in the history