StarlingX Horizon plugins for new StarlingX services
Go to file
Yan Chen d230601b8e Use timesinceSorter instead of the uptimeSorter.
timesinceSorter is provided by horizon as the default sorter of
the datetime fields in a table. We don't have to create a uptimeSorter
for host inventory panel.

The reason that we failed to use timesinceSorter before is the
datetime returned by host.boottime is calculated by datetime.now() but
not timezone.now(). With this change, timesinceSorter can work well
with host inventory panel.

Test done for the change:

1. Build iso with this patch.
2. Deploy with 1 controller and 2 compute nodes.
3. Open starlingx dashboard, Admin -> Platform -> Host Inventory,
press on the column head of "Uptime" of the table for compute nodes,
the timesinceSorter works well to sort the compute nodes.
4. Check the page source, the Uptime column is marked as
"data-type="timesince"", and the data for this column is marked
with data-seconds (added by the timesince_sortable filter),
format as below:
  <span data-seconds="4361">1 hour, 12 minutes</span>

Closes-Bug: 1809861

Change-Id: I5f9e896ccb0e4bb0e7d801402f9139e191cf9e08
Signed-off-by: Yan Chen <yan.chen@intel.com>
2018-12-28 01:37:38 +08:00
doc Enable zuul unit tests for stx-gui 2018-11-14 17:07:30 -05:00
releasenotes Merge "[Doc] openstackdocstheme starlingxdocs theme" 2018-10-22 12:46:47 +00:00
starlingx-dashboard Use timesinceSorter instead of the uptimeSorter. 2018-12-28 01:37:38 +08:00
.gitignore [Doc] Release Notes Management 2018-09-25 05:44:57 -05:00
.gitreview Add .gitreview 2018-05-20 20:53:11 -07:00
.zuul.yaml Enable zuul unit tests for stx-gui 2018-11-23 14:29:29 -05:00
CONTRIBUTING.rst Update the URL in doc 2018-09-24 22:26:46 +08:00
HACKING.rst Update the URL in doc 2018-09-24 22:26:46 +08:00
LICENSE StarlingX open source release updates 2018-05-20 20:53:11 -07:00
centos_pike_wheels.inc Rename centos_wheels.inc to centos_pike_wheels.inc 2018-11-14 15:07:23 -06:00
centos_pkg_dirs Add starlingx dashboard package 2018-09-04 16:04:49 -04:00
pylint.rc Enable zuul unit tests for stx-gui 2018-11-23 14:29:29 -05:00
test-requirements.txt Enable zuul unit tests for stx-gui 2018-11-13 13:48:17 -05:00
tox.ini Enable zuul unit tests for stx-gui 2018-11-23 14:29:29 -05:00