Bug 9836

Summary: Project builds table and Software Recipes: Sorting does not reset to default when hiding column that is currently being used as the sorting criteria
Product: [Build System, Metadata & Runtime] Toaster Reporter: Libertad <libertad.gonzalez.de.la.cruz>
Component: toasterAssignee: Elliot Smith <elliot.smith>
Status: RESOLVED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: normal    
Priority: Medium CC: belen.barros.pena, jessica.zhang, stanciux.mihail
Version: 2.2   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Libertad 2016-06-28 15:31:22 UTC
DESCRIPTION:
When hiding the column that is currently used as the sorting criteria the table does not reset to the default sorting column.

BUILD: 2.2_M1.rc2: 6f0c5537e02c59e1c8f3b08f598dc049ff8ee098
ENVIRONMENT: Debian 4.3.0-0.bpo.1-amd64
STEPS TO REPRODUCE: 
1.  Access a project page, either by creating a new project or accessing an existing project from the "All builds" table.

2. Click on the "View all project builds" link situated below the top-most "Build" button and text field, next to the "View all targets" link

3. Sort table by a column other than default.

4. Hide column chosen on step 3. Verify that hiding a column that is currently being used as the sorting criteria causes the sorting to reset to the default - i.e "Completed on" in descending order.

4. Go to Compatible software recipes table and repeat step 3-4

EXPECTED OUTCOME: 
When hiding the column active as the sorting criteria it should reset to default column
Comment 1 Belen Barros Pena 2016-07-04 11:18:39 UTC
I can reproduce the problem in the 'project builds' and the 'all builds' tables, but not in the 'software recipes' one (on master:5c11e365e19357f721c49d076971567e7b64b61b)