Skip to content

[Fix] 불필요한 파일 삭제#444

Merged
david-parkk merged 5 commits intodevelopfrom
fix/#443
Feb 24, 2026
Merged

[Fix] 불필요한 파일 삭제#444
david-parkk merged 5 commits intodevelopfrom
fix/#443

Conversation

@david-parkk
Copy link
Contributor

@david-parkk david-parkk commented Feb 24, 2026

#️⃣ 연관된 이슈

closes #443

📝작업 내용

  • 사용하지 않는 파일 삭제

작업 상세 내용

상세 내용을 입력해주세요.

💬리뷰 요구사항

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

Summary by CodeRabbit

릴리스 노트

  • Documentation

    • 프로젝트 README 및 다국어 문서(영/한) 전체 삭제
  • Chores

    • 배포 파이프라인(자동화) 설정 제거
    • 테스트 커버리지 및 일부 빌드/테스트 도구 제거
  • Refactor

    • 쿼리 관련 구성 제거
  • Bug Fixes / Behavior

    • 전역 예외 처리 흐름 일부 정리 및 에러 처리 방식 조정
  • Tests

    • 테스트 문서화 스키마의 필드 타입 표기 방식 갱신

@coderabbitai
Copy link

coderabbitai bot commented Feb 24, 2026

Warning

Rate limit exceeded

@david-parkk has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 15 minutes and 46 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 16bd333 and a9b4700.

📒 Files selected for processing (2)
  • src/test/java/ku_rum/backend/domain/common/mail/presentation/MailControllerTest.java
  • src/test/java/ku_rum/backend/domain/user/presentation/UserControllerTest.java

Walkthrough

사용되지 않는 문서, CI 설정, 빌드/테스트 관련 설정 및 일부 QueryDSL/예외 핸들링 관련 코드가 제거되거나 간소화된 변경입니다.

Changes

Cohort / File(s) Summary
문서 파일 제거
README.md, docs/README_EN.md, docs/README_KR.md
프로젝트 README 및 다국어 문서 파일 전체 삭제(콘텐츠 모두 제거).
CI/CD 설정 제거
Jenkinsfile
전체 Jenkins 파이프라인 정의(체크아웃, 빌드, 배포, 알림 등) 삭제.
빌드 설정 정리
build.gradle
JaCoCo 플러그인 및 관련 태스크, QueryDSL 의존성 및 일부 테스트/웹드라이버 의존성(jsoup, selenium, httpclient 등) 제거.
QueryDSL 구성 제거
src/main/java/.../global/config/QueryDslConfig.java
JPAQueryFactory 빈을 제공하던 설정 클래스 삭제.
예외 처리 조정
src/main/java/.../global/handler/GlobalExceptionControllerAdvice.java
예외 매핑/임포트 정리 및 일부 핸들러(InternalServerError 경로 등) 재구성/간소화.
OAuth 성공 핸들러 미세 수정
src/main/java/.../oauth/handler/OAuth2AuthenticationSuccessHandler.java
권한 없는 리다이렉트 처리 시 BadRequestException 대신 RuntimeException 사용 등 예외 처리/임포트 변경(로직 실질 변경 미미).
테스트 문서화 타입 변경
src/test/java/.../MailControllerTest.java, src/test/java/.../UserControllerTest.java, src/test/java/.../UserProfileControllerTest.java
RestDocs 필드 타입을 JsonTypeJsonFieldType로 교체 및 관련 import 정리(동작 변화 없음).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • KU-rum/backend#333: 동일 클래스(OAuth2AuthenticationSuccessHandler.java)에 대한 변경이 있어 클래스 레벨의 충돌 가능성 및 행동 차이 연관.
  • KU-rum/backend#428: RestDocs/테스트 관련 변경을 다루는 PR로 테스트 문서화 타입 변경과 관련 있음.

Suggested labels

Refactor

Suggested reviewers

  • kmw10693

Poem

🐰 퐁당퐁당 파일들을 정리했네,
빌드가 가벼워지고 문서는 비워졌네,
옛 설정들에 인사하고 깡충 앞으로,
코드밭에 당근 하나, 새 시작을 위하여 🥕✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning 일부 변경사항(OAuth2AuthenticationSuccessHandler의 예외 처리 변경, GlobalExceptionControllerAdvice 리팩토링, 테스트 코드의 JsonType→JsonFieldType 변경)은 단순 삭제를 넘어 코드 수정을 포함합니다. 예외 처리 로직 변경 및 테스트 코드 수정 사항을 별도의 PR로 분리하거나, 이슈 #443에서 이들 변경이 필요한 이유를 명확히 하세요.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed 제목이 변경 사항의 주요 내용을 명확하게 반영하고 있으며, 불필요한 파일 삭제라는 PR의 목적을 잘 요약하고 있습니다.
Description check ✅ Passed PR 설명이 템플릿 구조를 따르고 있으나 '작업 상세 내용'과 '리뷰 요구사항' 섹션이 빈 상태입니다.
Linked Issues check ✅ Passed Jenkinsfile, 설정 파일(build.gradle, QueryDslConfig), 문서(README 파일들), 테스트 코드 업데이트 등이 제거되었으며, 이는 불필요한 파일 삭제 요구사항을 충족합니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/#443

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

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

@github-actions
Copy link

github-actions bot commented Feb 24, 2026

Test Results

 38 files   38 suites   10s ⏱️
173 tests 173 ✅ 0 💤 0 ❌
174 runs  174 ✅ 0 💤 0 ❌

Results for commit a9b4700.

♻️ This comment has been updated with latest results.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
`@src/main/java/ku_rum/backend/domain/oauth/handler/OAuth2AuthenticationSuccessHandler.java`:
- Around line 60-67: In determineTargetUrl inside
OAuth2AuthenticationSuccessHandler, replace the RuntimeException thrown for an
unauthorized redirect URI (checked against REDIRECT_URI_PARAM_COOKIE_NAME) with
a 4xx-mapped exception (e.g., throw new AccessDeniedException("승인되지 않은 리다이렉션
URI입니다")) so the response is a client error (403) instead of 500; update imports
accordingly or alternatively create/throw a custom 4xx exception that your
global handler maps to the desired status.

In
`@src/main/java/ku_rum/backend/global/handler/GlobalExceptionControllerAdvice.java`:
- Around line 42-47: The current handleBadRequest in
GlobalExceptionControllerAdvice mixes NoHandlerFoundException and
TypeMismatchException returning HTTP 400 and URL_NOT_FOUND for both; split them
into two distinct handlers or branch inside handleBadRequest to return the
correct status/message: handle NoHandlerFoundException separately (use
`@ResponseStatus`(HttpStatus.NOT_FOUND) and return
BaseErrorResponse(URL_NOT_FOUND)) and handle TypeMismatchException with
`@ResponseStatus`(HttpStatus.BAD_REQUEST) returning the appropriate bad-request
error constant (e.g., BAD_REQUEST or INVALID_TYPE); update method
signatures/logging accordingly so each exception maps to the correct HTTP status
and error code.

In
`@src/test/java/ku_rum/backend/domain/common/mail/presentation/MailControllerTest.java`:
- Around line 110-112: Tests and documentation disagree on the type of the
"code" field: the test asserts jsonPath("$.code").value("200") (string) while
the API docs use
fieldWithPath("code").type(JsonFieldType.NUMBER).description(...). Make them
consistent by matching the actual response type: update the test assertion in
MailControllerTest to assert a numeric value (e.g.,
jsonPath("$.code").value(200)) if the API returns a number, or change the
documentation fieldWithPath("code") to JsonFieldType.STRING if the API returns a
string; locate the mismatch by looking for jsonPath("$.code").value("200") and
fieldWithPath("code").type(JsonFieldType.NUMBER") and update one side
accordingly.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 78a31f4 and 16bd333.

📒 Files selected for processing (6)
  • src/main/java/ku_rum/backend/domain/oauth/handler/OAuth2AuthenticationSuccessHandler.java
  • src/main/java/ku_rum/backend/global/config/QueryDslConfig.java
  • src/main/java/ku_rum/backend/global/handler/GlobalExceptionControllerAdvice.java
  • src/test/java/ku_rum/backend/domain/common/mail/presentation/MailControllerTest.java
  • src/test/java/ku_rum/backend/domain/user/presentation/UserControllerTest.java
  • src/test/java/ku_rum/backend/domain/user/presentation/UserProfileControllerTest.java
💤 Files with no reviewable changes (1)
  • src/main/java/ku_rum/backend/global/config/QueryDslConfig.java
✅ Files skipped from review due to trivial changes (1)
  • src/test/java/ku_rum/backend/domain/user/presentation/UserControllerTest.java

@sonarqubecloud
Copy link

@david-parkk david-parkk merged commit eb941d5 into develop Feb 24, 2026
4 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.

사용하지 않는 파일 삭제

1 participant