Skip to content

Commit

Permalink
#53 Add bulk run of analyzers in the observable details page
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Dec 9, 2016
1 parent aea1124 commit 07140be
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions ui/app/scripts/controllers/case/CaseObservablesItemCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@
});
};

$scope.runAll = function() {
_.each($scope.analyzers, function(analyzer, id) {
if(analyzer.active === true) {
console.log('Bulk Run: ' + id);

$scope.runAnalyzer(id);
}
});
};

}
);

Expand Down
1 change: 0 additions & 1 deletion ui/app/views/partials/case/case.observables.item.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ <h4>

<div ng-include="'views/partials/observables/details/artifact-details-information.html'"></div>

<h3 class="pad10 text-primary">Observable Analyzers</h3>
<div ng-include="'views/partials/observables/details/artifact-details-analysers.html'"></div>
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<h3 class="pad10 text-primary">
Observable Analyzers
<span class="pull-right">
<small><a href class="text-primary" ng-click="runAll()">Run all</a></small>
</span>
</h3>
<table class="table table-hover">
<thead>
<th>Analyzer</th>
Expand Down Expand Up @@ -49,7 +55,6 @@
</div>
</div>

<pre>{{report}}</pre>
<div class="row observable-report vpad10" ng-if="report">
<div class="col-md-12">
<report artifact="artifact" content="report.content.full || report.content" default="jsonhuman" flavor="long" name="report.template" status="report.status"></report>
Expand Down

0 comments on commit 07140be

Please sign in to comment.