ACQ: provide better progress indication when activating purchase order

Bug #1482400 reported by Galen Charlton
10
This bug affects 2 people
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

Revision history for this message
Galen Charlton (gmc) wrote :

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,
            and copy records.."
        (b) The record update counts should be updated at a regular
            frequency.
        (c) When the asset creation phase is done, the progress bar's
            title should change to "Activating purchase order..."

Revision history for this message
Galen Charlton (gmc) wrote :

A copy more patches pushed to the branch to (a) display the record count on the progress dialog and (b) to use a determinate progress bar

Additions to the test plan:

    [1] Following the test plan of the previous patch, verify that the
        progress dialog now displays and updates text above the progress
        bar indicating how many records it has processed, e.g.,
        "Bib Records Merged/Import: 25"

Revision history for this message
Galen Charlton (gmc) wrote :

And one more patch pushed to smooth out updates to the progress bar.

Revision history for this message
Galen Charlton (gmc) wrote :

The final set of patches, including release notes and unit tests, are available in the user/gmcharlt/lp1482400_better_po_activation_progress_indication-pr 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-pr

tags: added: pullrequest
Revision history for this message
Mike Rylander (mrylander) wrote :

Works like a charm, merged to master. Thanks, Galen!

Changed in evergreen:
status: New → Fix Committed
Revision history for this message
Ben Shum (bshum) wrote :

Tagged this towards 2.9-beta so that we know when it went in.

Changed in evergreen:
milestone: none → 2.9-beta
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.