← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1643710] Re: Incorrect order of container objects and folders by size

 

Reviewed:  https://review.openstack.org/404401
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=9963867cd9758c66b12e5953710bbbe739049834
Submitter: Jenkins
Branch:    master

commit 9963867cd9758c66b12e5953710bbbe739049834
Author: Eddie Ramirez <eddie.ramirez@xxxxxxxxx>
Date:   Tue Nov 29 19:17:19 2016 +0000

    Enable sorting by size in containers pane
    
    The containers module was using an incorrect ID in the "Size" column,
    preventing the user from sorting by "Size". This change updates the
    ID s/size/bytes/ which is the resource property holding the actual object size
    in Bytes.
    
    This change also updates the default "subdir" size to 0, that is the
    default value returned in the "Content-Length" header for "subdirectories"
    
    Change-Id: I98d164ec1a08d15f25fcdbc92f45e46c9fa6e5c4
    Closes-bug: 1643710


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
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/1643710

Title:
  Incorrect order of container objects and folders by size

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  How to reproduce:
  1. Go to Project->Object Storage->Containers
  2. Create a few objects with different size also some folders with or without objects in it.
  3. Sort by "Size"

  Actual result:
  Objects are sorted by their size but folders are sorted in an expected way, they could appear between objects.

  Expected result:
  Folders should appear at the beginning (sort ASC) or end of the table (sort DESC). We should assume  the size of folders as "0".

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


References