diff --git a/beat/web/reports/static/reports/app/controllers/reportController.js b/beat/web/reports/static/reports/app/controllers/reportController.js index f1a98c82d00d966f227b22bcc06dbf7b6ca194d5..3db7e558c08a4fec670faf8e8efbed83aa9f05eb 100644 --- a/beat/web/reports/static/reports/app/controllers/reportController.js +++ b/beat/web/reports/static/reports/app/controllers/reportController.js @@ -22,7 +22,6 @@ //This controller retrieves data from the reportFactory/experimentFactory through the REST API and associates it with the $scope //The $scope is ultimately bound to the report view angular.module('reportApp').controller('reportController',['$scope', 'reportFactory', 'experimentFactory', 'plotterFactory', 'dataFactory', '$q', 'ReportService', function ($scope, reportFactory, experimentFactory, plotterFactory, dataFactory, $q, ReportService){ - console.log($scope); $scope.q = $q; $scope.user; $scope.report_id; diff --git a/beat/web/reports/static/reports/app/services/experimentsService.js b/beat/web/reports/static/reports/app/services/experimentsService.js index 41042dd36b8c7027ed61a58d6f7a00aa46a472de..90a413959048e80933a2a4256324547f5540af85 100644 --- a/beat/web/reports/static/reports/app/services/experimentsService.js +++ b/beat/web/reports/static/reports/app/services/experimentsService.js @@ -147,11 +147,8 @@ angular.module('reportApp').factory('ExperimentsService', ['experimentFactory', // make sure there are no invalid experiments in the report's groups const cleanGroups = (validExpNames) => { - console.log(`valid exp names: ${validExpNames}`); GroupsService.groups.forEach(g => { - console.log(`Found group: ${g.name}`); g.experiments.forEach(e => { - console.log(`Found exp in ${g.name}: ${e}`); // when the user can see the exp, the full name of the exp is available, // including the user who made it, and the toolchain const fullNameValid = validExpNames.includes(e); @@ -159,7 +156,7 @@ angular.module('reportApp').factory('ExperimentsService', ['experimentFactory', // only the actual name of the exp is available const partNameValid = validExpNames.includes(e.split('/').pop()); if(!(fullNameValid || partNameValid)){ - console.log(`NOT VALID: ${e}`); + console.log(`INVALID EXPERIMENT: ${e}`); g.removeExperiment(e); } }); @@ -171,9 +168,6 @@ angular.module('reportApp').factory('ExperimentsService', ['experimentFactory', const namePath = UrlService.getByNamePath(); const numberPath = UrlService.getByNumberPath(); - console.log(namePath); - console.log(numberPath); - if(namePath && namePath.length > 0){ // get exps by report num const user = namePath.split('/')[1]; @@ -182,7 +176,6 @@ angular.module('reportApp').factory('ExperimentsService', ['experimentFactory', } else if(numberPath && numberPath.length > 0){ //by report author const num = numberPath.split('/')[1]; - console.log(numberPath.split('/')); expFetch = experimentFactory.getAllExperimentResults('', num); } diff --git a/beat/web/reports/static/reports/app/services/reportService.js b/beat/web/reports/static/reports/app/services/reportService.js index 542b93a04cef6e12f9ea9f4551ae83004a489dc0..c2204866630aa9d66e8ae27b283d6205483a96e6 100644 --- a/beat/web/reports/static/reports/app/services/reportService.js +++ b/beat/web/reports/static/reports/app/services/reportService.js @@ -38,7 +38,6 @@ angular.module('reportApp').factory('ReportService', ['GroupsService', 'plotterF rs.plotterParameters = []; rs.processReport = (report) => { - console.log(`processing report:`); console.log(report); rs.isAnonymous = report.anonymous; @@ -65,5 +64,7 @@ angular.module('reportApp').factory('ReportService', ['GroupsService', 'plotterF }); }; + console.log(rs); + return rs; }]);