]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1949389: reduce number of PCRUD requests by subscription manager
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 1 Nov 2021 16:36:31 +0000 (12:36 -0400)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Mon, 14 Feb 2022 19:10:20 +0000 (11:10 -0800)
commitbc51765f250e371b5b434ebbb341eece0033912f
tree54030781a688f79edc56ef5435eb6d36ffc369a4
parent35286d4359dd21f6fe874f857d0df0d8399b02f8
LP#1949389: reduce number of PCRUD requests by subscription manager

This patch changes how the AngularJS subscription manager fetches
serial item templates. In particular, rather than issuing a PCRUD
request for every org unit in the system, it fetches them in one
fell swoop. This fixes an issue where loading the subscription manager
in a large Evergreen consortium could lead to so many requests that
it drives PCRUD into backlog mode, resulting in higher request
latency across the board.

To test
-------
[1] Apply the patch.
[2] Verify that the subscription manager lets you set the receiving
    template for each distribution and that the drop-down's contents
    changes if the distribution library is changed.
[3] Verify that the Apply Binding Template action works and that
    the binding template drop-down(s) include the relevant copy templates.

Note that if a binding template has been set already, the current
binding template is _not_ displayed as the selected value in the drop-down.
This is existing behavior that this patch does not aim to fix.

Sponsored-by: BC Libraries Cooperative
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Open-ILS/web/js/ui/default/staff/serials/directives/subscription_manager.js
Open-ILS/web/js/ui/default/staff/serials/services/core.js