|
197 | 197 | $scope.analyzersList.active = {};
|
198 | 198 | $scope.analyzersList.datatypes = {};
|
199 | 199 | angular.forEach($scope.analyzersList.analyzers, function (analyzer) {
|
200 |
| - $scope.analyzersList.active[analyzer.id] = false; |
| 200 | + $scope.analyzersList.active[analyzer.name] = false; |
201 | 201 | });
|
202 | 202 | $scope.analyzersList.selected = {};
|
203 | 203 | angular.forEach($scope.analyzersList.analyzers, function (analyzer) {
|
204 |
| - $scope.analyzersList.selected[analyzer.id] = false; |
| 204 | + $scope.analyzersList.selected[analyzer.name] = false; |
205 | 205 | });
|
206 | 206 | });
|
207 | 207 | };
|
|
332 | 332 | };
|
333 | 333 |
|
334 | 334 | $scope.dropArtifact = function (observable) {
|
335 |
| - // TODO check result ! |
336 | 335 | CaseArtifactSrv.api().delete({
|
337 | 336 | artifactId: observable.id
|
338 | 337 | }, function () {
|
|
504 | 503 |
|
505 | 504 | $scope.activeAnalyzers = function () {
|
506 | 505 | angular.forEach($scope.analyzersList.analyzers, function (analyzer) {
|
507 |
| - $scope.analyzersList.active[analyzer.id] = false; |
| 506 | + $scope.analyzersList.active[analyzer.name] = false; |
508 | 507 | });
|
509 | 508 |
|
510 | 509 | $scope.analyzersList.countDataTypes = 0;
|
|
521 | 520 |
|
522 | 521 | angular.forEach($scope.analyzersList.analyzers, function (analyzer) {
|
523 | 522 | if ($scope.checkDataTypeList(analyzer, key)) {
|
524 |
| - $scope.analyzersList.active[analyzer.id] = true; |
| 523 | + $scope.analyzersList.active[analyzer.name] = true; |
525 | 524 | $scope.analyzersList.countActiveAnalyzers.total++;
|
526 | 525 | $scope.analyzersList.countActiveAnalyzers[key]++;
|
527 | 526 |
|
|
567 | 566 |
|
568 | 567 | angular.forEach($scope.selection.artifacts, function (element) {
|
569 | 568 | angular.forEach($scope.analyzersList.analyzers, function (analyzer) {
|
570 |
| - if (($scope.analyzersList.selected[analyzer.id]) && ($scope.checkDataTypeList(analyzer, element.dataType))) { |
| 569 | + if (($scope.analyzersList.selected[analyzer.name]) && ($scope.checkDataTypeList(analyzer, element.dataType))) { |
571 | 570 | toRun.push({
|
572 |
| - analyzerId: analyzer.id, |
| 571 | + analyzerId: analyzer.name, |
573 | 572 | artifact: element
|
574 | 573 | });
|
575 | 574 | }
|
|
607 | 606 | var analyzerIds = [];
|
608 | 607 | AnalyzerSrv.forDataType(artifact.dataType)
|
609 | 608 | .then(function(analyzers) {
|
610 |
| - analyzerIds = _.pluck(analyzers, 'id'); |
| 609 | + analyzerIds = _.pluck(analyzers, 'name'); |
611 | 610 | return CortexSrv.getServers(analyzerIds);
|
612 | 611 | })
|
613 | 612 | .then(function (serverId) {
|
|
0 commit comments