diff --git a/src/api/route-services/experiment.js b/src/api/route-services/experiment.js index c6b445cf2..407142860 100644 --- a/src/api/route-services/experiment.js +++ b/src/api/route-services/experiment.js @@ -200,9 +200,6 @@ class ExperimentService { const data = JSON.parse(outputObject.Body.toString()); - console.log('dataDebug'); - console.log(data); - return data; } catch (e) { if (e.code === 'NoSuchKey') { @@ -233,9 +230,6 @@ class ExperimentService { } async updateCellSets(experimentId, cellSetData) { - console.log('cellSetDataDebug'); - console.log(JSON.stringify(cellSetData)); - const cellSetsObject = JSON.stringify({ cellSets: cellSetData }); const s3 = new AWS.S3(); diff --git a/src/api/route-services/work-response.js b/src/api/route-services/work-response.js index b76b59dc7..6629ca411 100644 --- a/src/api/route-services/work-response.js +++ b/src/api/route-services/work-response.js @@ -24,23 +24,17 @@ class WorkResponseService { async notifyDataUpdate(responseForClient) { const { experimentId } = responseForClient.request; - // this should resend the request so the UI can replay it + // this should send the request so the UI can make it again if needed // instead of sending the data to everyone const response = { response: responseForClient, - // request: responseForClient.request, status: NEW, type: DATA_UPDATE, }; - console.log('responseForClientDebug'); - console.log(responseForClient); - + // for now we only want to notify about cell sets updates if (responseForClient.request.body.name === 'ClusterCells') { const cellSets = JSON.parse(responseForClient.results[0].body); - - console.log('cellSetsDebug'); - console.log(cellSets); await (new ExperimentService()).updateLouvainCellSets(experimentId, cellSets); } @@ -136,9 +130,6 @@ class WorkResponseService { throw e; } - // const { experimentId } = responseForClient.request; - - // Does this belong in `if (socketId === 'no-socket') {` ? await this.notifyDataUpdate(responseForClient); if (socketId === 'no-socket') { diff --git a/src/api/routes/experiment.js b/src/api/routes/experiment.js index d1671e652..5d193fdc4 100644 --- a/src/api/routes/experiment.js +++ b/src/api/routes/experiment.js @@ -40,8 +40,6 @@ module.exports = { 'experiment#updateCellSets': [ expressAuthorizationMiddleware, (req, res, next) => { - console.log('REQUEST UPDATE FOR CELLSETS MORTY'); - console.log(JSON.stringify(req.body)); experimentService.updateCellSets(req.params.experimentId, req.body) .then((data) => res.json(data)) .catch(next);