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

[BE] 페어룸을 생성할 때 미션 링크 저장 #756

Merged
merged 3 commits into from
Oct 11, 2024

Conversation

yechop
Copy link
Contributor

@yechop yechop commented Oct 11, 2024

연관된 이슈

구현한 기능

페어룸 테이블에 미션 링크 추가

상세 설명

페어룸 생성할 때 미션 링크를 저장

@yechop yechop changed the title [BE [BE] 페어룸을 생성할 때 미션 링크 저장 Oct 11, 2024
@yechop yechop self-assigned this Oct 11, 2024
Copy link
Contributor

@JiHyeonL JiHyeonL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

조씀니다!!👍
나중에 테이블에 missionUrl 컬럼을 추가해봅시다~~~

Copy link
Member

@koust6u koust6u left a 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());
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[질문]
요 미션없이 페어룸 시작하기 하면 이건 어떻게 되나요?

Copy link
Contributor Author

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을 추가해두었는데 설명을 더 적어두어야 할 곳이 있다면 말씀해주세용

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

미션 그냥 시작할래요하면 url에 null 넣는게 나아 보이는데 빈문자열 사용하신 이유가 있나요?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

파슬리한테 의견 잘 들었습니다 !

Comment on lines +10 to +12
public MissionUrl(final String value) {
this.value = value;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

미션 링크 검증은 DTO에서만 해도될지요? 고민해보면 좋을거같은데요.
코드로 보기엔 null값만 아니면 생성되는거 같은데 여기에 검증 기능 더 타이트하게 넣도 되지 않을까요?

Copy link
Member

@reddevilmidzy reddevilmidzy left a 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)
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

파슬리한테 의견 잘 들었습니다 !

Comment on lines +28 to +29
@NotNull
String missionUrl,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

문자열은 @notblank 사용해주세요!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

빈값을 허용해야해서 @NotNull만 사용했습니다!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 맞네요

@yechop yechop merged commit ace06d1 into BE/dev Oct 11, 2024
9 checks passed
@yechop yechop deleted the BE/feature/#754-mission-repo branch October 11, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants