Details
-
Story
-
Status: Closed (View Workflow)
-
P1
-
Resolution: Done
-
None
-
-
Core: F - Sprint 57
-
13
-
Prokopovych
Description
In order to support different kinds of policies using the same loan rules, the loan rules syntax will be extended to allow for a rule to (optionally?) define a loan, request, and patron notice policy.
UICIRC-164 and UICIRC-165 only define editor behaviour for defining the new rules syntax, and not about application of those rules.
Therefore I am making some inferences as to the scope of this change. jakub cboerema Sean Thomas oleksiy_lemeshko I'd appreciate feedback on whether this scope seems correct and whether we believe this is sufficient elaboration (pre-grooming) for a backend story.
Scope
- Loan rules API should treat the new format as valid
- Loan rules API will evaluate the loan rules to determine a loan policy
- Loan rules API will not evaluate the loan rules to determine a request or patron notice policies
Technical Scope
- Rename the API endpoints associated with loan rules to be circulation rules instead, to reflect the broader usage
- Provide circulation 6.0 interface
- Depend upon circulation-rules-storage 1.0 instead of loan-rules-storage 1.0
Decisions
- Given that the rules format is changing, this is a major behavioural change (we may need a decision on
FOLIO-1746prior to merge). - Given the broader usage of these rules and the clarification that the domain terminology is circulation-rules a major interface breaking change will also occur to reflect that
Technical Background
- The loan rules are parsed using Antlr to generate a Drools rules definition which is stored and then used during evaluation.
- The loan rules application needs to have an API endpoint for each policy type that is needed. Currently there is only an loan policy API endpoint as there are no other policy types yet.
Outstanding decisions
- jakub
Do you want this to be an interface major change as well (that is the only way to stop the new UI being deemed compatible with the old backend, and vice versa)? Given the formats are incompatible, do we intend to support the old and new formats together (I don't know if this is possible), or treat this as a breaking change? Julian says: I don't see the need for supporting both, let's make a breaking change.Does this story include evaluating the loan rules to determine a request policy, or does this come later?Does this story include evaluating the loan rules to determine a patron notice policy, or does this come later?Julian says: I suggest to create a separate issue for each of the new policy types.
TestRail: Results
Attachments
Issue Links
- blocks
-
UICIRC-164 Circ Rules Editor - Add new policy types to policy menu
-
- Closed
-
-
UICIRC-165 Circ Rules Editor - Add new policy types to 'fallback policy' section
-
- Closed
-
- defines
-
UXPROD-1217 Extending Loan Rules Editor to target additional policy types
-
- Closed
-
- has to be done after
-
CIRC-191 SPIKE for Request Policies and Notice Policies (Backend)
-
- Closed
-
- has to be done before
-
CIRC-196 Back end work for UICIRC-164 and UICIRC-165: Determine request policy based upon loan rules
-
- Closed
-
-
CIRC-197 Back end work for UICIRC-164 and UICIRC-165: Determine patron notice policy based upon loan rules
-
- Closed
-
- has to be finished together with
-
CIRCSTORE-102 Update rules syntax in reference record and replace loan rules with circulation rules
-
- Closed
-
-
MODPATRON-17 Support circulation 6.0
-
- Closed
-
-
MODRTAC-11 Support circulation 6.0
-
- Closed
-
-
UICHKIN-82 Support circulation 6.0
-
- Closed
-
-
UICHKOUT-491 Support circulation 6.0
-
- Closed
-
-
UIIN-485 Support circulation 6.0
-
- Closed
-
-
UIREQ-215 Support circulation 6.0
-
- Closed
-
-
UIU-886 Support circulation 6.0
-
- Closed
-
-
UICIRC-164 Circ Rules Editor - Add new policy types to policy menu
-
- Closed
-
- relates to
-
CIRC-209 Circulation rule with only one or two policies
-
- Closed
-
-
CIRC-210 Improve documentation and unit tests for circulation rules
-
- Closed
-
-
FOLIO-1789 Rename loan rules to circulation rules
-
- Closed
-
-
CIRC-216 Split circulation interface to reduce cascading impact of breaking compatibility changes
-
- Open
-
-
CIRC-467 Back end work for UICIRC-341: add lost item fee policy in circulation rules syntax
-
- Closed
-
-
CIRC-493 Back end work for UICIRC-352: Include loan limit policy in circulation rules syntax
-
- Draft
-
-
UICIRC-341 Circ Rules Editor - Add lost item fee policies to policy menu
-
- Closed
-