persist date and relevance setting in facet search results
Categories
(Thunderbird :: Search, enhancement)
Tracking
(thunderbird_esr68 affected, thunderbird_esr78 fixed, thunderbird78 affected, thunderbird79 fixed)
People
(Reporter: wsmwk, Assigned: mozdev2)
References
()
Details
(Whiteboard: [gs])
Attachments
(1 file, 1 obsolete file)
|
47 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-esr78+
|
Details | Review |
| Reporter | ||
Updated•14 years ago
|
Comment 11•7 years ago
|
||
| Assignee | ||
Comment 12•6 years ago
|
||
In case anyone finds this bug, I have maintained an add-on for this issue for 9 years. It's called "Search Results Sort By Date Not Relevance" and is available at addons.thunderbird.net: https://addons.thunderbird.net/en-US/thunderbird/addon/srsbdnr/
For developers: the add-on has traditionally had almost 5k daily users (and will again soon, I imagine, now that I finally updated it for v68). I know that's relatively few, but maybe it's enough for this bug/enhancement to be prioritized?
Perhaps a poll could be conducted to see what the average user prefers?
In case it's helpful to anyone considering a patch, AFAIK the default could be permanently changed by changing the five lines starting here: https://hg.mozilla.org/comm-central/file/d7074a5597c76e36322ee3af1198b803cca24eb4/mail/base/content/glodaFacetView.js#l545
...to be simply:
this._sortBy = "-date";
| Assignee | ||
Comment 13•5 years ago
|
||
| Assignee | ||
Comment 14•5 years ago
|
||
Hello - I have implemented a fix for this bug and generated a phabricator revision: https://phabricator.services.mozilla.com/D74731
This is my first-ever patch, so I'm sure I did something wrong somewhere. :-) But I have tested the fix (on linux) and it works for me.
It creates a new pref: gloda.facetview.sortby, default value, where the values correspond to this behavior:
0 : same as old behavior: every search opens with "relevance" sort order
1 : same as 0, except every search opens with "date" sort order
2 : [default] new searches sort by relevance, but if user changes to "date", this pref changes to value 3
3 : new searches sort by date, but if user changes to "relevance", this pref changes to value 2
If I have left out any steps here (especially with phabricator, as I have only the faintest notion of the proper procedures there) I'd appreciate any guidance. E.g. will this automatically get reviewed, or do I need to take additional steps?
Updated•5 years ago
|
| Assignee | ||
Comment 15•5 years ago
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Comment 16•5 years ago
|
||
Comment on attachment 9158074 [details]
Bug 663859 - persist user choice of gloda facetview search sort order, with optional forcing of setting r=aleca
[Approval Request Comment]
Regression caused by (bug #): none
User impact if declined: not major as it's kind of a marginal feature, but since it's a 9 years old request, it would be nice to ship it in 78.
Testing completed (on c-c, etc.): soon on c-c
Risk to taking this patch (and alternatives if risky): low as it doesn't affect strings and it only adds a pref to remember gloda search setttings
Comment 17•5 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3b00131dbe1d
persist user choice of gloda facetview search sort order, with optional forcing of setting. r=aleca
Comment 18•5 years ago
|
||
| Reporter | ||
Comment 19•5 years ago
|
||
Comment on attachment 9158074 [details]
Bug 663859 - persist user choice of gloda facetview search sort order, with optional forcing of setting r=aleca
Approved for beta - let's get this into 78
CC thanks for the patch!
Updated•5 years ago
|
Comment 20•5 years ago
|
||
Comment on attachment 9158074 [details]
Bug 663859 - persist user choice of gloda facetview search sort order, with optional forcing of setting r=aleca
This is already in comm-beta (79), changing the flags for uplift to 78.
| Reporter | ||
Comment 21•5 years ago
|
||
Comment on attachment 9158074 [details]
Bug 663859 - persist user choice of gloda facetview search sort order, with optional forcing of setting r=aleca
Approved for esr78
Comment 22•5 years ago
|
||
| bugherder uplift | ||
Thunderbird 78.0.1:
https://hg.mozilla.org/releases/comm-esr78/rev/d25d26fe1df4
https://hg.mozilla.org/releases/comm-esr78/rev/15cd2997978f
Description
•