Implement support for loans where the item was deleted for Loan List

Description

This issue is about

  • a UI crash, status: fixed

  • hiding elements, status: open

UI crash

The UI crash bug is in Lotus. It has already been fixed in Morning Glory (bugfest-mg).

Overview:
Prevent UI crashing for open loans with deleted items

How to reproduce:

  • Use https://folio-lotus.dev.folio.org

  • Checkout an item for a user

  • Open the user's open loans list page

  • Set the item status to "Claimed returned"

  • Go to inventory and delete the item

  • Open the user's open loans list page

Expected result:
Open loan list displays the loan details (loan date etc.) but without item details (contributors etc.)

Actual result:
UI crashes with "Something went wrong" message, see error.JPG

Related work:
For closed loans list this has already been fixed:
UIU-1411 "Prevent UI crashing for closed loans with deleted items"
https://github.com/folio-org/ui-users/commit/b74fc4e804314258176c90991db9bc9aefd381af

Solution:
The UI crash is fixed in bugfest-mg and in https://folio-snapshot.dev.folio.org/

Affects: Cornell, Middle Tennessee State University, MO State, GBV

Hide elements

Overview:
Don't show useless UI elements in open loans list if the item record of a loan has been deleted.

Notes:
We don't have item object in response for loan with removed item. ( item.JPG )

Possible solution:
For Open Loan List page that refers to an item that has been deleted

  • we should "hide" checkbox ( list with removed item.JPG )

  • for absent data we should use dash ( list with removed item.JPG ) not needed, see closed loans UIU-1411

  • all links from Action menu except Loan policy, New fee/fine and Fee/fine details should be hide ( Loan List.JPG )

Related work:
For closed loans list this has already been fixed:
UIU-1411 "Prevent UI crashing for closed loans with deleted items"
https://github.com/folio-org/ui-users/commit/b74fc4e804314258176c90991db9bc9aefd381af

Affects: Cornell, Middle Tennessee State University, MO State, GBV

Environment

None

Potential Workaround

None

Attachments

4

Checklist

hide

TestRail: Results

Activity

Show:

Stephanie BuckNovember 16, 2023 at 11:32 PM

Lotus is no longer supported.

Julian LadischSeptember 21, 2022 at 2:43 PM

: The "UI crash" part of this issue has been fixed, the "hiding elements" part of this issue is still open.

Stephanie BuckSeptember 13, 2022 at 4:58 PM
Edited

and , I'm a little confused. If this has been fixed on Morning Glory already, is this for a backport or hotfix? Has a hotfix been approved? Also, which release is this being targeted for?

Charlotte WhittSeptember 13, 2022 at 9:01 AM

and - I'll change the ticket to Open.

Julian LadischSeptember 6, 2022 at 1:05 PM

The UI crash has already been fixed for Morning Glory.

Remaining work: Hiding/Suppressing UI elements in Open Loans list.

Won't Do

Details

Assignee

Reporter

Labels

Priority

Development Team

Vega

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 21, 2022 at 11:22 AM
Updated November 16, 2023 at 11:32 PM
Resolved November 16, 2023 at 11:32 PM
TestRail: Cases
TestRail: Runs