patron registration form sends unnecessary data when saving

Bug #1976126 reported by Galen Charlton
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.9
Fix Released
Medium
Unassigned

Bug Description

When the AngularJS patron registration form saves a record, the request to update the patron record includes some virtual fields that not needed:

- notes (which nowadays is coming from user messages)
- user activity
- standing penalties

These are coming from the fleshing set by the AngularJS patron service when it retrieves a patron record. They're retrieved for various purposes, but those purposes do not include any relevant to the patron editor

When the patron record is saved via open-ils.actor.patron.update, those fleshed columns are ignored.

Ordinarily this wouldn't be anything more than a minor waste of bandwidth, but patrons can sometimes have hundreds of notes if A/T events are generating patron messages. That can add up to an overlarge request.

Evergreen 3.8+

Galen Charlton (gmc)
tags: added: patron
Revision history for this message
Mike Rylander (mrylander) wrote :
tags: added: pullrequest
Revision history for this message
Galen Charlton (gmc) wrote :

Tested and signed off, branch is user/gmcharlt/lp1976126-signoff

The signoff branch includes a follow-up patch to update the API documentation for open-ils.actor.patron.update, as a future developer could reasonably assume that that method could be extended to cover standing penalty and notes updates.

Changed in evergreen:
importance: Undecided → Medium
status: New → Confirmed
Michele Morgan (mmorgan)
tags: added: signedoff
Revision history for this message
Terran McCanna (tmccanna) wrote :

Note: good idea to backport as far back as feasible as well.

Changed in evergreen:
milestone: none → 3.9.1
Changed in evergreen:
milestone: 3.9.1 → 3.9.2
Galen Charlton (gmc)
Changed in evergreen:
milestone: 3.9.2 → 3.10.1
no longer affects: evergreen/3.8
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed down to rel_3_9.

Changed in evergreen:
status: Confirmed → Fix Committed
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.