summaryrefslogtreecommitdiffstats
path: root/app/server-health/controllers
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-06-05 12:58:25 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-06-06 13:50:14 +0000
commit10ed37600bc682cf448a1084d73d53accb16cb6d (patch)
tree0084f7d9b1d95a8c174ea75d0a2bfdda28027ede /app/server-health/controllers
parent84981f0a5835bdbe125e2edb13fd21338889262e (diff)
downloadphosphor-webui-10ed37600bc682cf448a1084d73d53accb16cb6d.tar.gz
phosphor-webui-10ed37600bc682cf448a1084d73d53accb16cb6d.zip
Fix event log sorting
The error logs were ordered "81, 80, 8, 79 ..." sortAscending was causing this, remove it and switch "+Id" to "-Id" which is the correct way to do descending ordering. http://www.tutorialspark.com/AngularJS/AngularJS_Filter_orderBy.php Resolves openbmc/openbmc#3233 Tested: Server Overview page and event log page both show correct order now. Change-Id: Ie1aee542cec8a6157c538838037ce82fc2525e46 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/server-health/controllers')
-rw-r--r--app/server-health/controllers/log-controller.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/server-health/controllers/log-controller.html b/app/server-health/controllers/log-controller.html
index 6d4023a..9dbfd10 100644
--- a/app/server-health/controllers/log-controller.html
+++ b/app/server-health/controllers/log-controller.html
@@ -64,7 +64,7 @@
</div>
</div>
<log-event
- dir-paginate="event in (filteredLogs = (logs|filter:filterBySeverity|filter:filterByStatus|filter:filterByDate|filter:filterBySearchTerms | orderBy:sortAscending:'+Id'))| itemsPerPage: itemsPerPage"
+ dir-paginate="event in (filteredLogs = (logs|filter:filterBySeverity|filter:filterByStatus|filter:filterByDate|filter:filterBySearchTerms | orderBy:'-Id'))| itemsPerPage: itemsPerPage"
event="event"
tmz="tmz"
multi-selected="selectedEvents.length > 1"
OpenPOWER on IntegriCloud