Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30360

Fix search results not being sorted when a quick filter is used

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Sort infos are taken into account in this order: first parameters, then quick filters, then defaults from page provider.
    • Backlog priority:
      700
    • Sprint:
      nxplatform #36, nxplatform #37
    • Story Points:
      0

      Description

      The original issue was reported as a Web UI issue but upon further investigation we suspect that it is caused by an inconsistency in the behaviour of the page provider when handling quick filters and sorting.

      For example, using a fresh Nuxeo server:

      1. Create a Workspace document and inside it a few File documents with unordered file names (ex: "A", "C", "D", "B").
      2. Executing the default_search gets all the documents in the server.
      3. Using sortBy=dc:title and sortOrder=asc gets all the documents ordered by title.
      4. Using quickFilters=noFolder gets a filtered list of documents.
      5. It would be expected that adding sortBy and sortOrder to the previous search would result in a list of filtered and sorted results, but instead, the search results are exactly the same as the previous ones, completely unordered.

      The goal is to be able to get the expected results when setting both quick filters and sorting params on a search.

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m