-
Notifications
You must be signed in to change notification settings - Fork 2
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
[BE] 페어룸을 생성할 때 미션 링크 저장 #756
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
조씀니다!!👍
나중에 테이블에 missionUrl 컬럼을 추가해봅시다~~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
같이 생각해봐요!!!
@@ -187,7 +193,7 @@ void find_rooms_by_member() { | |||
pairRoomService.savePairRoom(pairRoomCreateRequest, null); | |||
|
|||
final PairRoomCreateRequest deletePairRoomCreateRequest = new PairRoomCreateRequest("레디", "잉크", 1, 1, | |||
PairRoomStatus.DELETED.name()); | |||
"https://missionUrl.xxx", PairRoomStatus.DELETED.name()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍👍👍 꼼꼼해요!
@@ -43,16 +44,24 @@ public class PairRoomEntity extends BaseTimeEntity { | |||
@Column(name = "DRIVER", nullable = false) | |||
private String driver; | |||
|
|||
@Column(name = "MISSION_URL", nullable = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[질문]
요 미션없이 페어룸 시작하기 하면 이건 어떻게 되나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PairRoomCreateRequest
에
@Schema(description = "미션 리포지토리 링크. '그냥 시작할래요'로 생성하면 빈 문자열")
@NotNull
String missionUrl,
description을 추가해두었는데 설명을 더 적어두어야 할 곳이 있다면 말씀해주세용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
미션 그냥 시작할래요하면 url에 null 넣는게 나아 보이는데 빈문자열 사용하신 이유가 있나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
파슬리한테 의견 잘 들었습니다 !
public MissionUrl(final String value) { | ||
this.value = value; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
미션 링크 검증은 DTO에서만 해도될지요? 고민해보면 좋을거같은데요.
코드로 보기엔 null값만 아니면 생성되는거 같은데 여기에 검증 기능 더 타이트하게 넣도 되지 않을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테스트 코드 고치느라 고생많으셨습니다ㅏ! ㅎㅎ
@@ -43,16 +44,24 @@ public class PairRoomEntity extends BaseTimeEntity { | |||
@Column(name = "DRIVER", nullable = false) | |||
private String driver; | |||
|
|||
@Column(name = "MISSION_URL", nullable = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
미션 그냥 시작할래요하면 url에 null 넣는게 나아 보이는데 빈문자열 사용하신 이유가 있나요?
@@ -43,16 +44,24 @@ public class PairRoomEntity extends BaseTimeEntity { | |||
@Column(name = "DRIVER", nullable = false) | |||
private String driver; | |||
|
|||
@Column(name = "MISSION_URL", nullable = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
파슬리한테 의견 잘 들었습니다 !
@NotNull | ||
String missionUrl, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
문자열은 @notblank 사용해주세요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빈값을 허용해야해서 @NotNull만 사용했습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 맞네요
연관된 이슈
구현한 기능
페어룸 테이블에 미션 링크 추가
상세 설명
페어룸 생성할 때 미션 링크를 저장