Default filter option for configuration screens

Bug #1183553 reported by Steven Chan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Wishlist
Unassigned

Bug Description

In the staff client, the AutoGrid widget is used to render configuration lists, and by default, the setting 'showLoadFilter' is turned off. It seems more useful to turn it on by default so that any configuration screen can use it unless its template sets it off.

Evergreen version.2.2

Revision history for this message
Steven Chan (schan2) wrote :
Ben Shum (bshum)
Changed in evergreen:
status: New → Triaged
Revision history for this message
Pasi Kallinen (paxed) wrote :
tags: added: signedoff
Changed in evergreen:
milestone: none → 2.5.0-beta1
Revision history for this message
Ben Shum (bshum) wrote :

Tested this and while it does add the filter option to all the configuration screens, I've noticed that once you set a set of filters, it doesn't seem to change if you alter the filters.

For example, I log in and look at the hold policies and then say set to filter for owning library is a specific lib from the dropdown and a specific circ modifier. It'll filter and only show me that library and that circ modifier. Then if I click filter again and say change the circ modifier to a different one and click apply, it doesn't update the screen. Instead it shows me the same filter as what I had initially chosen.

I can repeat that with all the interfaces where a new filter was added, where it'll stick to the first filter I apply instead of switching to new filters if I edit the options a moment later.

By default, the filter option that's already present in some of the acq configuration interfaces like funds or providers works and changes if I alter the filters after an initial setting. So there must be another piece at play here that we're still missing.

Changed in evergreen:
importance: Undecided → Wishlist
status: Triaged → Confirmed
Revision history for this message
Pasi Kallinen (paxed) wrote :

Ben, I think I've now fixed that (or at least it now works for anything I've tested). Branch at http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/paxed/lp1183553

Apparently the filter dialog kept the previous filter around and then joined the new one with it ...

Revision history for this message
Ben Shum (bshum) wrote :

Preliminary testing with the line change added by paxed shows that it works with altering the filters appropriately when applied. Existing filters in the acq funds, etc. seem to be fine and not broken by the change so far.

Doing some more tests later today, but looks ready to be pushed through to master.

Changed in evergreen:
assignee: nobody → Ben Shum (bshum)
Revision history for this message
Ben Shum (bshum) wrote :

Pushed to master as two commits. Thanks Pasi!

Changed in evergreen:
status: Confirmed → Fix Committed
assignee: Ben Shum (bshum) → nobody
Dan Wells (dbw2)
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.