Angular Staff Catalog: Error sorting by Hold Status

Bug #1889133 reported by Jennifer Pringle
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
3.11
Fix Released
Undecided
Unassigned
3.8
Won't Fix
Medium
Unassigned

Bug Description

3.4.1 and 3.5beta

In the angular staff catalogue on the View Holds page the hold Status column is blank. If you look at the holds for the same record in the current catalogue you get "Waiting for Item", "Ready for Pickup", etc. in that column.

I tried sorting the columns, as that sometimes results in missing data appearing, but the column remains blank. If I try to sort by the Status column the gray/blue thinking bar appears and keeps going until you select a different column to sort by or close the tab.

Bill Erickson (berick)
Changed in evergreen:
status: New → Confirmed
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :
Changed in evergreen:
milestone: none → 3.5.1
assignee: Bill Erickson (berick) → nobody
tags: added: pullrequest
Changed in evergreen:
milestone: 3.5.1 → 3.5.2
Revision history for this message
Galen Charlton (gmc) wrote :

The patch for hopeless holds (bug 1811710) includes an alternative fix for this problem. Bill, do you see any reason not to backport the statusTemplate part of commit 3de863edd92?

tags: removed: pullrequest
Changed in evergreen:
status: Confirmed → Invalid
milestone: 3.5.2 → none
status: Invalid → Confirmed
milestone: none → 3.5.2
importance: Undecided → Medium
tags: added: nee pullrequest
tags: added: needsdiscussion
removed: nee pullrequest
Revision history for this message
Bill Erickson (berick) wrote :

Hi Galen, no reason not to backport. Both string handling options get the job done.

Changed in evergreen:
milestone: 3.5.2 → 3.6.1
Changed in evergreen:
milestone: 3.6.1 → 3.6.2
Changed in evergreen:
milestone: 3.6.2 → 3.6.3
Changed in evergreen:
milestone: 3.6.3 → none
Revision history for this message
Michele Morgan (mmorgan) wrote :

This issue is resolved in 3.6, I'm tempted to mark it Fix Released, but does it still need to be backported to 3.5?

Dan Briem (dbriem)
tags: added: circ-holds
removed: holds
Revision history for this message
Gina Monti (gmonti90) wrote :

Hi All,

3.6.5 testing and 3.9

With the patch in place, unfortunately, the error still occurs when sorting by Status in View Holds (Angular).

Revision history for this message
Michele Morgan (mmorgan) wrote :

The blank hold status was fixed by bug 1811710. This patch renames the column from "Status" to "Hold Status" and fixes the sorting error:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mmorgan/lp1889133-fix_error_sorting_by_hold_status

user/mmorgan/lp1889133-fix_error_sorting_by_hold_status

Changing the bug title for clarity.

Changed in evergreen:
milestone: none → 3.9.1
no longer affects: evergreen/3.4
no longer affects: evergreen/3.5
tags: added: pullrequest
removed: needsdiscussion
summary: - Angular Staff Catalog: Hold Status Blank
+ Angular Staff Catalog: Error sorting by Hold Status
Revision history for this message
Jessica Woolford (jwoolford) wrote :

The fix prevents the error. However, the holds are sorting in numeric order based on the ID of the status instead of alphabetically.

tags: added: needswork
removed: pullrequest
Changed in evergreen:
milestone: 3.9.1 → 3.9.2
Changed in evergreen:
milestone: 3.9.2 → none
Revision history for this message
Katie Greenleaf Martin (kgmspark) wrote :

confirming that this is still an issue for SPARK/PaILS in 3.9.2

Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

We just ran into this in 3.11.0.

It looks like sorting by the ID number was the intention according to this note

+ if (fieldName === 'status_string') {
+ // status_string is a locally derived value which
+ // cannot be server-sorted. Instead, sort by the
+ // status number for consistent sort behavior and to
+ // avoid API explosions
+ fieldName = 'hold_status';
+ }

So maybe this should be pushed through to get the sorting to work at all, and have a new bug to sort by the string value.

Josh

Revision history for this message
Terran McCanna (tmccanna) wrote :

I think incremental progress is better than no progress because at least this will group rows of the same status together and it will get rid of the error message.

Changed in evergreen:
assignee: nobody → Terran McCanna (tmccanna)
milestone: none → 3.12.1
tags: added: pullrequest signedoff
removed: needswork
tags: added: needswork
removed: pullrequest signedoff
tags: added: pullrequest signedoff
removed: needswork
Revision history for this message
Terran McCanna (tmccanna) wrote (last edit ):

Signed off on Michele's fix and pushed as far back as rel_3_11.

Also created follow up bug at https://bugs.launchpad.net/evergreen/+bug/2051037

Changed in evergreen:
status: Confirmed → Fix Committed
assignee: Terran McCanna (tmccanna) → nobody
Revision history for this message
Galen Charlton (gmc) wrote :

Noting that the patch that was just pushed causes a partial regression on bug 1917495 - column settings involving the hold status column would get undone, though saving them again will swap in the new field name.

Would there be an objection to a follow-up that:

- changes the field name back to status_string
- keeps the label change
- and simply marks the column as not sortable for now?

Changed in evergreen:
assignee: nobody → Terran McCanna (tmccanna)
Revision history for this message
Terran McCanna (tmccanna) wrote :

Thanks for catching that, Galen. I will work on a fix for that now.

Revision history for this message
Terran McCanna (tmccanna) wrote :

Here's another patch doing what Galen said in comment 12. I also made Current Item and Requested Item non-sortable for the time being since they were also throwing ugly errors.

One bit of weirdness - I had to remove [multiSortable]="true" from eg-grid. With that in place, the grid ignored the eg-grid-column [sortable]="false" settings entirely. Is there a better approach that allows multisortable to stay but still disable sorting in specific columns?

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mccanna/lp1889133_partial_reversion

Changed in evergreen:
assignee: Terran McCanna (tmccanna) → nobody
Galen Charlton (gmc)
Changed in evergreen:
assignee: nobody → Galen Charlton (gmc)
Revision history for this message
Galen Charlton (gmc) wrote :

I've tested and pushed this follow-up down to rel_3_11, along with a follow-up that answers your question about multiSortable. Thanks, Terran!

Changed in evergreen:
assignee: Galen Charlton (gmc) → nobody
Revision history for this message
Terran McCanna (tmccanna) wrote :

Ah! Setting multisortable to false in the columns as well as sortable makes sense, thanks Galen!

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.