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

Feature/#85 컨퍼런스 상세 정보 조회 기능추가 #94

Conversation

hong-sile
Copy link
Collaborator

#️⃣연관된 이슈

📝작업 내용

  • id기준으로 event를 조회하는 기능 추가

close #85

@hong-sile hong-sile added Backend 백엔드 관련 이슈 기능 추가 새로운 기능 추가 및 기존 기능 변경 labels Jul 25, 2023
@hong-sile hong-sile self-assigned this Jul 25, 2023
@java-saeng
Copy link
Collaborator

현장 리뷰 완료요~

Copy link
Collaborator

@amaran-th amaran-th left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~!!

@@ -1,16 +1,31 @@
package com.emmsale.event.application.dto;

import com.emmsale.event.domain.Event;
import java.time.format.DateTimeFormatter;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
@Getter
public class EventResponse {
Copy link
Collaborator

Choose a reason for hiding this comment

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

행사 목록 조회 API에서 만든 EventResponse랑 같은 이름을 사용하고 있어서 조율이 필요할 것 같습니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

detailResponse로 변경하였습니다.


@Override
public BaseExceptionType exceptionType() {
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

null 대신 eventExceptionType을 반환하도록 해야 할 것 같습니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이 부분은 실수했네요 반영하겠습니다.

Copy link
Collaborator

@amaran-th amaran-th left a comment

Choose a reason for hiding this comment

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

리뷰할 때 놓친 게 있었네요...!😥
index.adoc이 업데이트가 안된 것 같습니다!
작성해주세요~~!

Copy link
Collaborator

@hyeonjerry hyeonjerry left a comment

Choose a reason for hiding this comment

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

크게 수정할 점은 보이지 않네요!
수고하셨습니다~

@Getter
public class EventDetailResponse {

private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern(
Copy link
Collaborator

Choose a reason for hiding this comment

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

혹시 이 상수는 어디서 사용하는걸까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

정적팩터리 메서드에서 LocaldTateTIme을 String으로 바꾸는데 사용했습니댜.

근데, 지금은 @JsonProperty를 이용하여 포맷팅하도록 리팩터링 했습니다.

Copy link
Collaborator

Choose a reason for hiding this comment

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

이제 사용하지 않는다면 지워도 되지 않을까요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

지웠습니당

@Autowired
private EventRepository eventRepository;

@Nested
Copy link
Collaborator

Choose a reason for hiding this comment

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

저는 Nested를 성격이 다른 테스트가 한 테스트 파일에 있을 때 같은 성격의 테스트끼리 그룹화하기 위해 사용하는데 여기서는 굳이 필요해 보이지 않습니다.
혹시 Nested를 사용하신 이유나 기준이 있으신가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

저는 Nested를 묶는 기준이 하나의 메서드에 대한 테스트일 때 묶습니다.

이 경우에는 findEvent에 대한 테스트끼리 묶었다고 볼 수 있죠.

지금 저 테스트들만 있는데 묶은 이유는 추후 EventService에서 많은 테스트들이 생기기 때문에 미리 묶어둔 겁니당.

@java-saeng
Copy link
Collaborator

추가로 .http 테스트 만들기로 했었어서 그것까지 부탁드려요~

@hong-sile hong-sile closed this Jul 26, 2023
@hong-sile hong-sile reopened this Jul 26, 2023
Copy link
Collaborator

@amaran-th amaran-th left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~!

@hong-sile hong-sile merged commit ee5f4a2 into backend-main Jul 26, 2023
1 check passed
@hyeonjerry hyeonjerry deleted the Feature/#85-컨퍼런스_상세_정보_조회_기능추가 branch July 31, 2023 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend 백엔드 관련 이슈 기능 추가 새로운 기능 추가 및 기존 기능 변경
Projects
Status: Archive
Development

Successfully merging this pull request may close these issues.

4 participants