Uploaded image for project: 'mod-inventory-storage'
  1. mod-inventory-storage
  2. MODINVSTOR-574

Endpoint instance-bulk/ids returns only 100 records despite there is more than 100 available in DB

    XMLWordPrintable

Details

    • Standard Bug Write-Up Format
    • Concorde - Sprint 98, Concorde - Sprint 99
    • Core: Platform
    • Q3 2020 Bug Fix
    • Chalmers, MO State, Simmons, TAMU

    Description

      Overview:
      Endpoint instance-bulk/ids returns only 100 records despite there is more than 100 available in DB.

      Expected Results:
      All records' UUIDs are returned
      Actual Results:
      Only 100 records are returned

      Additional Information:
      cURL

      curl 'https://okapi-bugfest-goldenrod.folio.ebsco.com/instance-bulk/ids?query=%28cql.allRecords%3D1%20not%20discoverySuppress%3D%3D%22true%22%20and%20instanceTypeId%3D%22d98790c7-004d-4336-9338-bcc2773f4f93%22%29%20sortby%20title' \
        -H 'authority: okapi-bugfest-goldenrod.folio.ebsco.com' \
        -H 'accept: application/json' \
        -H 'dnt: 1' \
        -H 'x-okapi-tenant: fs09000000' \
        -H 'accept-language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,uk;q=0.6' \
        -H 'x-okapi-token: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJtYWdkYXoiLCJ1c2VyX2lkIjoiZTk2NjE4YTktMDRlZS00ZmVhLWFhNjAtMzA2YThmNGRkODliIiwiaWF0IjoxNjAwMjQ1NTExLCJ0ZW5hbnQiOiJmczA5MDAwMDAwIn0.JQqzBd2ax0gzT-YGvMZUfCcxfv0uAxUk_wqtVINBjuA' \
        -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36' \
        -H 'content-type: application/json' \
        -H 'origin: https://bugfest-goldenrod.folio.ebsco.com' \
        -H 'sec-fetch-site: same-site' \
        -H 'sec-fetch-mode: cors' \
        -H 'sec-fetch-dest: empty' \
        -H 'referer: https://bugfest-goldenrod.folio.ebsco.com/inventory?filters=discoverySuppress.false%2Cresource.d98790c7-004d-4336-9338-bcc2773f4f93&sort=title' \
        --compressed
      

      PgUtil.streamGet uses PostgresClient.doStreamGetQuery that is limited to 100 in

      RowStream<Row> rowStream = new PreparedRowStream(preparedStatement, 100, Tuple.tuple());

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                Viktor Soroka Viktor Soroka
                Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases