Open Bug 373012 Opened 18 years ago Updated 6 years ago

Time-related columns in buglist should contain hidden easily-sortable data

Categories

(Bugzilla :: Query/Bug List, enhancement)

2.23
enhancement
Not set
normal

Tracking

()

People

(Reporter: gerv, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

I want to enhance Jesse's BugSort Greasemonkey script, which does client-side sorting of buglists. But it's very hard to do any of the date columns; you need to know what day of the week it is today, and the current timezone offset between you and the Bugzilla server. If the <td>s in these columns had the time value as a time_t as an attribute or something, I could sort on that instead. <td abbr="9564710025600">Fri 11:32</td> Or we could use class="" or title="", at a pinch. Or <span style="display: none">. If we don't care about validation, of course, we could do anything :-) Gerv
Attached patch Patch v.1 (obsolete) — Splinter Review
Here's a patch to start discussion. Gerv
Assignee: query-and-buglist → gerv
Status: NEW → ASSIGNED
Attachment #328948 - Flags: review?(mkanat)
Comment on attachment 328948 [details] [diff] [review] Patch v.1 Actually, bmo already has this--you might want to look at what it has, since that's what can be used by sorttable.js.
Attachment #328948 - Flags: review?(mkanat) → review-
Max: is there any reason we can't just take b.m.o's patch to use sorttable.js and commit it to the Bugzilla trunk? Gerv
Attached patch Patch v.2Splinter Review
This is pretty much a port of the b.m.o. code. The template has changed a bit, so I had to adapt. The copy of sorttable.js is unchanged from there - so it correctly updates the BUGLIST cookie. Gerv
Attachment #328948 - Attachment is obsolete: true
Attachment #414067 - Flags: review?(mkanat)
Comment on attachment 414067 [details] [diff] [review] Patch v.2 Please test your patch. You will see that there are already arrows used to indicate which columns are in use to sort the buglist.
Attachment #414067 - Flags: review?(mkanat) → review-
Comment on attachment 414067 [details] [diff] [review] Patch v.2 >+ headrow[i].childNodes[k].href = "javascript: return false;"; Also, this line throws errors to the error console everytime you click on a column header (also on bmo). Should be void(0) or something like that.
Also, we're not taking sorttable.js in this bug--there's a separate bug for that.
I'd still like to see this done, but having it assigned to me is misleading, as I'm not working on it. Gerv
Assignee: gerv → query-and-buglist
Status: ASSIGNED → NEW
Depends on: 1529362
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: