Uploaded image for project: 'Chalmers'
  1. Chalmers
  2. CHAL-304

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



    • Chalmers


      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.


        1. Error message 2.png
          Error message 2.png
          55 kB
        2. Error message 1.png
          Error message 1.png
          89 kB
        3. Error message 3.png
          Error message 3.png
          86 kB
        4. Error message 4.png
          Error message 4.png
          98 kB
        5. load-loan-policy-fails1.png
          149 kB
        6. load-loan-policy-fails1.png
          149 kB
        7. load-loan-policy-fails3.png
          100 kB

        Issue Links



              ecboettcher Emma Boettcher
              kriolofs Kristin Olofsson
              0 Vote for this issue
              3 Start watching this issue