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

          1. screenshot-1.png
            339 kB
            Cate Boerema
          2. screenshot-2.png
            299 kB
            Cate Boerema
          3. screenshot-3.png
            350 kB
            Cate Boerema
          4. screenshot-4.png
            234 kB
            Cate Boerema
          5. screenshot-5.png
            175 kB
            Cate Boerema
          6. Skärmavbild 2020-03-26 kl. 16.29.05.png
            630 kB
            Charlotte Whitt
          7. Skärmavbild 2020-03-26 kl. 16.30.27.png
            593 kB
            Charlotte Whitt
          8. Skärmavbild 2020-03-26 kl. 16.30.56.png
            609 kB
            Charlotte Whitt
          9. Skärmavbild 2020-03-26 kl. 16.33.11.png
            593 kB
            Charlotte Whitt
          10. Skärmavbild 2020-03-27 kl. 12.08.46.png
            686 kB
            Charlotte Whitt
          11. Skärmavbild 2020-03-27 kl. 12.09.07.png
            691 kB
            Charlotte Whitt
          12. Skärmavbild 2020-03-27 kl. 12.10.38.png
            693 kB
            Charlotte Whitt
          13. Skärmavbild 2020-03-27 kl. 12.11.03.png
            676 kB
            Charlotte Whitt
          14. Skärmavbild 2020-05-12 kl. 18.53.52.png
            722 kB
            Charlotte Whitt
          15. Skärmavbild 2020-05-12 kl. 18.54.31.png
            712 kB
            Charlotte Whitt
          16. Skärmavbild 2020-05-12 kl. 18.56.29.png
            774 kB
            Charlotte Whitt
          17. Skärmavbild 2020-05-12 kl. 19.11.35.png
            743 kB
            Charlotte Whitt

          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