graphql-engine
graphql-engine copied to clipboard
Cannot update Row Select Permission Custom Check for roles included in an inherited role
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?
- Create a user role, add some custom checks
- Create an inherited role and use the user role created at step 1)
- Try to update Row Select Permission Custom Check of the role created at step 1)
Screenshots or Screencast
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"
}
I can reproduce this. The only thing I could do to fix it is edit metadata/remote_schemas.yaml by hand.
I can also reproduce this in v2.10.1
.
same issue.
same issue