Skip to content

Conversation

@yu-so-young2
Copy link
Member

@yu-so-young2 yu-so-young2 commented Aug 31, 2025

📝 작업 내용

  • 기술블로그 검색어 검색시 score 값 누락 및 정렬 조건에 오류 있던 부분 수정

🔗 참고할만한 자료(선택)

슬랙이나 피그마, Jira 등 참고 링크를 첨부해주세요

  • [레포 이름 #이슈번호](이슈 주소)

💬 리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

@yu-so-young2 yu-so-young2 requested a review from ssosee August 31, 2025 06:43
@yu-so-young2 yu-so-young2 self-assigned this Aug 31, 2025
@yu-so-young2 yu-so-young2 added the fix 기능 수정 label Aug 31, 2025
Copy link
Member

@ssosee ssosee left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!
이전 PR review 에서 codex가 발견했는데, 무슨 말인지 잘 이해가 안가서 넘겼던것 같아요.

@ralph-teuida
Copy link
Contributor

@codex 한국어로 리뷰 부탁해!

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines 205 to 214
private Predicate getCursorConditionForKeywordSearch(TechArticleSort techArticleSort, Long techArticleId,
Float score, NumberTemplate<Double> totalScore) {
if (ObjectUtils.isEmpty(techArticleId) || ObjectUtils.isEmpty(score)) {
Double score, NumberTemplate<Double> totalScore) {
if (ObjectUtils.isEmpty(techArticleId)) {
return null;
}

// HIGHEST_SCORE(정확도순)인 경우 스코어 기반 커서 사용
if (techArticleSort == TechArticleSort.HIGHEST_SCORE) {
if (techArticleSort == TechArticleSort.HIGHEST_SCORE || ObjectUtils.isEmpty(techArticleSort)) {
return totalScore.lt(score.doubleValue())
.or(totalScore.eq(score.doubleValue())

Choose a reason for hiding this comment

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

[P1] score 누락 시 커서 조건에서 null 처리 추가

키워드 조회 커서 조건 생성 로직이 techArticleSort가 정확도순(또는 null)일 때 score.doubleValue()를 바로 호출하도록 변경되었습니다. 기존에는 score가 없으면 조건 자체를 생성하지 않아도 요청이 성공했지만, 이제 다음 페이지 요청이 techArticleId만 포함하고 score는 누락된 경우(이전 클라이언트나 잘못된 호출) NullPointerException이 발생해 500 응답이 내려갑니다. score 값이 필수라면 컨트롤러에서 명시적으로 검증하거나 이 메서드에서 null을 허용하도록 기존의 방어 로직을 유지해야 합니다.

Useful? React with 👍 / 👎.

@ssosee ssosee merged commit a425860 into develop Aug 31, 2025
1 check passed
@yu-so-young2 yu-so-young2 deleted the DP-516 branch October 19, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 기능 수정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants