Uploaded image for project: 'ui-inventory'
  1. ui-inventory
  2. UIIN-1055

Bugfest: Inventory. Sorting by Title gives different result counts than no sort when *searching*

    XMLWordPrintable

Details

    • 3
    • Prokopovych

    Description

      Steps to reproduce:

      1. Login to FOLIO BugFest,
      2. Clear cache for page by clicking ctrl F5 in Windows or Command + Shift + R on a Mac
      3. Go to Inventory
      4. Select the Instance segment in the Search and filter pane
      5. Search in the search box on Keyword (title, contributor, identifier) on: Jensen (I saw this problem when doing other searches, as well (e.g. Contributor)
        1. Notice that the results are sorted by Title by default (despite
        2. "2,508 records found" is displayed
      6. Switch to the Holdings segment and select "Keyword (title, contributor, identifier), and search on: Jensen
        1. Notice that the results are NOT sorted by Title by default
        2. "7,955 records found" is displayed
      7. Switch to the Item segment and select "Keyword (title, contributor, identifier), and search on: Jensen
        1. Notice that the results are NOT sorted by Title by default
        2. "7,955 records found" is displayed
      8. Switch then back again Instance segment, click "reset all" and select "Keyword (title, contributor, identifier), and search on: Jensen
        1. Results are no longer sorted by Title by default (the only way I can get this default sort to happen again is to clear the cache)
        2. "7,955 records found" is displayed
      9. Now, click the Title column header to manually sort by Title
      10. Notice that the result count changes to "2,508 records found"
      11. Now click "Reset all" and switch to Contributor search
      12. Search for Jensen
      13. Notice that, also when searching contributors by Jensen, sorting by Title gives different result counts (presumably this happens for many types of searches)

      Expected Result:

      • Sorting by Title (or any other column) should not change the result count

      Actual Result:

      Additional Info:

      • Sorting by other columns doesn't change the results count
      • We have another issue wherein sorting by title gives different result counts when applying filters: UIIN-1071
      • Testing this in BugFest resulted in instability and crashes over time:
        • For example, this "bad gateway" error
        • And this error:
        • And sometimes clicking Inventory just resulted in a blank page

      Screenshots:
      Search on Instance segment, Keyword (title, contributor, identifier): Jensen => 2,508 records found

      Search on Holdings segment, Keyword (title, contributor, identifier): Jensen => 7,631 records found

      Search on Item segment, Keyword (title, contributor, identifier): Jensen => 7,631records found

      Search on Instance segment, Keyword (title, contributor, identifier): Jensen => 7,631 records found

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                mpk35 Michal Kuklis
                charlotte Charlotte Whitt
                Charlotte Whitt Charlotte Whitt
                Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases