From 625a87062961f4eac87f89e51d5d1be609b35cdc Mon Sep 17 00:00:00 2001 From: q4speed Date: Tue, 22 Sep 2020 10:49:03 +0800 Subject: [PATCH 01/19] refactor(XPack): update submodule --- backend/src/main/java/io/metersphere/xpack | 2 +- frontend/src/business/components/xpack | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index de612c8ef4..15425f3e00 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit de612c8ef47f93c8720ac918d22aaa172977b6f7 +Subproject commit 15425f3e0076c47ff2089b34e2c90ef18cf258dd diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 6ae17a7ced..fff34ae133 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 6ae17a7ced8f8175531f959ed0a0a6a707ba27dc +Subproject commit fff34ae13389a21bb89e3276f52c519e6eade247 From 3b2059de146bf8c2a5c3079e5ac31126a1dfffb5 Mon Sep 17 00:00:00 2001 From: q4speed Date: Tue, 22 Sep 2020 14:39:08 +0800 Subject: [PATCH 02/19] refactor(XPack): update submodule --- backend/src/main/java/io/metersphere/xpack | 2 +- frontend/src/business/components/xpack | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index 15425f3e00..ca1b956888 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit 15425f3e0076c47ff2089b34e2c90ef18cf258dd +Subproject commit ca1b956888a85d9cb7c8b7b8b8692e658e4a63f8 diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index fff34ae133..6dfc8fe7d5 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit fff34ae13389a21bb89e3276f52c519e6eade247 +Subproject commit 6dfc8fe7d5d43dbc80b45942bdcc90999f5c0e99 From 3674320e9b3696c7f764bb68e08f0acd8504b361 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 22 Sep 2020 17:48:30 +0800 Subject: [PATCH 03/19] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95)?= =?UTF-8?q?:=20=E6=95=B0=E6=8D=AE=E5=BA=93=E9=85=8D=E7=BD=AE=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=BF=85=E5=A1=AB=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/request/database/DatabaseFrom.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/test/components/request/database/DatabaseFrom.vue b/frontend/src/business/components/api/test/components/request/database/DatabaseFrom.vue index 4fab4c7e19..89919ab28b 100644 --- a/frontend/src/business/components/api/test/components/request/database/DatabaseFrom.vue +++ b/frontend/src/business/components/api/test/components/request/database/DatabaseFrom.vue @@ -88,18 +88,24 @@ {max: 300, message: this.$t('commons.input_limit', [0, 300]), trigger: 'blur'} ], driver: [ - {required: true, message: this.$t('commons.input_name'), trigger: 'blur'}, + {required: true, message: this.$t('commons.cannot_be_null'), trigger: 'blur'}, ], password: [ {max: 200, message: this.$t('commons.input_limit', [0, 200]), trigger: 'blur'} ], dbUrl: [ - {required: true, message: this.$t('commons.input_name'), trigger: 'blur'}, + {required: true, message: this.$t('commons.cannot_be_null'), trigger: 'blur'}, {max: 500, message: this.$t('commons.input_limit', [0, 500]), trigger: 'blur'} ], username: [ - {required: true, message: this.$t('commons.input_name'), trigger: 'blur'}, + {required: true, message: this.$t('commons.cannot_be_null'), trigger: 'blur'}, {max: 200, message: this.$t('commons.input_limit', [0, 200]), trigger: 'blur'} + ], + poolMax: [ + {required: true, message: this.$t('commons.cannot_be_null'), trigger: 'blur'}, + ], + timeout: [ + {required: true, message: this.$t('commons.cannot_be_null'), trigger: 'blur'}, ] } } From 7713b24506bfcb662fa7de62ba47e2165155f567 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 22 Sep 2020 18:58:37 +0800 Subject: [PATCH 04/19] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1)?= =?UTF-8?q?:=20=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/review/view/components/TestReviewTestCaseEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue b/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue index 60943f93c0..80d8603082 100644 --- a/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue +++ b/frontend/src/business/components/track/review/view/components/TestReviewTestCaseEdit.vue @@ -20,7 +20,7 @@ - + {{ $t('test_track.return') }} From 8f807044ad4b7bc3ec7a8b0ba2e5d50e27453691 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 22 Sep 2020 19:48:44 +0800 Subject: [PATCH 05/19] =?UTF-8?q?fix(XPack):=20license=20=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=BC=BA=E9=99=B7=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/controller/APITestController.java | 6 --- .../api/service/APITestService.java | 9 ---- .../controller/LoginController.java | 6 +++ .../io/metersphere/service/UserService.java | 10 +++++ frontend/src/business/App.vue | 45 +++++++++---------- 5 files changed, 38 insertions(+), 38 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/controller/APITestController.java b/backend/src/main/java/io/metersphere/api/controller/APITestController.java index 6ac534febb..28cbd6e764 100644 --- a/backend/src/main/java/io/metersphere/api/controller/APITestController.java +++ b/backend/src/main/java/io/metersphere/api/controller/APITestController.java @@ -127,10 +127,4 @@ public class APITestController { public List listSchedule(@RequestBody QueryScheduleRequest request) { return apiTestService.listSchedule(request); } - - @GetMapping("/license/valid") - public LicenseDTO valid() { - return apiTestService.validateLicense(); - } - } diff --git a/backend/src/main/java/io/metersphere/api/service/APITestService.java b/backend/src/main/java/io/metersphere/api/service/APITestService.java index 83b33c5b37..bedba60a9d 100644 --- a/backend/src/main/java/io/metersphere/api/service/APITestService.java +++ b/backend/src/main/java/io/metersphere/api/service/APITestService.java @@ -437,13 +437,4 @@ public class APITestService { quotaService.checkAPITestQuota(); } } - - public LicenseDTO validateLicense() { - LicenseService licenseService = CommonBeanFactory.getBean(LicenseService.class); - if (licenseService != null) { - return licenseService.valid(); - } - return null; - } - } diff --git a/backend/src/main/java/io/metersphere/controller/LoginController.java b/backend/src/main/java/io/metersphere/controller/LoginController.java index 8452a51810..e0a2e015b1 100644 --- a/backend/src/main/java/io/metersphere/controller/LoginController.java +++ b/backend/src/main/java/io/metersphere/controller/LoginController.java @@ -5,6 +5,7 @@ import io.metersphere.commons.constants.UserSource; import io.metersphere.commons.user.SessionUser; import io.metersphere.commons.utils.SessionUtils; import io.metersphere.controller.request.LoginRequest; +import io.metersphere.dto.LicenseDTO; import io.metersphere.service.UserService; import org.apache.commons.lang3.StringUtils; import org.apache.shiro.SecurityUtils; @@ -67,4 +68,9 @@ public class LoginController { return userService.getDefaultLanguage(); } + @GetMapping("/api/license/valid") + public LicenseDTO valid() { + return userService.validateLicense(); + } + } diff --git a/backend/src/main/java/io/metersphere/service/UserService.java b/backend/src/main/java/io/metersphere/service/UserService.java index ef8e264e57..e72a0b56d0 100644 --- a/backend/src/main/java/io/metersphere/service/UserService.java +++ b/backend/src/main/java/io/metersphere/service/UserService.java @@ -10,6 +10,7 @@ import io.metersphere.commons.constants.UserStatus; import io.metersphere.commons.exception.MSException; import io.metersphere.commons.user.SessionUser; import io.metersphere.commons.utils.CodingUtil; +import io.metersphere.commons.utils.CommonBeanFactory; import io.metersphere.commons.utils.SessionUtils; import io.metersphere.controller.ResultHolder; import io.metersphere.controller.request.LoginRequest; @@ -19,6 +20,7 @@ import io.metersphere.controller.request.member.QueryMemberRequest; import io.metersphere.controller.request.member.UserRequest; import io.metersphere.controller.request.organization.AddOrgMemberRequest; import io.metersphere.controller.request.organization.QueryOrgMemberRequest; +import io.metersphere.dto.LicenseDTO; import io.metersphere.dto.UserDTO; import io.metersphere.dto.UserRoleDTO; import io.metersphere.i18n.Translator; @@ -589,4 +591,12 @@ public class UserService { public List searchUser(String condition) { return extUserMapper.searchUser(condition); } + + public LicenseDTO validateLicense() { + LicenseService licenseService = CommonBeanFactory.getBean(LicenseService.class); + if (licenseService != null) { + return licenseService.valid(); + } + return null; + } } diff --git a/frontend/src/business/App.vue b/frontend/src/business/App.vue index 266b73605e..595f1ff258 100644 --- a/frontend/src/business/App.vue +++ b/frontend/src/business/App.vue @@ -1,15 +1,11 @@