Skip to content

Conversation

@ayoung-dev
Copy link
Collaborator

@ayoung-dev ayoung-dev commented Feb 7, 2025

📌 과제 설명

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

  • volunteer -> newVolunteer / center -> newCenter
  • 특정 기관 모집글 elastic search 조회 구현
  • 특정 기관 모집글 조회, 기관이 작성한 모집글 조회 controller 이동 (recruitboard -> search)

✅ PR 포인트 & 궁금한 점

@ayoung-dev ayoung-dev self-assigned this Feb 7, 2025
@ayoung-dev ayoung-dev linked an issue Feb 7, 2025 that may be closed by this pull request
3 tasks
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.

고생하셨습니다.

public String findNameById(UUID id) {
return findDynamicFieldByCenterId(id, userCommonAttribute.name)
.orElse(null);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기그냥 Optional로 하는게 어떠신가요??

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.

감사합니다 반영했습니다!


if (name == null || name.isBlank()) {
throw new BadRequestException(NOT_EXISTS_CENTER);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

위에 Optional로 바꾸면 여기서 .orElse() 에러 핸들링 될 같아요. 그리고 NoSuchEle~ 에러클래스가 더 어울릴 것 같아요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

감사합니다! 반영했습니다

private final CenterQueryUseCase centerQueryUseCase;
private final NEWVolunteerQueryUseCase volunteerQueryUseCase;
private final NEWCenterQueryUseCase centerQueryUseCase;
private final LocationQueryUseCase locationQueryUseCase;
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.

엇 다른 도메인의 메서드를 사용하는 거라 일부러 usecase로 가져와서 한 건데 repository로 하는게 맞을까요?
동작은 잘 되는데 의견 주시면 다음 리팩토링에 반영하겠습니다!

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.

수고하셨습니다!

public String findNameById(UUID id) {
return findDynamicFieldByCenterId(id, userCommonAttribute.name)
.orElse(null);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

저도 그게 좋다고 생각해용

@ayoung-dev ayoung-dev force-pushed the refactor/364-modify-search branch from b3f1c5e to 302f78e Compare February 9, 2025 14:56
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 9, 2025

@leebs0521 leebs0521 merged commit f02adab into main Feb 10, 2025
3 checks passed
@leebs0521 leebs0521 deleted the refactor/364-modify-search branch February 10, 2025 02:46
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.

[REFACTOR] 검색 리팩토링

4 participants