Server overview: Limit the number of event logs
Restrict the number of high priority event logs to the 5 newest on
the server overview page. All the event logs can still be viewed on
the event log page. The server overview page should just show a
summary and not show all the high priority event logs, which could
number as high as 200.
Resolves openbmc/openbmc#3160
Tested: Running GUI locally and verified the number of high priority
events as 4, 5, 6 and 10.
Change-Id: I3fc22c8d13eb66a6b045d46180f1d195d74e67c3
Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>
diff --git a/app/overview/controllers/system-overview-controller.html b/app/overview/controllers/system-overview-controller.html
index 77dd3de..7be7f9f 100644
--- a/app/overview/controllers/system-overview-controller.html
+++ b/app/overview/controllers/system-overview-controller.html
@@ -118,7 +118,7 @@
</div>
<!-- single event -->
- <a href="#/server-health/event-log/high" ng-repeat="event in logs|orderBy:sortAscending:'+Id'">
+ <a href="#/server-health/event-log/high" ng-repeat="event in logs|orderBy:sortAscending:'+Id'|limitTo : 5">
<div class="row column event-log__single-event">
<div class="row">
<div class="column small-1 large-1 event-log__col-check">