Closed Bug 629067 Opened 13 years ago Closed 13 years ago

Allow sorting of signature lists by date of first occurrence

Categories

(Socorro :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: laura, Assigned: ryansnyder)

References

Details

Attachments

(1 file)

Assignee: nobody → ryan
Target Milestone: 1.7.7 → 1.7.8
Will need to update sql in fetchTopcrasherVersions() in Topcrashers_Model with:

SELECT 
  sd.signature, 
  array_to_string(array_agg(pd.version ORDER BY sort_key),', '),
  min(first_report) as first_report 
FROM signature_productdims sd 
INNER JOIN productdims pd ON sd.productdims_id = pd.id 
WHERE sd.signature IN (" . implode(", ", $signatures) . ") 
AND pd.product = ? 
ORDER BY signature;
Ryan,

That'll allow us to display the first occurance info.

Making it sortable, though ... that requires an overhaul of TCBS.
Right, agreed.  TCBS requires an overhaul and I definitely still want that to happen.

I was thinking that we can do a poor man's sorting using jquery's tablesorter.  It's only for the 300 signatures listed on the current page, but should suffice for an immediate solution...  Duct tape, FTW.
Committing this change on the PHP side.

==

Sending        controllers/topcrasher.php
Sending        models/topcrashers.php
Sending        views/common/list_topcrashers.php
Transmitting file data ...
Committed revision 2960.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: 1.7.8 → 1.7.7
Not sure it's caused by this, but we started failing some topcrasher tests:

http://qa-selenium.mv.mozilla.com:8080/job/socorro/712/

The previous build (6 hours before it) was only failing one test:

http://qa-selenium.mv.mozilla.com:8080/job/socorro/711/console
Ah, thanks Stephen. This change must have only been made to devdb and not stagedb.  I can back the change out if need be for code freeze tomorrow.
Noticed that not all stacks have a date appear in the First Appearance column; is that expected?

https://crash-stats.stage.mozilla.com/topcrasher/byversion/Firefox/4.0b13pre
(The screenshot in comment 9 shows it sorting successfully for the dates it has, though.  Just wondering, per comment 8, if all stacks are supposed to have a corresponding First Appearance timestamp?)
Component: Socorro → General
Product: Webtools → Socorro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: