Skip to content

feat: 소모품 종류 응답에 카테고리 그룹 이름 추가 - #201

Merged
eclipse021 merged 1 commit into
mainfrom
junhyeon/feat/200-category-group-name
Oct 19, 2026
Merged

eclipse021 merged 1 commit into
mainfrom
junhyeon/feat/200-category-group-name

Conversation

@eclipse021

@eclipse021 eclipse021 commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #200

Summary

소모품 종류 응답에서 소속 그룹을 바로 확인할 수 있도록 categoryGroupName 추가

Changes

  • 목록 조회·생성 응답에 그룹 이름 추가
  • 그룹 이름 일괄 조회, 미분류·삭제된 그룹은 null 처리
  • API 문서와 그룹 이름 조회 테스트 보완

Etc

  • ./gradlew test ktlintCheck 통과 (테스트 236개)

Summary by CodeRabbit

  • 기능 개선
    • 카테고리 조회 응답에 카테고리 그룹 이름이 포함됩니다.
    • 그룹이 없거나 삭제된 경우 그룹 이름은 null로 표시됩니다.

@eclipse021
eclipse021 requested a review from a team as a code owner October 19, 2026 12:32
@eclipse021
eclipse021 requested review from jminkkk and ziweek October 19, 2026 12:32
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 57e23365-f874-4b9b-b192-88fb43c61c34
📥 Commits

Reviewing files that changed from the base of the PR and between 184ccc3 and 74920eb.

📒 Files selected for processing: 5
  • src/main/kotlin/depromeet/hotsix/obrit/category/controller/docs/CategoryControllerApi.kt
  • src/main/kotlin/depromeet/hotsix/obrit/category/dto/response/CategoryResponse.kt
  • src/main/kotlin/depromeet/hotsix/obrit/category/service/CategoryQueryService.kt
  • src/main/kotlin/depromeet/hotsix/obrit/category/service/CategoryService.kt
  • src/test/kotlin/depromeet/hotsix/obrit/category/service/CategoryGroupServiceTest.kt

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

카테고리 응답에 nullable한 categoryGroupName 필드를 추가했습니다. 전체 카테고리 조회와 카테고리 생성에서 그룹 이름을 응답에 포함하며, 그룹이 없거나 조회되지 않으면 이름은 null입니다.

Changes

카테고리 그룹 이름 응답

Layer / File(s) Summary
응답 계약과 전체 조회
src/main/kotlin/depromeet/hotsix/obrit/category/dto/response/CategoryResponse.kt, src/main/kotlin/depromeet/hotsix/obrit/category/service/CategoryQueryService.kt, src/main/kotlin/depromeet/hotsix/obrit/category/controller/docs/CategoryControllerApi.kt, src/test/kotlin/depromeet/hotsix/obrit/category/service/CategoryGroupServiceTest.kt
CategoryResponse에 nullable한 categoryGroupName을 추가했습니다. 전체 조회는 활성 그룹의 ID와 이름을 연결하며, 대응하는 그룹이 없으면 이름을 null로 반환합니다. API 설명과 전체 조회 테스트를 갱신했습니다.
카테고리 생성 응답
src/main/kotlin/depromeet/hotsix/obrit/category/service/CategoryService.kt, src/test/kotlin/depromeet/hotsix/obrit/category/service/CategoryGroupServiceTest.kt
카테고리 생성에서 그룹 객체를 조회하고, 응답에 그룹 이름을 전달합니다. 테스트는 생성 응답의 그룹 이름을 검증합니다.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 74920

No specific issue remains that should prevent merging after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 5 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 제목은 소모품 종류 응답에 카테고리 그룹 이름을 추가하는 PR의 주요 변경 사항을 정확하고 간결하게 설명합니다.
Linked Issues check Passed 이슈 #200의 코딩 요구사항을 충족합니다. CategoryResponse에 기존 categoryGroupId를 유지하면서 nullable categoryGroupName을 추가했습니다. listAllAccessibleCategories는 활성 그룹을 한 번에 조회해 ID별 이름을 매핑하고, 미분류·삭제·미존재 그룹은 null을 반환합니다…
Out of Scope Changes check Passed 변경 범위는 이슈 #200과 연결됩니다. 생성 응답에 그룹 이름을 포함한 변경은 동일한 CategoryResponse 계약을 일관되게 적용하는 지원 변경입니다. 관련 서비스 로직, API 문서, 자동화 테스트 외에 unrelated 변경은 확인되지 않았습니다.
Full details: Linked Issues check

Explanation

이슈 #200의 코딩 요구사항을 충족합니다. CategoryResponse에 기존 categoryGroupId를 유지하면서 nullable categoryGroupName을 추가했습니다. listAllAccessibleCategories는 활성 그룹을 한 번에 조회해 ID별 이름을 매핑하고, 미분류·삭제·미존재 그룹은 null을 반환합니다. listCategoryGroups는 탭 목록과 노출 순서 조회를 계속 제공합니다. API 문서와 그룹 이름 조회 및 예외 상태 테스트도 추가했습니다.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

나는 토끼, 새 이름을 살펴봐
카테고리에 그룹 이름이 담겼네
없는 그룹엔 null이 찾아오고
조회와 생성 응답을 확인하네
당근처럼 또렷한 응답이 되었네

Comment @coderabbitai help to get the list of available commands.

@eclipse021
eclipse021 merged commit 11aaaf2 into main Oct 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] 소모품 종류 조회 응답에 카테고리 그룹 이름 추가

1 participant