Collection /role endpoint is performing badly for Manager users

XMLWordPrintable

    • 3
    • S
    • 3 - Expected

      Context:
      In SUPPORT-8628 it was discovered that the role endpoint is performing exceptionally bad for manager users. The reason for this is the code block that only get's executed for manager roles in CollecrtionRoleService.getAllRolesOfCollectionSorted to set the HasFullScopeAuthorizations flag on role entries. This block iterates every definition in the scope for every user (O(n*m)).

      AT:

      • hasFullScopeAuthorizations is removed from CollectionRoleResponseDto
      • UI is updated to remove full scope auth indicator (requires FE)

      Note:
      Resolving OPT-4258 should reduce the overhead of this check significantly

       

      Testing Notes:

      • confirm that as a manager when accessing a collections user list, the indicator showing that some other user does not have full authorizations to all collection data sources is no longer displayed

       

            Assignee:
            Unassigned
            Reporter:
            Sebastian Bathke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: