← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1518893] [NEW] Instance flavor column does not sort the proper way

 

Public bug reported:

Latest horizon from master branch.

When displaying the instance list of a project in the Horizon dashboard
(/project/instances/) and sorting the instances by the "size" column, it
won't be sorted the right way.


How to reproduce:

Create 3 instances, 2 with flavor m1.tiny and 1 with flavor m1.small.
Click on the "size" header several times to order them.

Expected result:
m1.tiny
m1.tiny
m1.small

Actual result:
m1.tiny
m1.small
m1.tiny


One would expect them to be sorted by name but instead the "size" filter is used which produces the unordered results.
https://github.com/openstack/horizon/blob/master/horizon%2Fstatic%2Fhorizon%2Fjs%2Fhorizon.tables.js#L258-L285

** Affects: horizon
     Importance: Undecided
     Assignee: Itxaka (itxakaserrano)
         Status: New


** Tags: ux

** Changed in: horizon
     Assignee: (unassigned) => Itxaka (itxakaserrano)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1518893

Title:
  Instance flavor column does not sort the proper way

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Latest horizon from master branch.

  When displaying the instance list of a project in the Horizon
  dashboard (/project/instances/) and sorting the instances by the
  "size" column, it won't be sorted the right way.

  
  How to reproduce:

  Create 3 instances, 2 with flavor m1.tiny and 1 with flavor m1.small.
  Click on the "size" header several times to order them.

  Expected result:
  m1.tiny
  m1.tiny
  m1.small

  Actual result:
  m1.tiny
  m1.small
  m1.tiny

  
  One would expect them to be sorted by name but instead the "size" filter is used which produces the unordered results.
  https://github.com/openstack/horizon/blob/master/horizon%2Fstatic%2Fhorizon%2Fjs%2Fhorizon.tables.js#L258-L285

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1518893/+subscriptions


Follow ups