Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1775

Once a rule is selected it gets disabled and cant be added again

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2
    • None
    • RBAC Plugin
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Release Note Not Required
    • RHDH F&UI plugins 3257

      Description of problem:

      Currently if a rule is selected it gets disbaled and cant be added again but there can be some rules users want to add multiple times with different values under `allOf/anyOf` like `HAS_ANNOTATION` for catalog-entity. But there are also some rules that cannot be added more than once like `IS_ENTITY_KIND` under `allOf`. But UI doesnt have implementation details for any plugin so it cannot make out which rules when applied together will work or not.

      Based on oandriie's input on above we should not disable rules if they are already selected as user might want to add some rules more than once. Same process is followed in backend as well.

      Steps to Reproduce

      1. Go to create role form
      2. Add a permission policy
      3. Click on configure access -> select a allOf/anyOf -> select a rule

      Actual results:

      Selected rule gets disabled under allOf/anyOf

      Expected results:

      Selected rule should not be disabled under allOf/anyOf

              divgupta Divyanshi Gupta
              divgupta Divyanshi Gupta
              RHIDP - Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: