Ticket #8271 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

[ICAT] Sort by file size not working correctly

Reported by: Arturs Bekasovs Owned by: Jay Rainey
Priority: major Milestone: Release 3.1
Component: GUI Keywords: ICAT,ICAT4
Cc: Blocked By:
Blocking: Tester: Arturs Bekasovs

Description

On the data pane for any investigation, if you try to sort by size of the data file, sorting is pretty primitive (character by character) and you don't get what you expect.

E.g. 112B is bigger than 1020B, or 2B is bigger than 1G.

Change History

comment:1 Changed 7 years ago by Jay Rainey

  • Keywords ICAT,ICAT4 added
  • Summary changed from ICat: Sort by file size not working correctly to [ICAT] Sort by file size not working correctly

comment:2 Changed 7 years ago by Jay Rainey

  • Status changed from new to inprogress

Sort by filesize in datafile table. Refs #8271.

Changeset: ad142f7f8dcfb802f7b1f77fe918793d04d6613a

comment:3 Changed 7 years ago by Jay Rainey

Hide `file size(bytes) column. Refs #8271.

Changeset: 2b04375227bfb922619cfb4735162f32a06615ae

comment:4 Changed 7 years ago by Jay Rainey

  • Status changed from inprogress to verify
  • Resolution set to fixed

To test

  1. Open Mantid & log into the catalog.
  2. Perform a search. For example, entire structure into 'Investigation name'.
  3. Click an investigation.
  4. The datafile table will be populated (default sorted by name).
  5. Click the "File size" column and verify if the table is now sorted by file size. Click it again to sort in the opposite order (ascending/descending).

The table should now sort by file size when the related column is clicked.

comment:5 Changed 7 years ago by Arturs Bekasovs

  • Status changed from verify to verifying
  • Tester set to Arturs Bekasovs

comment:6 Changed 7 years ago by Arturs Bekasovs

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/feature/8271_icat_sort_by_filesize'

Full changeset: fb0d7126c4320a6cff0ff017001e6a4782734b29

comment:7 Changed 7 years ago by Arturs Bekasovs

Code changes are sensible. Sorting by file size now works as expected.

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9116

Note: See TracTickets for help on using tickets.