Error messages when you try to open a loan details record for the first time during a session / day / special time period

Description

Shows up in Chalmers dry run Fameflower environment, but also in Edelweiss.

Very often when you go to a user and try to access that users's loan detail record you will get 4 error messages before you can access the record in the loan detail ui. But it is only the first time you try to access a loan detail record from this person (in a time frame that I have not been able to figure out) the error shows. If you try to recreate the error you must choose a new user and new loans.

Screen recording where you can see what is happening: https://chalmersuniversity.box.com/s/oth5f352j5t4ukeyt6zzwlelxvoam1vw

Steps to reproduce

  1. Find a user that you have not looked at for a period, and that has loan

  2. Click on the user's Open loans

  3. Click on one of the existing loans

Expected result

The Loan action history page is opened, and populated with relevant loan data

Actual result

The error described above is produced, with multiple error messages appearing on the screen (see attached).

After the operator clicks Ok on all the error modals, the Loan action history page appears. It is populated with some but not all of the relevant loan data.

The Loan policy field is empty (signaled with a dash, "-"). Looking at dev tools, you can see that requests to loan-policies and requests APIs failed, presumably because both queries contain an empty id parameter.

However, if you hover over the dash representing the missing loan policy, you can see that this actually links to the correct loan policy. There is clearly some kind of disconnect/lag here, as the UI displays the Loan policy field as empty despite being aware of the correct loan policy id.

Now, reload the page. The Loan action history page is opened, and is now populated with all the relevant loan data - including the Loan policy. Whatever disconnect/lag previously existed appears to have been resolved.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

7
  • 13 May 2020, 05:18 PM
  • 13 May 2020, 05:10 PM
  • 13 May 2020, 05:09 PM
  • 13 May 2020, 09:11 AM
  • 13 May 2020, 09:11 AM
  • 13 May 2020, 09:11 AM
  • 13 May 2020, 09:11 AM

Checklist

hide

TestRail: Results

Activity

Show:

Lisa Sjögren October 12, 2020 at 1:22 PM

Verified that requests are no longer failing in Goldenrod, so setting this to Closed. Unfortunately for user experience, it's been replaced by the equally disruptive UIU-1802.

Lisa Sjögren September 25, 2020 at 8:33 AM

Excellent!

Theodor Tolstoy (One-Group.se) September 24, 2020 at 5:21 PM

Setting this to Developer done since it is part of Goldenrod.

Theodor Tolstoy (One-Group.se) May 14, 2020 at 7:54 AM

Could you have a look at this ASAP?

Lisa Sjögren May 13, 2020 at 5:37 PM
Edited

My interpretation is that https://folio-org.atlassian.net/browse/CHAL-303#icft=CHAL-303 is a more serious version of this, where the loan record cannot be viewed in the UI at all. My guess is that whatever mechanism let's the UI fetch the loan policy despite not supplying an id in the query fails if the user has > than 100 loans, and the loan you are trying to open has place (index?) >= 100 in the ´list of loans connected to that user.

Done

Details

Assignee

Reporter

Priority

Affected Institution

Chalmers

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created May 13, 2020 at 9:33 AM
Updated October 12, 2020 at 1:22 PM
Resolved October 12, 2020 at 1:22 PM
TestRail: Cases
TestRail: Runs

Flag notifications