open-ils.actor.user.checked_out.count.authoritative could be called less

Bug #1406812 reported by Jason Stephenson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Won't Fix
Undecided
Unassigned

Bug Description

Eg Version: 2.7.1 & master as of 20141220 (probably affects older versions)
OpenSRF: master as of 20141220 (but probably irrelevant)
Postgres: 9.1.something (also irrelevant)
O/S: Ubuntu 12.04 (precise pangolin) & 14.04 (trust tahr)

Just retrieving a patron by barcode via the staff client calls open-ils.actor.user.checked_out.count.authoritative 6 times. It should probably only be called once.

If you look closely at the attached log, this makes 6 calls to open-ils.cstore.direct.action.open_circ_count.retrieve and each one appears to have gone to a different cstore drone, thus temporarily tying up 5 more drones than necessary.

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

Confirmed in 2.5 as well.

Some additional data:

Four of the six calls to open-ils.actor.user.checked_out.count.authoritative come from the function patron.util.set_penalty_css

When retrieving a patron, set_penalty_css is called twice, and that function calls:
* open-ils.actor.user.fines.summary.authoritative
* open-ils.actor.user.checked_out.count.authoritative
* open-ils.actor.note.retrieve.all.authoritative
* open-ils.actor.user.checked_out.count.authoritative (yes, a second time)

The other two calls to open-ils.actor.user.checked_out.count.authoritative are in patron/summary.js and circ/checkout.js

Changed in evergreen:
status: New → Confirmed
Revision history for this message
Terran McCanna (tmccanna) wrote :

Is this still an issue in the web client?

Revision history for this message
Terran McCanna (tmccanna) wrote :

(Assuming this is no longer an issue since the patron screens have been entirely overhauled, so marking this Won't Fix, but can change back if needed.)

Changed in evergreen:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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