SIP2 use checkout.full

Bug #803512 reported by Jason Stephenson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Wishlist
Bill Erickson

Bug Description

Made some changes to simplify SIP2 checkout per Bill Erickson's suggestion.

OpenILS::SIP::Transaction::Checkout.pm has been modified to use 1 call to open-ils.circ.checkout.full, instead the of the open-ils.circ.checkout.permit and open-ils.circ.checkout dance. Since we're now looping to check for override events, the single call to checkout.full knocks a few lines out of the file and simplifies the logic a bit.

Code is at

git://git.evergreen-ils.org/working/Evergreen.git <email address hidden>/SIP2_checkout_full

Revision history for this message
Jason Stephenson (jstephenson) wrote :

Just updated the branch with a further simplification of the logic in OpenILS::SIP::Transaction::Checkout.

Revision history for this message
Bill Erickson (berick) wrote :

Minor style/consistency suggestion... cuddle the else's. For example

    if ($is_renew) {
        $method = 'open-ils.circ.renew';
    }
    else {
        $method = 'open-ils.circ.checkout.full';
    }

---
    if ($is_renew) {
        $method = 'open-ils.circ.renew';
    } else {
        $method = 'open-ils.circ.checkout.full';
    }
---

With that and a squash, I think the branch is ready to go.

Revision history for this message
Jason Stephenson (jstephenson) wrote : Re: [Bug 803512] Re: SIP2 use checkout.full

beurk. i think cuddled else's are ugly and harder to read, but I'll do it.

Have to remember to do that in all my code changes.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

Done.

Revision history for this message
Bill Erickson (berick) wrote :
Changed in evergreen:
status: New → Fix Committed
Changed in evergreen:
milestone: none → 2.2.0
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.