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

Row Select Permissions Console and/or enhancement

Open andrewalex opened this issue 7 years ago • 1 comments

As applications get more complex, so do custom checks for row select permissions. Currently in the UI you have to essentially rebuild all but the most trivial of custom checks, because you will require an additional logical operator ("_and" "_or") somewhere higher in the tree, and the UI doesn't support insertion.

I propose the following

  1. Provide a button next to every node that will insert an '_and' or '_or' node in that position, and place the rest of the node below it
  2. The ability to switch from "_and" to "_or" without wiping out the nested nodes
  3. Provide a UI way to remove an '_and' or '_or' node bringing the rest of the tree up
  4. (optionally) When saving optimize out any unneeded and/or blocks

If I understand issue #1734 it provides a work around for doing this.

andrewalex avatar Jul 01 '19 01:07 andrewalex

This one is probably no longer needed now that you can directly edit the rules via json

andrewalex avatar May 16 '21 00:05 andrewalex