FS#3370 - [UI] Reimplement sort by age

Attached to Project: AUR web interface
Opened by Bob (Cotton) - Saturday, 22 October 2005, 17:05 GMT
Last edited by Callan Barrett (wizzomafizzo) - Thursday, 05 June 2008, 19:17 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To Simo Leone (neotuli)
Architecture All
Severity Low
Priority Normal
Reported Version 1.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

The "search by" field on the main AUR package list (http://aur.archlinux.org/packages.php) now only contains the name and maintainer fields. There used to be at least 5 options, one of which enabled searching by date. Searches in reverse order are also no longer possible using the menu.

Problem exists regardless of logged in status.

If the intention is to leave it this way and sort by column headers (which is currently possible), can date be added to the displayed fields?
This task depends upon

Closed by  Callan Barrett (wizzomafizzo)
Thursday, 05 June 2008, 19:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  Reimplemented, patch applied in testing
Comment by Simo Leone (neotuli) - Saturday, 29 October 2005, 05:03 GMT
Try clicking the column headers to get sorting. Click once on the header to sort by it, and click again to change asending/decending. I moved it to these headers in this release, as it seems more intuitive (being that it's the most common place for sort-by links to be), if it isn't please let me know.

There never used to be a search by, it always searched by package name&description. Now you have a choice between maintainer and name&description.

I hope that answers it, can I close this bug?
Comment by Bob (Cotton) - Sunday, 30 October 2005, 01:59 GMT
Originally, you are correct in that there was no ability to sort by date, but it was added fairly recently as a feature request (but I can't find it as its been closed now). It also allowed sorts in ascending or descending order.

Without this really useful feature, users cannot identify newly added packages, once they have been removed from the "Recent updates" list at http://aur.archlinux.org/. ie if people don't visit the page for 2 or 3 days, packages will come and go from that page and they won't be able to easily locate new or changed packages since there is currently no way (to my knowledge) of sorting the whole database by date.

So, no, I don't think this report should be closed, unless there is no intention of restoring the functionality we have become accustomed to, but that is obviously your decision.

Thanks.
Comment by Bob (Cotton) - Sunday, 30 October 2005, 02:03 GMT
Just so we are not talking at cross purposes, its the "search by" drop down menu that I am referring to as not offering the date field as an option, not the column headers - the headers can be sorted with no problem using the method you described.
Comment by Simo Leone (neotuli) - Sunday, 30 October 2005, 04:07 GMT
Ahh, heh, well I know about that.

The commit log from when I moved around the buttons:
------------------------------------------------------------------------
r249 | simo | 2005-10-16 19:36:55 -0500 (Sun, 16 Oct 2005) | 3 lines

Move search sorting to column headers
Sort by age still exists, need to reimplement in UI

------------------------------------------------------------------------

So yes, I'll be doing it, though as the log message says, the code still exists, it is just not implemented in the UI. In light of this, in the interim, you may still sort by age by visiting this url: http://aur.archlinux.org/packages.php?SB=a&SO=d

I'll leave this bug open to remind myself to do it.
Comment by Bob (Cotton) - Sunday, 30 October 2005, 11:00 GMT
OK, thanks Simo. That link is useful to know in the interim.
Comment by Bob (Cotton) - Wednesday, 28 December 2005, 22:59 GMT
Any chance of sorting this please. The workaround is only effective for the first page of results, subsequent pages revert to being sorted by the original sort field.

Many thanks.
Comment by Bob (Cotton) - Thursday, 02 March 2006, 17:44 GMT
With the significant rise in daily AUR activity over the last few months, it would be really useful to have this implemented.

Thanks.
Comment by Tom Killian (tomk) - Friday, 03 March 2006, 00:50 GMT
Until simo finds the time, here's an extension of the workaround above. There are twenty five packages displayed per page, so the URL given displays the 25 newest submissions. For 26-50, add &O=25 to the URL, as follows:

http://aur.archlinux.org/packages.php?SB=a&SO=d&O=25

For 51-75, it will be &O=50, etc.

You can also change the number of packages per page - the following will display the 100 newest:

http://aur.archlinux.org/packages.php?SB=a&SO=d&O=0&PP=100
Comment by Bob (Cotton) - Friday, 03 March 2006, 06:58 GMT
Superb - thanks tomk. Its an eye opener.
Comment by Douglas Soares de Andrade (dsa) - Saturday, 10 June 2006, 01:33 GMT
The attached patch solve the issue.
Comment by Douglas Soares de Andrade (dsa) - Tuesday, 08 August 2006, 22:45 GMT
Forget the above patch. It dont work.
Comment by Douglas Soares de Andrade (dsa) - Tuesday, 22 August 2006, 13:30 GMT
This new patch solves it.
Comment by Paul Mattal (paul) - Thursday, 01 February 2007, 01:28 GMT
Opened until the fix is rolled out. We can close it right after.
Comment by Bob (Cotton) - Friday, 13 July 2007, 19:33 GMT
Many thanks for getting this implemented, its really useful.
Comment by Bob (Cotton) - Tuesday, 19 February 2008, 23:11 GMT
Arrrggg - the new skin has just broken this (again).

Please reimplement the fix.
Comment by Baeyens (berbae) - Wednesday, 20 February 2008, 22:28 GMT
I think too that this functionality is very useful and I miss it very much.
When I return to my computer after some days being away from home, I cannot see all the new packages any more, the ones added since my last login.
I think that this function is indispensable.
Could you please restore it as before.
Comment by Baeyens (berbae) - Thursday, 21 February 2008, 13:39 GMT
I just realize that the links given above by neotuli and tomk give the expected results sorted by date as I wish.
So with this trick I've got again what I missed.
Comment by Bob (Cotton) - Thursday, 21 February 2008, 18:52 GMT
Better to have it functional though, as this info is "below the radar" for most folks.

And better still, to have the fix added to the "AUR Packages webpage update process" so it can't happen again. Which, after all, is the main point of implementing a bug tracking system.

Loading...