Uploaded image for project: 'ui-users'
  1. ui-users
  2. UIU-73

Subpermissions sent to back-end should be strings only

    XMLWordPrintable

    Details

    • Template:

      Description

      When you add a subpermission to a permission set, we presently send the entire subpermission structure:

      PUT /perms/permissions/f2808d5e-5ba6-4c3f-aa07-3c8eaf351059
      {
         "visible" : true,
         "subPermissions" : [
            {
               "subPermissions" : [
                  "circulation.loans.collection.get",
                  "circulation.loans.item.get",
                  "circulation.loans.item.post",
                  "circulation.loans.item.put",
                  "circulation.loans.item.delete",
                  "circulation.loans.collection.delete"
               ],
               "visible" : false,
               "permissionName" : "circulation.all",
               "description" : "Entire set of permissions needed to use the circulation module",
               "tags" : [],
               "id" : "437a9009-15f6-4b5b-8fd9-dcbacf850272",
               "mutable" : false,
               "displayName" : "circulation module - all permissions"
            }
         ],
         "permissionName" : "f2808d5e-5ba6-4c3f-aa07-3c8eaf351059",
         "tags" : [],
         "id" : "f2808d5e-5ba6-4c3f-aa07-3c8eaf351059",
         "mutable" : true,
         "description" : "Just for testing",
         "displayName" : "Mike's set"
      }
      

      But as discussed in today's comments on MODPERMS-5, the subpermissions should only be permission names:

      PUT /perms/permissions/f2808d5e-5ba6-4c3f-aa07-3c8eaf351059
      {
         "visible" : true,
         "subPermissions" : [ "circulation.all" ],
         "permissionName" : "f2808d5e-5ba6-4c3f-aa07-3c8eaf351059",
         "tags" : [],
         "id" : "f2808d5e-5ba6-4c3f-aa07-3c8eaf351059",
         "mutable" : true,
         "description" : "Just for testing",
         "displayName" : "Mike's set"
      }
      

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mike Mike Taylor
                Reporter:
                mike Mike Taylor
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 hour, 15 minutes
                    1h 15m

                      TestRail: Runs

                        TestRail: Cases