LastNotify sort is not working
search cancel

LastNotify sort is not working

book

Article ID: 414795

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Sorting on LastNotify is not working properly in Notification.

Environment

Watch4net/MnR - 7.x till 7.7

Resolution

  1. Stop tomcat service as <APG_BASE>/bin/manage-modules.sh service stop <tomcat_instance>
  2. Take a backup of existing <APG_BASE>/Web-Servers/Tomcat/Default/webapps/mashupengine/WEB-INF/mashups/GetAlerts.js to non-MnR directory i.e /tmp
  3. Navigate to <APG_BASE>/Web-Servers/Tomcat/Default/webapps/mashupengine/WEB-INF/mashups/ and open GetAlerts.js.
  4. Add below lines in sortAlertsFeedMap function: 
    sortAlertsFeedMap['LastNotifiedAt']= "Extensibility.LastNotifiedAt";
    sortAlertsFeedMap['LastClearedAt']= "Extensibility.LastClearedAt";
     
    After change is added, function would look like:
    var sortAlertsFeedMap = {};
    sortAlertsFeedMap['EventDisplayName'] = "EventName";
    sortAlertsFeedMap['Category']="Tags";
    sortAlertsFeedMap['EventType']="EventKind";
    sortAlertsFeedMap['Name']="InternalEventHandle";
    sortAlertsFeedMap['LastChangedAt']= "LastModified";
    sortAlertsFeedMap['FirstNotifiedAt']= "Created";
    sortAlertsFeedMap['LastNotifiedAt']= "Extensibility.LastNotifiedAt";
    sortAlertsFeedMap['LastClearedAt']= "Extensibility.LastClearedAt";
    sortAlertsFeedMap['Active']= "EventState";
  5. Ensure the file ownership to apg:apg (if required)
  6. Start the tomcat service <APG_BASE>/bin/manage-modules.sh service start <tomcat_instance>