Bug 8791

Summary: Software recipes table is not sort by any column by default
Product: [Build System, Metadata & Runtime] Toaster Reporter: Alexandru Roman <alexandru.costinx.roman>
Component: toasterAssignee: Alexandru Roman <alexandru.costinx.roman>
Status: VERIFIED WORKSFORME QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Low CC: alexandru.c.georgescu, belen.barros.pena, elliot.smith, jessica.zhang, stanciux.mihail
Version: 2.1   
Target Milestone: 2.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
normal
none
sorted none

Description Alexandru Roman 2015-12-11 13:07:59 UTC
Find on master: 5e3e2e0cbb0a49986f4653e64c4c8d2b5461645e 

Step to reproduce:
1. Open a project page or create a new one
2. Go to software recipes page

The software recipes table should be sort by default by Software recipe column.
Actually: the software recipes table isn't sort by any column.
Comment 1 Belen Barros Pena 2015-12-14 11:19:58 UTC
Patch send to the mailing list for review

https://lists.yoctoproject.org/pipermail/toaster/2015-December/003557.html
Comment 3 Alexandru Roman 2015-12-17 12:52:59 UTC
Created attachment 2903 [details]
normal

Now the Software recipes table seems to be sorted by software recipe column but it's not correctly sorted.
If you go to software recipes page you will see the software recipe column is bold and you get the recipes in a order (normal.png) if you click on software recipe to sort it descended and then click on it again to reverse sort you will get another order of recipes (sort.png).
Comment 4 Alexandru Roman 2015-12-17 12:54:01 UTC
Created attachment 2904 [details]
sorted
Comment 5 Alexandru Roman 2015-12-17 12:55:31 UTC
Put this bug on reopened.
Comment 6 Alexandru Georgescu 2016-02-04 09:59:01 UTC
seems that the issue still exists in YP 2.1_M2.rc1
master/3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c
Comment 7 Elliot Smith 2016-02-29 14:41:09 UTC
See bug 9011 and bug 7198, which may be resolved once this is sorted.
Comment 8 Elliot Smith 2016-02-29 14:59:01 UTC
I am not able to reproduce this: in my setup (master @ de797434ab30d6025e727370cb59454681610d30) the software recipes are sorted correctly by name. I also tried the steps mentioned in comment 3 and couldn't reproduce the bug that way either.

Please provide more details about your browser and confirm that the bug still exists.

Also, to be sure that this isn't some issue with stale cookies containing incorrect values, please clear any cookies relating to Toaster from your browser before retesting.
Comment 9 Elliot Smith 2016-02-29 15:50:16 UTC
I forgot that the tables linked in the other bugs aren't ToasterTables, so each will have to be fixed separately.
Comment 10 Alexandru Roman 2016-03-01 15:55:25 UTC
Tested on master: 4006a7f2762ccd5dcbc6cdff49482d4387a73261
Can't reproduce anymore
Put this on resolved worksforme
Comment 11 Alexandru Roman 2016-03-02 14:57:08 UTC
Verified.