Agreement lines from previous agreement show when switching to view another agreement

Description

Overview
When opening the accordion Agreement lines, sometimes the list of Agreement lines displayed is for the previous agreement.

Screencast of issue
https://drive.google.com/open?id=1rDJ2x16F71DjjssAB-c8t2zk8jNWp2qo
This waiting time in this example was relatively short, it can be much longer.

Steps to recreate

  1. Create two agreements

  2. Add a single agreement line to one agreement

  3. Add c.20 agreement lines from eHoldings to the other agreement

  4. View first agreement with one agreement line

  5. View second agreement with c.20 agreement lines

Actual behaviour

  1. See that the agreement line from first agreement can display temporarily

  2. Also note that indicator of the number of agreement lines can take time to update and displays "1" until it has updated

Expected behaviour

  1. No information from previous agreement should ever be displayed once you have switched to the new agreement

  2. If there is a delay in loading information, a spinner should display to tell the user this is happening

  3. The indicator of the number of agreement lines should not display outdated information, and should not display until the number of lines for the agreement being loaded is known

Additional information
It was expected that https://folio-org.atlassian.net/browse/ERM-680#icft=ERM-680 fixed this, but looking at that code it looks like that fixes for retrieving Resources and not Entitlements

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2
  • 21 Oct 2020, 04:04 PM
  • 21 Oct 2020, 04:04 PM

Checklist

hide

TestRail: Results

Activity

Show:
Done

Details

Assignee

Reporter

Components

Priority

Sprint

Development Team

None

Affected Institution

5 Colleges
Chalmers
Cornell

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created October 21, 2020 at 4:04 PM
Updated November 30, 2020 at 10:45 AM
Resolved November 30, 2020 at 10:45 AM
TestRail: Cases
TestRail: Runs

Flag notifications