Skip to content

Conversation

@7zrv
Copy link
Collaborator

@7zrv 7zrv commented Nov 28, 2024

resolved : #69

📌 과제 설명

기관 프로필 조회의 컨트롤러 구현과 테스트 코드 입니다.

👩‍💻 요구 사항과 구현 내용

  • 기관 프로필 조회 컨트롤러 구현
  • center 엔티티의 PK에 columnDefinition = "BINARY(16)" 명시

✅ PR 포인트 & 궁금한 점

presentation 레이어 테스트를 작성하는데 많이 어색한 느낌이었습니다.
테스트 작성이 잘 되었는지 여쭤보고 싶어요

- 기관 프로필 조회 엔드포인트를 위한 컨트롤러 구현
- center의 PK값에 columnDefinition = "BINARY(16)" 옵션을 넣어 타입을 더 명시적으로 나타냄
- 테스트 코드 작성및 검증완료
@7zrv 7zrv self-assigned this Nov 28, 2024
@7zrv 7zrv linked an issue Nov 28, 2024 that may be closed by this pull request
1 task
Copy link
Collaborator

@m-a-king m-a-king left a comment

Choose a reason for hiding this comment

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

수고하셨습니다. 컨트롤러 테스트 이렇게 따라가보게씁니다

Copy link
Collaborator

Choose a reason for hiding this comment

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

좋네용!

.andDo(print())
.andExpect(status().isBadRequest())
.andExpect(jsonPath("$.status").value("400"))
.andExpect(jsonPath("$.detail").value("존재하지 않는 기관 ID 입니다."));
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.

감사합니다 반영하겠습니다

Copy link
Collaborator

@ayoung-dev ayoung-dev left a comment

Choose a reason for hiding this comment

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

테스트 부분 좋아보입니다! 👍🏻

Copy link
Collaborator

@leebs0521 leebs0521 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다.

@GeneratedValue(strategy = GenerationType.UUID)
@Column(nullable = false, length = 16)
@Column(nullable = false, columnDefinition = "BINARY(16)")
private UUID id;
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.

BINARY(16)으로 id값을 압축했다는걸 명시적으로 보여주고 싶었어요

7zrv added 3 commits November 29, 2024 11:00
- 기관 프로필 조회 엔드포인트를 위한 컨트롤러 구현
- center의 PK값에 columnDefinition = "BINARY(16)" 옵션을 넣어 타입을 더 명시적으로 나타냄
- 테스트 코드 작성및 검증완료
- 예외 메세지 변경
- 컨트롤러와 API 엔드포인트에 스웨거 어노테이션 추가
- 응답 DTO에 스웨거 스키마 추
…ller' into feature/69-add-center-api-controller

# Conflicts:
#	src/main/java/com/somemore/center/controller/CenterQueryApiController.java
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

빌드에 실패했습니다.

@github-actions github-actions bot changed the title Feature/69 기관 프로필 조회 컨트롤러 구현 [BUILD FAIL] Feature/69 기관 프로필 조회 컨트롤러 구현 Nov 29, 2024
@github-actions github-actions bot closed this Nov 29, 2024
@7zrv 7zrv reopened this Nov 29, 2024
@github-actions github-actions bot changed the title [BUILD FAIL] Feature/69 기관 프로필 조회 컨트롤러 구현 [BUILD FAIL] [BUILD FAIL] Feature/69 기관 프로필 조회 컨트롤러 구현 Nov 29, 2024
@github-actions github-actions bot closed this Nov 29, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

빌드에 실패했습니다.

- CenterQueryApiControllerTest 예외 테스트의 예외 메세지를 수정
@7zrv 7zrv changed the title [BUILD FAIL] [BUILD FAIL] Feature/69 기관 프로필 조회 컨트롤러 구현 Feature/69 기관 프로필 조회 컨트롤러 구현 Nov 29, 2024
@7zrv 7zrv reopened this Nov 29, 2024
@sonarqubecloud
Copy link

@7zrv 7zrv merged commit 74ea66d into main Nov 29, 2024
3 checks passed
@7zrv 7zrv deleted the feature/69-add-center-api-controller branch November 29, 2024 02:42
leebs0521 pushed a commit that referenced this pull request Nov 29, 2024
* feat: 기관 프로필 조회 컨트롤러 구현

- 기관 프로필 조회 엔드포인트를 위한 컨트롤러 구현
- center의 PK값에 columnDefinition = "BINARY(16)" 옵션을 넣어 타입을 더 명시적으로 나타냄
- 테스트 코드 작성및 검증완료

* feat: 기관 프로필 조회 컨트롤러 구현

- 기관 프로필 조회 엔드포인트를 위한 컨트롤러 구현
- center의 PK값에 columnDefinition = "BINARY(16)" 옵션을 넣어 타입을 더 명시적으로 나타냄
- 테스트 코드 작성및 검증완료

* chore: 코드 리뷰 사항 반영

- 예외 메세지 변경
- 컨트롤러와 API 엔드포인트에 스웨거 어노테이션 추가
- 응답 DTO에 스웨거 스키마 추

* fix: 테스트 코드 수정

- CenterQueryApiControllerTest 예외 테스트의 예외 메세지를 수정
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.

[FEATURE]기관 프로필 조회 컨트롤러 구현

5 participants