Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-744

Sort order not stable when ordering documents

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.25
    • Component/s: Filters
    • Release Notes Summary:
      The sort in nuxeo-data-grid element is stable by preventing from concurrent sort requests.
    • Tags:
    • Backlog priority:
      500
    • Sprint:
      nxGang Sprint 10.10.4
    • Story Points:
      3

      Description

      1. install nuxeo
      2. install web ui
      3. create a workspace
      4. create several documents
      5. click the Switch to grid view button
      6. choose Title in the Sort By section
      7. click the arrow icon several times (please note there are 2 positions: either up or down but not unsorted)
      8. observe sometimes the order is wrong
      9. open the chrome inspector
      10. click the network tab
      11. replay the scenario
      12. observe there are 2 requests sent for each click (one with asc order and the other one with desc. For example:
        currentPageIndex=0&offset=0&pageSize=9&sortBy=dc%3Atitle&sortOrder=asc&ecm_parentId=6f5cce60-1024-4091-9a28-cc6aae6f9885
        

        and

        currentPageIndex=0&offset=0&pageSize=10&sortBy=dc%3Atitle&sortOrder=desc&ecm_parentId=6f5cce60-1024-4091-9a28-cc6aae6f9885
        

        Depending of the order in which they are processed the result is affected accordingly.

      13. please note sometimes both requests are using the same order so this may need several trials.
      14. click the Switch to table view button
      15. replay the same scenario (please note there are 3 positions: arrow up, arrow down and disabled)
      16. observe one request is sent per click

        Attachments

        1. gridView1.png
          gridView1.png
          1.33 MB
        2. gridView2.png
          gridView2.png
          1.32 MB
        3. tableView.png
          tableView.png
          667 kB

          Issue Links

            Activity

              People

              • 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, 30 minutes
                  1h 30m