From 0109e0a8481e30a8d4d7f9a720b164c2810c5ed4 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 18 Mar 2021 15:22:17 +0800 Subject: [PATCH 1/9] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DSQL=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E8=AF=A6=E6=83=85=E6=B2=A1=E6=9C=89=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E5=88=B0=E6=8E=A7=E5=88=B6=E5=8F=B0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/handler/RestControllerExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java b/backend/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java index b81d91fafe..3228880f97 100644 --- a/backend/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java +++ b/backend/src/main/java/io/metersphere/controller/handler/RestControllerExceptionHandler.java @@ -35,7 +35,7 @@ public class RestControllerExceptionHandler { @ExceptionHandler(SQLException.class) public ResultHolder sqlExceptionHandler(HttpServletRequest request, HttpServletResponse response, SQLException e) { response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR.value()); - LogUtil.error(e); + LogUtil.error(e.getMessage(), e); return ResultHolder.error("SQL error happened, please check logs."); } From e8fd3f1847080af9c33435f40f9d53665ff15b76 Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Thu, 18 Mar 2021 16:10:38 +0800 Subject: [PATCH 2/9] =?UTF-8?q?fix:=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/service/TestCaseReviewService.java | 4 ++-- .../definition/components/import/ApiImport.vue | 16 ++++++++++++---- .../components/common/head/HeaderCustom.vue | 4 ++-- frontend/src/i18n/en-US.js | 11 +++++++++-- frontend/src/i18n/zh-CN.js | 11 +++++++++-- frontend/src/i18n/zh-TW.js | 12 ++++++++++-- 6 files changed, 44 insertions(+), 14 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java b/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java index 3cff08ec4e..3a6d74178e 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java @@ -377,7 +377,7 @@ public class TestCaseReviewService { sqlSession.flushStatements(); //同步添加关联的接口和测试用例 - if(request.getChecked()){ + /* if(request.getChecked()){ if (!testCaseIds.isEmpty()) { testCaseIds.forEach(caseId -> { TestCaseWithBLOBs testDtail=testCaseMapper.selectByPrimaryKey(caseId); @@ -434,7 +434,7 @@ public class TestCaseReviewService { }); } - } + }*/ TestCaseReview testCaseReview = testCaseReviewMapper.selectByPrimaryKey(request.getReviewId()); if (StringUtils.equals(testCaseReview.getStatus(), TestCaseReviewStatus.Prepare.name()) || StringUtils.equals(testCaseReview.getStatus(), TestCaseReviewStatus.Completed.name())) { diff --git a/frontend/src/business/components/api/definition/components/import/ApiImport.vue b/frontend/src/business/components/api/definition/components/import/ApiImport.vue index 9d55688bb7..4a21594921 100644 --- a/frontend/src/business/components/api/definition/components/import/ApiImport.vue +++ b/frontend/src/business/components/api/definition/components/import/ApiImport.vue @@ -1,6 +1,7 @@