Details
Assignee
Nikolai_LitvinenkoNikolai_LitvinenkoReporter
Zak BurkeZak BurkePriority
P4Sprint
Development Team
VolarisRelease
Trillium (R2 2025)TestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee
Nikolai_Litvinenko
Nikolai_LitvinenkoReporter
Zak Burke
Zak BurkePriority
Sprint
Development Team
Volaris
Release
Trillium (R2 2025)
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created April 9, 2019 at 12:53 AM
Updated yesterday
Overview:
Renewal failure messages are not internationalized in
src/withRenew.js::getMessage()
. It may be necessary to updatesrc/components/Loans/OpenLoans/helpers/isOverridePossible/overridePossibleMessages.js
as well.Steps to Reproduce:
Log into Snapshot
Check out Item 1 to Patron 1
In settings, modify the loan policy for the created loan to have a Number of Renewals Allowed of 1
Navigate to the Users app and open the record for Patron 1, and open the patron's open loans
Select the newly created loan and renew the item twice
Expected Results:
When the second renewal is attempted an error popup is shown and the backend sends a 422 HTTP status code with JSON including the "code" property:
Actual Results:
The "code" property defined in the error.schema is missing:
https://github.com/folio-org/raml/blob/raml1.0/schemas/error.schema
Additional Information:
The code property is not included in any circulation/renew-by-barcode responses with a 422 status code. These other cases will likely need separate tickets created.
I am not certain that there are existing error codes that should be included in these responses.