Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-9828

Performance bottleneck when adding user to role members

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Expired
    • Affects Version/s: OpenIDM 4.5.0, OpenIDM 5.0.0, OpenIDM 5.5.0
    • Fix Version/s: None
    • Component/s: Module - Roles
    • Labels:
    • Support Ticket IDs:

      Description

      A role has 500+ members, and one assignment. Adding one user to the role : 35 seconds

      The reason :

       

      1. This configuration for role in managed.json :

      "onSync" : {
      "type" : "text/javascript",
      "source" : "require('roles/onSync-roles').syncUsersOfRoles(resourceName, oldObject, newObject, ['members']);"
      },

      should include the '_rev' attribute.

      OR : the script should automatically include '_rev' in the ignoredProperties array argument.

      2. If the role object has other relationship properties, even though the value did not change,  the comparison between old and new objects result to false (viewed as different). So users should be aware that this needs to be added to the ignoredProperties (that's a workaround) - implies documentation. Or, better, the comparison should also be fixed to not result into a false positive.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                patrickdiligent patrick diligent
                Reporter:
                patrickdiligent patrick diligent
                QA Assignee:
                Jakub Janoska [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: