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

[FEAT] 스포츠 전체 조회 기능 구현 #105

Merged
merged 13 commits into from
Feb 14, 2024
Merged

Conversation

Jin409
Copy link
Contributor

@Jin409 Jin409 commented Feb 9, 2024

🌍 이슈 번호

📝 구현 내용

  • 스포츠 종목 전체 조회 기능 구현

🍀 확인해야 할 부분

  • 도메인 용어 통일 필요하다고 생각
    • 종목 / 스포츠 / 스포츠 종목 / 대회 종목..
  • 문서화 테스트까지 작성했는데, 뭐가 문제인지 테스트 부분 롤백해보고, 새로 클론 받아서 main 브랜치 build 를 해봐도 스니펫이 일부만 생성되네요.. 짚이는 구석이 없어서 문제 해결 못하고 우선 pr 올립니당..

@Jin409 Jin409 changed the base branch from main to refactor/#103-erd February 9, 2024 21:40
Base automatically changed from refactor/#103-erd to main February 10, 2024 16:57
@Jin409 Jin409 requested a review from ldk980130 February 13, 2024 20:42
@Jin409 Jin409 self-assigned this Feb 13, 2024
@Jin409 Jin409 marked this pull request as ready for review February 13, 2024 20:42
@Jin409 Jin409 changed the title Feat/#102 get all sports [FEAT] 스포츠 전체 조회 기능 구현 Feb 13, 2024
Copy link
Contributor

@ldk980130 ldk980130 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다! rest docs 오류는 한 번 해결해봤는데 확인해보시고 merge하면 될 것 같습니다~

Comment on lines +11 to +28
@TestConfiguration
public class RestDocsConfig {

private static final OperationRequestPreprocessor HOST_INFO = preprocessRequest(modifyUris()
.scheme("https" )
.host("www.api.hufstreaming.site" )
.removePort(), prettyPrint()
);

@Bean
public RestDocumentationResultHandler restDocsMockMvcConfigurationCustomizer() {
return MockMvcRestDocumentation.document(
"{class-name}/{method-name}",
HOST_INFO,
preprocessResponse(prettyPrint())
);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

위처럼 RestDocumentationResultHandler를 빈으로 등록하고 사용할 곳에서 주입 받아서 사용하면 문서들이 생겨나네요. 저도 정확한 오류 원인은 잘 모르겠지만 빈으로 등록해야 완전하게 동작하나봅니다

    @Autowired
    protected RestDocumentationResultHandler restDocsHandler;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

그때는 되고 지금은 안된다니 . . 당혹스럽네요
해결 감사합니닷 👍🏻🫡

Comment on lines 20 to 21
@Test
void 모든_종목을_조회한다() {
Copy link
Contributor

Choose a reason for hiding this comment

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

스포츠, 종목에 대한 코멘트는 여기다가 남길게요. 확실히 영어이름은 Sport인데 한글로는 스포츠 또는 종목으로 혼용하고 있네요. 축구, 농구 등을 생각했을 땐 스포츠가 적절해보이지만 루미큐브 같은 경우는 스포츠라 볼 수 있는지 애매하긴 하네요.

종목이 더 포괄적인 의미를 담고 있는 것 같긴한데 용어 통일을 해야한다면 현재로서는 스포츠가 더 적절한것 같긴해요.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵 확인했습니당
스포츠로 용어 통일하도록 할게요!

@Jin409 Jin409 merged commit 0c3474d into main Feb 14, 2024
1 check passed
@Jin409 Jin409 deleted the feat/#102-get-all-sports branch February 14, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 스포츠 전체 조회 기능 구현
2 participants