Consider removing the total number of results from identity search

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: backend, frontend
    • S

      Context

      Currently when calling the endpoint api/identity/search the response gives out two pieces of information: The total number of results and the list of results. The total number of results used to take in consideration all users that match the query, regardless of whether the searching user has rights to see them or not or if the results were filtered or not. This issue was dealt with OPT-4725. Now the returned number of total results is simply the number of results the user can see. Since the total number of results is now therefore redundant (it's just the size of the list) and this feature is not being used elsewhere, we should consider removing it from the response. This has implications for the Frontend, since it currently expects the total number of results

      Steps to reproduce:

      1. Create a collection
      2. Add users to it. The search window for the users triggers the endpoint requests

      Actual result :

      In the background, the response contains the field "totalResults" and the list with the matches

      Expected result:

      The response just gives out the list with the matches

            Assignee:
            Unassigned
            Reporter:
            Giuliano Rodrigues Lima
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: