I should be able to sort the content of the builds table using the columns shown as sorting criteria (whenever the nature of the column information lends itself to sorting). The specifics of the sorting behaviour for each column are TBC.
Created attachment 1357 [details] Sorting the "All builds" table
Created attachment 1398 [details] Sorting the "All builds" table
Back-end data interface and API implemented. Docs should reflect available API and GUI usage.
Created attachment 1431 [details] Sorting the "All builds" table
Created attachment 1728 [details] Sorting the "All builds" table We have agreed that the "Failed tasks" column should not be sortable. Updating the document accordingly.
I believe that the feature works as designed.
There are still a few issues with the sorting in this table. I am going to reopen as a way to keep track of them. If you rather do something different, let me know. In master:54562006c1327c5b99daa4cc05a3ba7e38412da1 Issues: * We need to apply the ‘sorted’ style to the applied sorting * The default sorting applied when you load the table should be "Completed on" in inverse chronological order (earliest build on top), so caret up. Right now, it is sorted in chronological order (oldest build on top) * When used as secondary sorting criteria, "Completed on" show sort builds in inverse chronological order (right now it sorts in chronological order) * The sorting only seems to sort the content of a single page. This is not the right behaviour. If I am in page 4 and then sort, I should be brought back to page 1. * When a filter returns no results, the search field is empty but shows the clear button. The clear button should never show when the search field is empty.
All fixed, except for > > * When used as secondary sorting criteria, "Completed on" show sort builds > in inverse chronological order (right now it sorts in chronological order) This is still not working (showing the oldest build on top, instead of the newest one).
Testcase 901 is created for the feature. https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=901
Verified in 1f16ca9fba325f5ddbb1edad5bbad78d990de5e0.
Created attachment 1863 [details] Sorting the "All builds" table Removing the "Weird interactions with filters" section for the "Errors" and "Warnings" columns (pp 9 and 10), since the number of errors/warnings and the secondary sorting criteria take care of the situation perfectly well.