Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
kafkasl committed Jun 11, 2021
1 parent 31a2ae6 commit 69b55e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
6 changes: 0 additions & 6 deletions src/api/route-services/experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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();
Expand Down
13 changes: 2 additions & 11 deletions src/api/route-services/work-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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') {
Expand Down
2 changes: 0 additions & 2 deletions src/api/routes/experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 69b55e2

Please sign in to comment.