Closed
Bug 564088
Opened 15 years ago
Closed 13 years ago
Sorting by product version is broken
Categories
(Socorro :: General, task)
Socorro
General
Tracking
(Not tracked)
RESOLVED
FIXED
2.3.2
People
(Reporter: alqahira, Assigned: espressive)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
425.10 KB,
image/png
|
Details |
1) Consider this table of crash reports: https://crash-stats.mozilla.com/report/list?product=Firefox&platform=mac&query_search=signature&query_type=exact&query=pthread_mutex_lock&date=05%2F05%2F2010%2017%3A40%3A20&range_value=1&range_unit=weeks&process_type=all&plugin_field=&plugin_query_type=&plugin_query=&do_query=1&signature=pthread_mutex_lock
2) Sort by Version
AR: In ascending order, versions appear as:
3.0.11
3.0b4
3.0.10
3.0.19
3.0.1
3.0.19
3.0.19
3.0.19
3.0.11
3.0.15
In descending order, they appear as:
3.6
3.6
3.6.3
[…]
3.6.3
3.6
3.6.3
[…]
3.6.3
3.6.4
3.6.3
(where additional 3.6.3 crashes have been collapsed into […]).
There is no way either of those sort orders can possibly be correct (even ignoring the beta issue, the 3.6.nothing vs. 3.6.0 issue, and the "is .11 bigger or smaller than .1" issue).
See also bug 547859, which seem to be the other "incorrect sort order" bug open right now.
I'm sure this used to work a while ago, but I haven't used it enough recently to have a good idea when it broke.
Updated•14 years ago
|
OS: Mac OS X → All
Comment 2•14 years ago
|
||
smokey is this still broken for you?
Today I encountered one query that doesn't sort by version.
https://crash-stats.mozilla.com/report/list?product=Thunderbird&query_search=signature&query_type=exact&query=nsTransformedTextRun%3A%3ASetCapitalization%28unsigned%20int%2C%20unsigned%20int%2C%20unsigned%20char*%2C%20gfxContext*%29&date=02%2F16%2F2011%2013%3A03%3A03&range_value=4&range_unit=weeks&hang_type=any&process_type=all&plugin_field=&plugin_query_type=&plugin_query=&do_query=1&admin=1&signature=nsTransformedTextRun%3A%3ASetCapitalization%28unsigned%20int%2C%20unsigned%20int%2C%20unsigned%20char*%2C%20gfxContext*%29
But other query results sort OK. only the date in the query has changed
https://crash-stats.mozilla.com/report/list?product=Thunderbird&query_search=signature&query_type=exact&query=nsTransformedTextRun%3A%3ASetCapitalization%28unsigned%20int%2C%20unsigned%20int%2C%20unsigned%20char*%2C%20gfxContext*%29&date=01%2F16%2F2011%2013%3A10%3A48&range_value=4&range_unit=weeks&hang_type=any&process_type=any&plugin_field=&plugin_query_type=&plugin_query=&do_query=1&admin=1&signature=nsTransformedTextRun%3A%3ASetCapitalization%28unsigned%20int%2C%20unsigned%20int%2C%20unsigned%20char*%2C%20gfxContext*%29
Reporter | ||
Comment 3•14 years ago
|
||
https://crash-stats.mozilla.com/report/list?product=Firefox&platform=mac&query_search=signature&query_type=exact&query=pthread_mutex_lock&range_value=1&range_unit=weeks&process_type=all&plugin_field=&plugin_query_type=&plugin_query=&do_query=1&signature=pthread_mutex_lock is the query from comment 0 without the default date appended (which had long-since expired).
That one looks ok now, modulo the X.y.n, n>9 problem (where 3.0.11 and 3.0.19 come before 3.0.1). I haven't really done much by-version sorting lately outside of Camino, and in Camino we're all n<9 currently.
However, if we close this, we need to reopen dupe bug 584803, because that specifically is about the sorting problem when n>9 (and possibly other cases?)
Comment 4•14 years ago
|
||
Josh, will bug 629741 fix the remaining issue here?
Comment 5•14 years ago
|
||
(In reply to comment #4)
> Josh, will bug 629741 fix the remaining issue here?
It won't. That's a pure database change to enable another bug. We may be able to use it here though.
Comment 6•14 years ago
|
||
Sort of, requires UI and middleware work.
The table productdims will have a new integer column called "sort_key". In the future, any application which accesses the PostgreSQL database for data can order its results by this column. But we'll need to update the code to do this.
Assignee | ||
Comment 7•13 years ago
|
||
Is this still an issue or can it be closed?
Comment 8•13 years ago
|
||
(In reply to Schalk Neethling from comment #7)
> Is this still an issue or can it be closed?
Very clearly still happening.
Comment 9•13 years ago
|
||
(In reply to Stephen Donner [:stephend] from comment #8)
> (In reply to Schalk Neethling from comment #7)
> > Is this still an issue or can it be closed?
>
> [This is] very clearly still happening.
Steps to reproduce:
1. Goto https://crash-stats-dev.allizom.org/report/list?product=Firefox&query_search=signature&query_type=contains&query=pthread_mutex_lock&reason_type=contains&date=10%2F18%2F2011%2011%3A48%3A31&range_value=3&range_unit=weeks&hang_type=any&process_type=any&do_query=1&signature=pthread_mutex_lock
2. follow steps in comment 0
Assignee | ||
Comment 10•13 years ago
|
||
Quick question, is it correct that the table at the below URL is initially sorted by the comments column desc?
https://crash-stats-dev.allizom.org/report/list?product=Firefox&query_search=signature&query_type=contains&query=pthread_mutex_lock&reason_type=contains&date=10%2F18%2F2011%2011%3A48%3A31&range_value=3&range_unit=weeks&hang_type=any&process_type=any&do_query=1&signature=pthread_mutex_lock
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → sneethling
Comment 11•13 years ago
|
||
Yes, crashes with comments are intended to be at the top.
Assignee | ||
Comment 12•13 years ago
|
||
Comment 13•13 years ago
|
||
Commit pushed to https://github.com/mozilla/socorro
https://github.com/mozilla/socorro/commit/49f041256a3c3813c4086c95bcec7e97e330011b
Merge pull request #106 from ossreleasefeed/product-ver-sorting
fixes bug 564088 - sorting by product version incorrect
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Target Milestone: --- → 2.3.2
Updated•13 years ago
|
Component: Socorro → General
Product: Webtools → Socorro
You need to log in
before you can comment on or make changes to this bug.
Description
•