Closed Bug 947675 Opened 10 years ago Closed 10 years ago

Bug id are sorted in wrong order

Categories

(bugzilla.mozilla.org :: MyDashboard, defect)

Production
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: xidorn, Assigned: dkl)

References

()

Details

Attachments

(2 files)

Attached image screenshot
Bug id in tables are now sorted in alphabetical order, but it should be sorted in integer order.

The attachment shows the problem.
Attachment #8344267 - Attachment description: 屏幕快照 2013-12-08 下午2.24.13.png → screenshot
Attachment #8344267 - Attachment filename: 屏幕快照 2013-12-08 下午2.24.13.png → screenshot.png
Strange I am unable to make this fail running nightly. The bug id column should already be sorting based on the integer value and not based on the HTML content of the table column. Are you using a special encoding for the dashboard page instead of UTF8? 

dkl
Flags: needinfo?(quanxunzhen)
No, I'm using UTF-8. And I meet the same problem either in Firefox and in Chrome.
It seems that bug ids are presented in string instead of number in the JSON data, which should be where the problem is. See attachment 8344022 [details].
Flags: needinfo?(quanxunzhen)
Attached patch 947675_1.patchSplinter Review
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Attachment #8345134 - Flags: review?(glob)
Comment on attachment 8345134 [details] [diff] [review]
947675_1.patch

r=glob
Attachment #8345134 - Flags: review?(glob) → review+
Thanks for the report. Fix will be in the next code push to production soon.

Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bmo/4.2
modified extensions/MyDashboard/lib/WebService.pm
Committed revision 9176.

dkl
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.