Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-1442

Sortable Tables - Implement Column Comparators and Formatters

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      5
    • Epic Link:
    • Sprint:
      Cardinal Sprint 4 (5/4-5/15)

      Description

      Sortable Table Views require ability to use custom or out-of-the-box column sort comparators based on column data type. Right now, the default is to use lexicographical sorting, which is incorrect for some numerical fields. See attachment for an example.

      The data also needs custom or out-of-the-box cell formatters. Right now, they rely on the toString() method of the underlying datatype which is not always correct. For example, switch port numbers are unsigned values, but are being displayed as signed values.

      Implementation Note:
      The proper way to tackle this is to augment the TableRow abstraction (on the server side) to include TableCell and CellComparator concepts...

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            simon Simon Hunt (Inactive)
            Reporter:
            simon Simon Hunt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: