Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLAP-486 구분 중복성 검증 logic 및 카테고리 글자수 제한 logic 수정 #608

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public record AddSubCategoryRequest(
String name,
@NotBlank @Pattern(regexp = "^[A-Z]{1,2}$", message = "올바른 카테고리 코드 형식이 아닙니다.")
String code,
@Length(max = 255)
@Length(max = 1000)
String descriptionExample) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public record UpdateCategoryRequest(
String name,
@NotBlank @Pattern(regexp = "^[A-Z]{1,2}$", message = "올바른 카테고리 코드 형식이 아닙니다.")
String code,
@Length(max = 255)
@Length(max = 1000)
String descriptionExample
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public record CreateTaskRequest(
String title,

@Schema(description = "작업 설명")
@Length(max = 200)
@Length(max = 1000)
String description
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public record UpdateTaskRequest(
String title,

@Schema(description = "작업 설명", example = "업데이트된 설명.")
@Length(max = 200)
@Length(max = 1000)
String description,

@Schema(description = "삭제할 파일 ID 목록, 없을 경우 emptylist 전송")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public List<Label> findLabelList() {

@Override
public boolean existsByLabelName(String labelName) {
return labelRepository.existsByLabelName(labelName);
return labelRepository.existsByLabelNameAndIsDeletedFalse(labelName);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class CategoryEntity extends BaseTimeEntity {
@JoinColumn(name = "main_category_id")
private CategoryEntity mainCategory;

@Column
@Column(length = 1000)
private String descriptionExample;

@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class TaskEntity extends BaseTimeEntity {
@Column(nullable = false)
private String title;

@Column
@Column(length = 1000)
private String description;

@ManyToOne(fetch = FetchType.EAGER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ public interface LabelRepository extends JpaRepository<LabelEntity, Long> {

List<LabelEntity> findByIsDeletedFalse();

boolean existsByLabelName(String labelName);
boolean existsByLabelNameAndIsDeletedFalse(String labelName);
}