ACQ: provide better progress indication when activating purchase order
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
When activating a purchase order that has a large number of line items, particularly if bibs and copies are being created duration activation, it can appear that no progress in being made.
One reason is that it is possible for a user to miss or not understand the significance of the record counts that get updated during the asset creation phase. Secondly, the exponential fall-off of updates can make it seem like the asset creation phase makes fast initial progress, then either dies or operates more slowly.
To address these, the following changes are being made in a forthcoming patch:
[1] Show a progress bar during the asset creation phase.
[2] Calculate a linear throttle for updating the record counts widget. The value is based on the maximum number of bibs and items that could be created during the activation, divided by 20 (which is an empirically derived number of streaming responses that can be sent back before the XUL client starts having difficulty).
[3] Add a title to the progress bar that's displayed during the second phase of order activation.
Evergreen master
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
A patch is available in the user/gmcharlt/ lp1482400_ better_ po_activation_ progress_ indication branch of the working/Evergreen repository:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ gmcharlt/ lp1482400_ better_ po_activation_ progress_ indication
To test, after applying the patch:
[1] Create a purchase order that has a large number of
brief bibs and copies to create during activation. For
example, 30 line items and 60 copies.
[2] Activate the purchase order. You should see the following
after entering the record import queue and submitting:
(a) Progress bar whose title is "Creating bib, call number,
frequency.
and copy records.."
(b) The record update counts should be updated at a regular
(c) When the asset creation phase is done, the progress bar's
title should change to "Activating purchase order..."