From dbff86915efcde4a1449c4da75d7a9d5f11f630f Mon Sep 17 00:00:00 2001 From: "makabe.t" Date: Mon, 29 Jan 2024 05:54:35 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20708:=20=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task3550: 対応](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/3550) - Worktypeの登録・編集時に16文字までとなるように制限を修正しました。 - APIのバリデータ - 画面の最大文字数 ## レビューポイント - 対応内容の認識はあっていますでしょうか? ## UIの変更 - なし ## 動作確認状況 - ローカルで確認 --- .../src/pages/WorkTypeIdSettingPage/addWorktypeIdPopup.tsx | 2 +- .../src/pages/WorkTypeIdSettingPage/editWorktypeIdPopup.tsx | 2 +- dictation_server/src/features/accounts/types/types.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dictation_client/src/pages/WorkTypeIdSettingPage/addWorktypeIdPopup.tsx b/dictation_client/src/pages/WorkTypeIdSettingPage/addWorktypeIdPopup.tsx index 7f4934f..bf0f407 100644 --- a/dictation_client/src/pages/WorkTypeIdSettingPage/addWorktypeIdPopup.tsx +++ b/dictation_client/src/pages/WorkTypeIdSettingPage/addWorktypeIdPopup.tsx @@ -85,7 +85,7 @@ export const AddWorktypeIdPopup: React.FC = ( { diff --git a/dictation_client/src/pages/WorkTypeIdSettingPage/editWorktypeIdPopup.tsx b/dictation_client/src/pages/WorkTypeIdSettingPage/editWorktypeIdPopup.tsx index 248005b..a3d4fee 100644 --- a/dictation_client/src/pages/WorkTypeIdSettingPage/editWorktypeIdPopup.tsx +++ b/dictation_client/src/pages/WorkTypeIdSettingPage/editWorktypeIdPopup.tsx @@ -84,7 +84,7 @@ export const EditWorktypeIdPopup: React.FC = ( { diff --git a/dictation_server/src/features/accounts/types/types.ts b/dictation_server/src/features/accounts/types/types.ts index e0202f7..2648785 100644 --- a/dictation_server/src/features/accounts/types/types.ts +++ b/dictation_server/src/features/accounts/types/types.ts @@ -198,7 +198,7 @@ export class CancelIssueRequest { export class CreateWorktypesRequest { @ApiProperty({ minLength: 1, maxLength: 255, description: 'WorktypeID' }) @MinLength(1) - @MaxLength(255) + @MaxLength(16) @IsRecorderAllowed() worktypeId: string; @ApiProperty({ description: 'Worktypeの説明', required: false }) @@ -210,7 +210,7 @@ export class CreateWorktypesRequest { export class UpdateWorktypesRequest { @ApiProperty({ minLength: 1, description: 'WorktypeID' }) @MinLength(1) - @MaxLength(255) + @MaxLength(16) @IsRecorderAllowed() worktypeId: string; @ApiProperty({ description: 'Worktypeの説明', required: false })