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

Sorting is not working for edge_vertex query with embedded_dj repo

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.0.0
    • Fix Version/s: None
    • Component/s: Module - Relationships
    • Labels:
    • Environment:
      OpenIDM: 7.0.0-SNAPSHOT bbf905c

      Description

      Edge-vertex query with sorting is not working for embedded_dj repo.

      Steps to reproduce:

      1. deploy IDM with sample sync-with-csv
      2. execute reconcialiation
      3. run this query
        curl -X GET \
          'http://idm.example.com:8080/openidm/internal/role/openidm-authorized/authzMembers?_queryFilter=_refResourceCollection%20eq%20%27managed/user%27&_sortKeys=userName' \
          -H 'Content-Type: application/json' \
          -H 'Cookie: session-jwt=' \
          -H 'X-OpenIDM-Password: openidm-admin' \
          -H 'X-OpenIDM-Username: openidm-admin' \
          -H 'cache-control: no-cache'
        
      4. Then execute another query with reverse sorting:
        curl -X GET \
          'http://idm.example.com:8080/openidm/internal/role/openidm-authorized/authzMembers?_queryFilter=_refResourceCollection%20eq%20%27managed/user%27&_sortKeys=-userName' \
          -H 'Content-Type: application/json' \
          -H 'Cookie: session-jwt=' \
          -H 'X-OpenIDM-Password: openidm-admin' \
          -H 'X-OpenIDM-Username: openidm-admin' \
          -H 'cache-control: no-cache'
        

      Expected results: records should be sorted accordingly
      Actual results: record are not sorted correctly, the results is same for both queries

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dhogan Dirk Hogan
                Reporter:
                alexander.dracka Alexander Dracka
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: