[ERM-1223] Agreement lines from previous agreement show when switching to view another agreement Created: 21/Oct/20  Updated: 30/Nov/20  Resolved: 30/Nov/20

Status: Closed
Project: ERM Platform
Components: ui-agreements
Affects versions: None
Fix versions: None

Type: Bug Priority: P2
Reporter: Marie Widigson Assignee: Owen Stephens
Resolution: Done Votes: 0
Labels: agreements, erm
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: PNG File image-2020-01-22-18-09-50-490.png     PNG File image-2020-01-22-18-10-37-101.png    
Issue links:
Cloners
clones CHAL-219 Previous eHoldings agreement line sho... Open
Relates
relates to ERM-680 Show spinner in agreement lines when ... Closed
relates to CHAL-208 Very slow loading of agreement lines ... Closed
Sprint: ERM Sprint 101, ERM Sprint 102
Development Team: None
Affected Institution:
5 Colleges, Chalmers, Cornell

 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 ERM-680 Closed fixed this, but looking at that code it looks like that fixes for retrieving Resources and not Entitlements


Generated at Thu Feb 08 22:21:13 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.