From 34bf64ce7379a778dea43b063c58b955ae800837 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 7 Sep 2020 11:38:02 +0800 Subject: [PATCH 01/13] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96jira=E7=BC=BA?= =?UTF-8?q?=E9=99=B7=E6=97=B6=E5=87=BA=E7=8E=B0=E7=A9=BA=E6=8C=87=E9=92=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metersphere/track/service/IssuesService.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/service/IssuesService.java b/backend/src/main/java/io/metersphere/track/service/IssuesService.java index 76e55cf953..d57d482ef0 100644 --- a/backend/src/main/java/io/metersphere/track/service/IssuesService.java +++ b/backend/src/main/java/io/metersphere/track/service/IssuesService.java @@ -346,10 +346,19 @@ public class IssuesService { String body = responseEntity.getBody(); JSONObject obj = JSONObject.parseObject(body); + LogUtil.info(obj); + + String lastmodify = ""; + String status = ""; + JSONObject fields = (JSONObject) obj.get("fields"); JSONObject statusObj = (JSONObject) fields.get("status"); JSONObject assignee = (JSONObject) fields.get("assignee"); - JSONObject statusCategory = (JSONObject) statusObj.get("statusCategory"); + + if (statusObj != null) { + JSONObject statusCategory = (JSONObject) statusObj.get("statusCategory"); + status = statusCategory.getString("key"); + } String id = obj.getString("id"); String title = fields.getString("summary"); @@ -360,9 +369,8 @@ public class IssuesService { HtmlRenderer renderer = HtmlRenderer.builder().build(); description = renderer.render(document); - String status = statusCategory.getString("key"); Long createTime = fields.getLong("created"); - String lastmodify = ""; + if (assignee != null) { lastmodify = assignee.getString("displayName"); } From c9cf9b8e8f185552ecc8b6a9170c73dc7a0dea45 Mon Sep 17 00:00:00 2001 From: q4speed Date: Mon, 7 Sep 2020 16:11:06 +0800 Subject: [PATCH 02/13] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95?= =?UTF-8?q?):=20=E8=AF=B7=E6=B1=82=E6=94=AF=E6=8C=81=E8=B7=A8=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E6=8B=96=E6=8B=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/test/components/ApiScenarioConfig.vue | 2 +- .../components/request/ApiRequestConfig.vue | 320 +++++++++--------- .../api/test/model/ScenarioModel.js | 2 +- 3 files changed, 165 insertions(+), 159 deletions(-) diff --git a/frontend/src/business/components/api/test/components/ApiScenarioConfig.vue b/frontend/src/business/components/api/test/components/ApiScenarioConfig.vue index ba91dce801..34f42086ef 100644 --- a/frontend/src/business/components/api/test/components/ApiScenarioConfig.vue +++ b/frontend/src/business/components/api/test/components/ApiScenarioConfig.vue @@ -2,7 +2,7 @@
- + diff --git a/frontend/src/business/components/api/test/components/request/ApiRequestConfig.vue b/frontend/src/business/components/api/test/components/request/ApiRequestConfig.vue index a3c69ac094..6c4461b941 100644 --- a/frontend/src/business/components/api/test/components/request/ApiRequestConfig.vue +++ b/frontend/src/business/components/api/test/components/request/ApiRequestConfig.vue @@ -1,33 +1,36 @@ diff --git a/frontend/src/business/components/api/test/model/ScenarioModel.js b/frontend/src/business/components/api/test/model/ScenarioModel.js index 05acfdfac9..cbab697e3a 100644 --- a/frontend/src/business/components/api/test/model/ScenarioModel.js +++ b/frontend/src/business/components/api/test/model/ScenarioModel.js @@ -405,7 +405,7 @@ export class DubboRequest extends Request { this.debugReport = undefined; this.beanShellPreProcessor = new BeanShellProcessor(options.beanShellPreProcessor); this.beanShellPostProcessor = new BeanShellProcessor(options.beanShellPostProcessor); - this.enable = options.enable == undefined ? true : options.enable; + this.enable = options.enable === undefined ? true : options.enable; this.jsr223PreProcessor = new JSR223Processor(options.jsr223PreProcessor); this.jsr223PostProcessor = new JSR223Processor(options.jsr223PostProcessor); From dad8ad2be99b3f3b131dad88ca79a531b5e63d86 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 7 Sep 2020 22:30:38 +0800 Subject: [PATCH 03/13] =?UTF-8?q?feat:=20=E6=B5=8B=E8=AF=95=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=85=B3=E8=81=94=E7=94=A8=E4=BE=8B=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=B7=A8=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/mapper/ext/ExtTestPlanMapper.xml | 13 +-- .../controller/TestCaseNodeController.java | 7 +- .../track/controller/TestPlanController.java | 19 +++- .../track/domain/ReportResultComponent.java | 6 +- .../request/testcase/QueryNodeRequest.java | 13 +++ .../request/testplan/AddTestPlanRequest.java | 13 +++ .../track/service/TestCaseNodeService.java | 36 ++++++-- .../track/service/TestCaseService.java | 4 +- .../track/service/TestPlanProjectService.java | 49 +++++++++++ .../track/service/TestPlanService.java | 48 +++++++++-- .../track/case/components/SwitchProject.vue | 86 +++++++++++++++++++ .../components/track/common/NodeTree.vue | 8 +- .../home/components/RelatedTestPlanList.vue | 6 ++ .../track/plan/components/TestPlanEdit.vue | 15 ++-- .../track/plan/components/TestPlanList.vue | 6 ++ .../plan/view/comonents/TestCaseRelevance.vue | 73 ++++++++++++++-- 16 files changed, 350 insertions(+), 52 deletions(-) create mode 100644 backend/src/main/java/io/metersphere/track/request/testcase/QueryNodeRequest.java create mode 100644 backend/src/main/java/io/metersphere/track/request/testplan/AddTestPlanRequest.java create mode 100644 backend/src/main/java/io/metersphere/track/service/TestPlanProjectService.java create mode 100644 frontend/src/business/components/track/case/components/SwitchProject.vue diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml index 824944f794..ff443b4b68 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtTestPlanMapper.xml @@ -97,9 +97,7 @@