From 144803a8c2fc5e67c7c17b31d2e13aa86f389652 Mon Sep 17 00:00:00 2001 From: BugKing Date: Tue, 20 Oct 2020 16:50:16 +0800 Subject: [PATCH 1/8] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=94=B9=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- backend/pom.xml | 2 +- frontend/pom.xml | 2 +- .../src/business/components/api/test/model/ScenarioModel.js | 2 +- pom.xml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8b0f86e7e0..0bcbd5ea2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,11 @@ ARG MS_VERSION=dev RUN mkdir -p /opt/apps && mkdir -p /opt/jmeter -ADD backend/target/backend-1.3.jar /opt/apps +ADD backend/target/backend-1.4.jar /opt/apps ADD backend/target/classes/jmeter/ /opt/jmeter/ -ENV JAVA_APP_JAR=/opt/apps/backend-1.3.jar +ENV JAVA_APP_JAR=/opt/apps/backend-1.4.jar ENV AB_OFF=true diff --git a/backend/pom.xml b/backend/pom.xml index dc9d501331..1bed72227a 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -7,7 +7,7 @@ metersphere-server io.metersphere - 1.3 + 1.4 4.0.0 diff --git a/frontend/pom.xml b/frontend/pom.xml index e22139f987..f246001960 100644 --- a/frontend/pom.xml +++ b/frontend/pom.xml @@ -7,7 +7,7 @@ metersphere-server io.metersphere - 1.3 + 1.4 4.0.0 diff --git a/frontend/src/business/components/api/test/model/ScenarioModel.js b/frontend/src/business/components/api/test/model/ScenarioModel.js index f79efe313e..5b101db29a 100644 --- a/frontend/src/business/components/api/test/model/ScenarioModel.js +++ b/frontend/src/business/components/api/test/model/ScenarioModel.js @@ -152,7 +152,7 @@ export class Test extends BaseConfig { constructor(options) { super(); this.type = "MS API CONFIG"; - this.version = '1.3.0'; + this.version = '1.4.0'; this.id = uuid(); this.name = undefined; this.projectId = undefined; diff --git a/pom.xml b/pom.xml index f43ee92c7c..27f82b6fa6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 io.metersphere metersphere-server - 1.3 + 1.4 pom From 40d217b75bb498160f68f19714ebca75fed8bfc1 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 21 Oct 2020 09:41:53 +0800 Subject: [PATCH 2/8] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4flyway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/db/migration/V33__modify_message_task.sql | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/src/main/resources/db/migration/V33__modify_message_task.sql b/backend/src/main/resources/db/migration/V33__modify_message_task.sql index 02ddd9f0c7..ef7210dce0 100644 --- a/backend/src/main/resources/db/migration/V33__modify_message_task.sql +++ b/backend/src/main/resources/db/migration/V33__modify_message_task.sql @@ -1,5 +1,4 @@ -alter table message_task - add identification varchar(255) not null; -alter table message_task - add result boolean not null; -alter table message_task change result is_Set tinyint(1) not null; \ No newline at end of file +ALTER TABLE message_task + ADD identification varchar(255) NOT NULL; +ALTER TABLE message_task + ADD result tinyint(1) NOT NULL; \ No newline at end of file From 2b99693b3f10f0ab74b97f3f51ac2d5ede2a9ef2 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 21 Oct 2020 09:43:52 +0800 Subject: [PATCH 3/8] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4flyway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/db/migration/V33__modify_message_task.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/resources/db/migration/V33__modify_message_task.sql b/backend/src/main/resources/db/migration/V33__modify_message_task.sql index ef7210dce0..4d74aa41f9 100644 --- a/backend/src/main/resources/db/migration/V33__modify_message_task.sql +++ b/backend/src/main/resources/db/migration/V33__modify_message_task.sql @@ -1,4 +1,4 @@ ALTER TABLE message_task ADD identification varchar(255) NOT NULL; ALTER TABLE message_task - ADD result tinyint(1) NOT NULL; \ No newline at end of file + ADD is_set tinyint(1) NOT NULL; \ No newline at end of file From fe1bea3316c24977720b2a82ab1c0c76234d988e Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 21 Oct 2020 16:04:41 +0800 Subject: [PATCH 4/8] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E7=94=A8=E4=BE=8B=E7=9B=B8=E5=85=B3=E7=9A=84=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=92=8C=E8=AF=84=E5=AE=A1=E4=B8=AD=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=99=84=E4=BB=B6=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/io/metersphere/xpack | 2 +- .../case/components/TestCaseAttachment.vue | 118 ++++++++++++++++++ .../track/case/components/TestCaseEdit.vue | 58 ++------- .../track/case/components/TestCaseFile.vue | 2 +- .../view/comonents/TestPlanTestCaseEdit.vue | 39 +++++- .../components/TestReviewTestCaseEdit.vue | 40 +++++- frontend/src/business/components/xpack | 2 +- 7 files changed, 205 insertions(+), 56 deletions(-) create mode 100644 frontend/src/business/components/track/case/components/TestCaseAttachment.vue diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index cf6b065263..ee74568be0 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit cf6b06526324326a563d933e07118fac014a63b4 +Subproject commit ee74568be0beba46da19616f5832e83f9164c688 diff --git a/frontend/src/business/components/track/case/components/TestCaseAttachment.vue b/frontend/src/business/components/track/case/components/TestCaseAttachment.vue new file mode 100644 index 0000000000..c8dae4fa45 --- /dev/null +++ b/frontend/src/business/components/track/case/components/TestCaseAttachment.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index ac1a3d9511..20ef8f4d09 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -226,47 +226,15 @@ {{ $t('test_track.case.upload_tip') }} - - - - - - - - - - - - - - - - - + + +