Closed Bug 976668 Opened 11 years ago Closed 11 years ago

Fix sort order for retriggered jobs that don't have a part number

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

For jobs that do not have a part number, jobPartNumber() returns the empty string and so parseInt() returns NaN. This means that for two identical jobs (such as retriggers) without a part number, aNum and bNum are both NaN. NaN compared to itself isn't equal, which breaks the (aNum != bNum) condition, and so the sort. To workaround, we assign job types without a part number the number zero.
Blocks: 821242
Attached patch Patch v1 (deleted) — Splinter Review
Attachment #8381562 - Flags: review?(ryanvm)
Comment on attachment 8381562 [details] [diff] [review] Patch v1 Review of attachment 8381562 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #8381562 - Flags: review?(ryanvm) → review+
Depends on: 976771
In production :)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: