Block Renewal With Existing Recall Request
Description
Environment
Potential Workaround
Attachments
relates to
Checklist
hideTestRail: Results
Activity
Cate Boerema April 17, 2019 at 8:39 AM
Makes sense. can you file the story/bug about accumulating all possible reasons a renewal may be blocked? I'll close this one since I tested it an it looks good otherwise. Thanks all!
Zak Burke April 16, 2019 at 5:06 PM
My inclination would be to file a new bug to describe the desired behavior, i.e. accumulate and return all possible reasons a renewal may be blocked. This story is about blocking a renewal with an existing recall request; this functionality is in place.
Cate Boerema April 16, 2019 at 4:30 PM
, and what is the next step on this? Do we want to re-open this issue to ensure all errors reasons are displayed?
Emma Boettcher April 12, 2019 at 7:43 PM
Oh, I was misremembering the checkbox in the loan policy was being for holds and recalls together. I see that it's set up differently now, but I still think it could be helpful to staff to know if there's other reasons the renewal is a bad idea if they're considering an override. (Especially if they'd be told the other reasons if item had just a hold on it.)
Zak Burke April 12, 2019 at 7:19 PM
I think we accumulate multiple reasons for rejection under some circumstances e.g. not renewable, won't change the due date etc
We treat some reasons as more important than others, for example, if an item cannot be found, we stop any further checks.
Yep, exactly. When the backend returns multiple failure reasons, they do accumulate in the UI:
I think we only get multiple error messages from the backend when a renewal fails because of one or more violations of a loan policy. When that's the case, we get a list of all the loan policy violations. But if a renewal fails because of an existing recall, the backend never even attempts to validate the request against the loan policy.
Purpose: The purpose of this story is to block renewal on loans that have an active, recall request on the loaned item (at the top of the request queue).
1. Scenario (Renewal not allowed)
When Renewing Loan L from the User Loans or User Loan Details pages
At renewal:
Given item barcode, which has:
Request queue = n (not 0)
Then if for request in position 1:
Type = Recall
Request Status = Open - not yet filled
THEN
Renewal is disallowed
A modal popup should display reading:
Header: Loan not renewed
Body: Items cannot be renewed when there is an active recall request
2. Scenario (Renewal allowed)
When Renewing Loan L from the User Loans or User Loan Details pages
At renewal:
Given item barcode, which has:
Request queue = n (not 0)
Then if for request in position 1:
Type = HOLD
Request Status = Open - not yet filled
AND
If for request in position 2-n:
Type = Recall
Request Status = Open - not yet filled
THEN
Renewal is allowed
Note: This story is similar to CIRC-201.
Note: Modal scenario aligns with .