Uploaded image for project: 'stripes-smart-components'
  1. stripes-smart-components
  2. STSMACOM-269

Sorting doesn't reset current page index

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 3.0.0
    • None
    • stripes-force 77, stripes-force 78, stripes-force 79
    • Stripes Force

    Description

      When sorting in modules that use SearchAndSort (such as Inventory), if the user has previously paged through multiple pages of a result list, all of those pages are re-requested with sorted data. The expected behavior is for only the first page of data to be requested with sorted data, since the current behavior could conceivably queue up hundreds of requests with 1 click.

      To reproduce:

      1. Login to FOLIO demo site and navigate to Inventory.
      2. Open browser dev tools to the network tab.
      3. Perform a search and scroll down to page through a few pages of results.
      4. Click a column header (such as title) to invoke sort
      5. Note from the dev tools that all page indexes are re-requested with sort applied.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                rberger Ryan Berger
                rberger Ryan Berger
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases