Search on KSC Reports page in WebUI does not work

Description

In the WebUI on the KSC Reports page (menu Reports -> KSC Reports), the search in the box "Node & Domain Interface Reports"  does not work.  If I type any character in the search field, the result set below will not be updated. The search in the box "Customized Reports" above works correctly.

Saw that on a customer setup with Meridian 2017 and could also reproduce it on demo.opennms.org with Horizon 22.0.4. Tested with Chrome, Firefox and Internet Explorer.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Alejandro Galue April 17, 2019 at 4:33 PM

Merged into foundation-2017. I'll wait until it is merged to newer versions to make sure that the new location of the JS files won't interfere with the solution. If not, I'll create a new PR.

Alejandro Galue April 15, 2019 at 8:09 PM

Alejandro Galue October 18, 2018 at 7:43 PM

Certainly the problem is legit. I was able to verify it on latest Meridian 2017 and latest Meridian 2018.

Here is the fix:

diff --git a/opennms-webapp/src/main/webapp/KSC/index.jsp b/opennms-webapp/src/main/webapp/KSC/index.jsp index 07e294477fc..d741bd2c81a 100644 --- a/opennms-webapp/src/main/webapp/KSC/index.jsp +++ b/opennms-webapp/src/main/webapp/KSC/index.jsp @@ -145,7 +145,7 @@                <span class="input-group-addon">                  <span class="glyphicon glyphicon-search"></span>                </span> -              <input class="form-control" type="text" placeholder="Search/Filter Resources" ng-model="domainFilter"></input> +              <input class="form-control" type="text" placeholder="Search/Filter Resources" ng-model="resourceFilter"></input>              </div>              <table class="table table-condensed" name="resources">                <thead> diff --git a/opennms-webapp/src/main/webapp/js/onms-ksc/wizard.js b/opennms-webapp/src/main/webapp/js/onms-ksc/wizard.js index cdba6555f4a..d8a166eb643 100644 --- a/opennms-webapp/src/main/webapp/js/onms-ksc/wizard.js +++ b/opennms-webapp/src/main/webapp/js/onms-ksc/wizard.js @@ -113,6 +113,7 @@ angular.module('onms-ksc-wizard', [ .controller('KSCWizardCtrl', ['$scope', '$filter', '$http', '$window', 'growl', function($scope, $filter, $http, $window, growl) { +  $scope.resourceFilter = null;    $scope.resources = [];    $scope.filteredResources = [];    $scope.pageSize = 10;
Fixed

Details

Assignee

Reporter

Priority

PagerDuty

Created October 18, 2018 at 6:48 PM
Updated April 17, 2019 at 4:38 PM
Resolved April 17, 2019 at 4:38 PM

Flag notifications