From c9d69335bba9f41472043a825f0e09036cdda2e6 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Wed, 22 May 2024 13:49:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E6=9C=AA=E5=8F=91=E9=80=81?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5&=E8=A1=A5=E5=85=85?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1040932 --user=王旭 【项目管理】消息设置-测试计划删除,更新站内信接收平台收不到消息通知 https://www.tapd.cn/55049933/s/1518221 --- .../resources/migration/3.0.0/dml/V3.0.0_12_1__data.sql | 3 +++ .../project-management/src/main/resources/permission.json | 8 ++++++++ .../main/java/io/metersphere/plan/dto/TestPlanDTO.java | 1 + 3 files changed, 12 insertions(+) diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_12_1__data.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_12_1__data.sql index 73212c190c..366c4374c6 100644 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_12_1__data.sql +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_12_1__data.sql @@ -32,5 +32,8 @@ INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_TEST_PLAN_REPORT:READ+SHARE'); INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_member', 'PROJECT_TEST_PLAN_REPORT:READ+DELETE'); +INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_APPLICATION_TEST_PLAN:READ'); +INSERT INTO user_role_permission (id, role_id, permission_id) VALUES (UUID_SHORT(), 'project_admin', 'PROJECT_APPLICATION_TEST_PLAN:UPDATE'); + -- set innodb lock wait timeout to default SET SESSION innodb_lock_wait_timeout = DEFAULT; diff --git a/backend/services/project-management/src/main/resources/permission.json b/backend/services/project-management/src/main/resources/permission.json index 2eb51e4544..a62002c008 100644 --- a/backend/services/project-management/src/main/resources/permission.json +++ b/backend/services/project-management/src/main/resources/permission.json @@ -139,6 +139,14 @@ "name": "permission.project_application.name", "license": true, "permissions": [ + { + "id": "PROJECT_APPLICATION_TEST_PLAN:READ", + "name": "permission.project_application_test_plan.read" + }, + { + "id": "PROJECT_APPLICATION_TEST_PLAN:UPDATE", + "name": "permission.project_application_test_plan.update" + }, { "id": "PROJECT_APPLICATION_API:READ", "name": "permission.project_application_api.read" diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanDTO.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanDTO.java index a443d58390..95945df8ee 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanDTO.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanDTO.java @@ -11,6 +11,7 @@ import lombok.NoArgsConstructor; @Data @NoArgsConstructor public class TestPlanDTO { + private String id; @Schema(description = "message.domain.test_plan_num") private Long num;