Can't open Loan action history for loans > 100
Description
CSP Request Details
CSP Rejection Details
Potential Workaround
Attachments
blocks
clones
duplicates
Checklist
hideTestRail: Results
Activity

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 PMEdited
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:
Details
Assignee
Matt ConnollyMatt ConnollyReporter
Emma BoettcherEmma BoettcherPriority
P2Story Points
5Sprint
NoneDevelopment Team
ProkopovychFix versions
TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee

Reporter

Steps to reproduce
Find a user with > loans
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.