]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1846038 Remove extra grid refresh from configuration load
authorDan Wells <dbw2@calvin.edu>
Tue, 22 Oct 2019 14:55:41 +0000 (10:55 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 25 Oct 2019 14:27:10 +0000 (10:27 -0400)
commitc26c567b044fa8c7a6175f71b5116117a63f577c
treeacb4dabd4a64c0b02ef3066cf7fd37f570426f9a
parent786456fd7171fb485efa1c112b9edb0be030b6cd
LP#1846038 Remove extra grid refresh from configuration load

Bug LP#1790169 added the ability to save sorting configuration, but it
also added an additional grid refresh to the configuration load.  This
breaks grid loading.

The expected flow is for is to first load any existing configuration,
then do the first collect() for the grid.  This refresh() call adds
potentially a second collect() which may run earlier than it should,
and overall does not seem necessary.

To test:

(Make sure you are testing on current master or rel_3_3/3_4, or you
will (like me) hit related bugs which have been fixed.  Also, some
grids (especially circ) do not honor sort for other reasons, so avoid
those for now.)

1) Find a grid which has a typical get() process.  Suggestion would be
a basic auto grid, such as full bill details,
https://localhost/eg/staff/circ/patron/11/bill/43/details .
2) Set a sort value you can see, then *save* the configuration.
3) Before the patch, billing details grid doesn't load.  After patch,
grid loads and still honors the defined sort.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/services/grid.js