Bug 1321740

Summary: Columns order not stable after reload on systems UI
Product: [Retired] Beaker Reporter: Roman Joost <rjoost>
Component: web UIAssignee: Roman Joost <rjoost>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 21CC: dcallagh, dowang, mjia, rjoost
Target Milestone: 23.0Keywords: Patch, UserExperience
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-07 23:12:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Roman Joost 2016-03-29 03:56:59 UTC
Description of problem:

The order of the columns rendered in the systems UI (or any UI using the same framework) is not stable. Columns can move places between reloads. 

The code which causes this is in: bkr.server.controllers.py:500 The order of the columns is influenced by the order of the keys in the dictionary from Turbogears.

Version-Release number of selected component (if applicable):

develop

How reproducible:

Can be tricky, since it depends on the ordering of the dictionary.

Steps to Reproduce:
1. Add an additional column to the default columns (use Toggle Result Columns) which is sortable.
2. Click the header to change the sorting. Check the placement of columns in the table who can change.

Actual results:

Columns move around.

Expected results:

Columns stay at the same place between reloads.

Comment 1 Roman Joost 2016-03-30 02:31:15 UTC
Patch is available for review:

http://gerrit.beaker-project.org/4767

Comment 5 Dan Callaghan 2016-07-07 23:12:12 UTC
Beaker 23.0 has been released.