Implement support for loans without item for Loan Detail

Description

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

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

  • for absent data we should use dash ( details with removed item.JPG )

  • all button should be disabled ( details with removed item.JPG )

Scenarios:

  1. Given “Loan details“ page opened for open loan,
    When we do not get item information from the server (item was deleted, data corrupted, loan.item does not exist in response),
    Then I see dash for absent item related information (Item Title, Contributors, Barcode, Effective call number string, Location, Item status),
    And Renew, Claim Returned, Change due date, Print due date receipt, Declare lost, Mark as missing buttons are disabled (See open_loan_details.jpg attachment).

  2. Given “Loan details“ page opened for closed loan,
    When we do not get item information from the server (item was deleted, data corrupted, loan.item does not exist in response),
    Then I see dash for absent item related information (Item Title, Contributors, Barcode, Effective call number string, Location, Item status),
    And Renew, Claim Returned, Change due date, Print due date receipt, Declare lost, Mark as missing buttons are disabled (See closed_loan_details.jpg attachment).

  3. Given “Open loans“ page
    When we do not get item information from the server for some loan (item was deleted, data corrupted, loan.item does not exist in response),
    Then I see dash for absent item related information (Barcode, Effective call number string, Item status, Contributors, Location).

  4. Given “Open loans“ page
    When we do not get item information from the server for some loan (item was deleted, data corrupted, loan.item does not exist in response),
    Then checkbox of this loan is disabled.

  5. Given “Open loans“ page
    When we do not get item information from the server for some loan (item was deleted, data corrupted, loan.item does not exist in response),
    Then after clicking on Action button the following links are disabled: Item details, Renew, Claim returned, Change due date, Print due date receipt, Declare lost, New fee/fine, Mark as missing (See open_loans_list.jpg attachment).

  6. Given “Closed loans“ page
    When we do not get item information from the server for some loan (item was deleted, data corrupted, loan.item does not exist in response),
    Then I see dash for absent item related information (Item title, Barcode, Effective call number string, Contributors).

  7. Given “Closed loans“ page
    When we do not get item information from the server for some loan (item was deleted, data corrupted, loan.item does not exist in response),
    Then after clicking on Action button the following links are disabled: Item details, New fee/fine (See closed_loans_list.jpg attachment).


Additional Questions:
1. Should we do something for “Export to CSV“ actions for open and closed loans if item information does not exist for some loan?

Environment

None

Potential Workaround

None

Attachments

7

Checklist

hide

TestRail: Results

Activity

Show:

Oleksandr HrushaFebruary 19, 2025 at 3:18 PM

Checked on , works as expected

Artem BlazhkoFebruary 19, 2025 at 1:45 PM

New functionality is available on rancher -
To test it switch to “College“ affiliation and go here -
There is a user that has a loan with deleted item through API.

Stephanie BuckFebruary 13, 2025 at 3:54 PM

Hi . Yes, the same behavior should apply to “Mark as missing”. Thank you!

Artem BlazhkoFebruary 13, 2025 at 1:07 PM

Hello
I added changes to scenarios 1, 2 and 5.
We missed “Mark as missing“ button that on our opinion should be disabled as well.
Could you please clarify if this is the expected behaviour?

Zak BurkeJanuary 29, 2025 at 5:38 PM

Yes we continue to see this problem in production in tenants running Quesnelia. I don’t know the root cause that leads to this data corruption, but the UI definitely still encounters it.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

Release

Sunflower (R1 2025)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 21, 2022 at 12:28 PM
Updated March 19, 2025 at 11:36 AM
Resolved February 19, 2025 at 8:28 PM
TestRail: Cases
TestRail: Runs