Skip to content
This repository was archived by the owner on Jul 19, 2021. It is now read-only.
This repository was archived by the owner on Jul 19, 2021. It is now read-only.

A warning should tell you if you don't have permission #16

@a-barbieri

Description

@a-barbieri

Issue

Currently if you don't have access to a resource because you forget to give permission to your API user, the query returns an empty array. This leaves you in a total darkness.

Expected behaviour

There should be a warning that informs you what the problem is. This is very helpful whne debugging.

How to reproduce the issue

  1. create a new structure for components
  2. create a some components
  3. run the query below
{
  components_by_structure(structure_slug: "my-new-structure"){
    edges {
      node {
        id
      }
    }
  }
}

As you forgot to update your API user to allow accessing the new structure, the query will not fail but will give you an empty array.

System configuration

Binda API version: v0.2.0.alpha.1

Binda version: 0.1.11

Rails version: 5.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions