Bug 1321740 - Columns order not stable after reload on systems UI
Summary: Columns order not stable after reload on systems UI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: web UI
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 23.0
Assignee: Roman Joost
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-29 03:56 UTC by Roman Joost
Modified: 2016-07-07 23:12 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-07 23:12:12 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.