graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

Cannot update Row Select Permission Custom Check for roles included in an inherited role

Open iosifnicolae2 opened this issue 3 years ago • 4 comments

Version Information

Server Version: v2.0.8

Environment

OSS

What is the expected behaviour?

When I update the custom checks for a role included in an inherited role, the update should work without errors.

Keywords

  • the following parent role(s) are not found
  • which are required to construct the inherited role

What is the current behaviour?

We receive the following error:

{
    "path": "$.args[0].args",
    "error": "the following parent role(s) are not found: <my_user_role> which are required to construct the inherited role: \"<my_inherited_role>\"",
    "code": "not-exists"
}

How to reproduce the issue?

  1. Create a user role, add some custom checks
  2. Create an inherited role and use the user role created at step 1)
  3. Try to update Row Select Permission Custom Check of the role created at step 1)

Screenshots or Screencast

image

Please provide any traces or logs that could help here.

{
    "path": "$.args[0].args",
    "error": "the following parent role(s) are not found: <my_user_role> which are required to construct the inherited role: \"<my_inherited_role>\"",
    "code": "not-exists"
}

iosifnicolae2 avatar Sep 15 '21 12:09 iosifnicolae2

I can reproduce this. The only thing I could do to fix it is edit metadata/remote_schemas.yaml by hand.

clausMeko avatar Feb 24 '22 09:02 clausMeko

I can also reproduce this in v2.10.1.

altschuler avatar Sep 18 '22 08:09 altschuler

same issue.

maaft avatar Jan 18 '23 16:01 maaft

same issue

bensoutendijk avatar Apr 11 '24 16:04 bensoutendijk