Can't open Loan action history for loans > 100

Description

Steps to reproduce

  1. Find a user with > loans

  2. Click on a loan to view the Loan action history page, or renew/change due date

Expected result

You are taken the Loan action history page, which is populated with the appropriate data

Actual result

You get a series of error popups, and the Loan action history page is never loaded with the loan data.

As you can see in Dev tools, request to loan-policies and requests fail, presumably since the queries are not supplying the expected id values.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

Emma Boettcher June 13, 2020 at 2:37 AM

Tested this on folio-snapshot with a user with 108 loans. No errors loading the loans.

Brooks Travis June 11, 2020 at 6:53 PM

I don't think there are currently 100 items in Snapshot, at all.

Emma Boettcher June 11, 2020 at 6:06 PM

is there a user in folio-snapshot with 100+ loans that I can test this with?

Brooks Travis June 10, 2020 at 7:34 PM

It looks like, from what I can tell, the javascript that handles the click event on the loan in the table isn't picking up the Ids to populate the API calls query parameters. It seems like the relevant information is being returned by the API calls that populate the loans list (the limit on that query is 10000), and the links work fine (mostly, save the situations) for the first 100 loan records. This is just a guess, but could the javascript that's generating the API calls to get loan details be excluding the results > 100 from its list of loan records. I don't have any idea how that information is stored for later use by the UI once it's returned for the loan history view.

Lisa Sjögren June 10, 2020 at 6:19 PM
Edited

In case this needs to be clarified, we are seeing this error in the Chalmers environment with loans that clearly have a valid loanPolicyId and itemId.

For example this one:

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Prokopovych

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created May 21, 2020 at 8:45 PM
Updated June 13, 2020 at 2:37 AM
Resolved June 13, 2020 at 2:37 AM
TestRail: Cases
TestRail: Runs