From 6663db4177fc8d6d2e574b3bd11422319107dcff Mon Sep 17 00:00:00 2001 From: Craig Loewen Date: Mon, 15 Apr 2024 11:36:45 -0400 Subject: [PATCH] Fixed prod issue --- app.js | 1 + backendsrc/webDataHandler.js | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/app.js b/app.js index a0e7bdc..dd258b4 100755 --- a/app.js +++ b/app.js @@ -29,6 +29,7 @@ if (process.env.NODE_ENV == 'production') { config.pineconeAPIKey = process.env.pineconeAPIKey; config.azureOpenAIAPIKey = process.env.azureOpenAIAPIKey; config.azureEndpointURL = process.env.azureEndpointURL; + config.debugDisableEmbeddings = false; hostPort = process.env.PORT ? process.env.PORT : 8080; } else { mongooseConnectionString = config.devMongoDBConnectionString; diff --git a/backendsrc/webDataHandler.js b/backendsrc/webDataHandler.js index 4fc8a1d..d35f151 100755 --- a/backendsrc/webDataHandler.js +++ b/backendsrc/webDataHandler.js @@ -2143,24 +2143,18 @@ class WebDataHandler { async getSimilarIssues(queryData) { const { organizationName, repoName, issueTitle, issueBody } = queryData; - console.log("In data: ", queryData); - let issueDescription = GetDescription(issueTitle, issueBody) // to do rewrite to take in issue title and body let dbRepoName = (organizationName + "/" + repoName).toLowerCase(); let repo = await this.RepoDetails.findOne({ shortURL: dbRepoName }); - console.log("Repo short URL: ", repo.shortURL); - if (repo == null) { throw "Repo not found"; } let issue = await this.IssueDetails.findOne({ title: issueTitle, repoRef: repo._id }); - console.log("Issue title if it exists: ", issue?.title); - let similarIssueIDArray = await this.embeddingsHandler.getSimilarIssueIDs(repo, issueDescription, issue); // Make a new array that finds each issue with the id specified in the array above @@ -2178,8 +2172,6 @@ class WebDataHandler { } }); - console.log("Return array: ", returnArray); - return returnArray; } }