Skip to content

Comments

[DEL] 응원톡 저장 시 필터링을 제거해요#425

Merged
Jin409 merged 1 commit intomainfrom
del/bad-word-filter
Feb 8, 2026
Merged

[DEL] 응원톡 저장 시 필터링을 제거해요#425
Jin409 merged 1 commit intomainfrom
del/bad-word-filter

Conversation

@Jin409
Copy link
Contributor

@Jin409 Jin409 commented Feb 8, 2026

📝 구현 내용

  • 추후 필터링 기능을 다시 켤 수 있도록 우선은 Deprecated 처리만 해뒀어요

as-is

  • 외부 라이브러리에서 제공하는 필터링 기능을 통해 직접적인 욕설의 저장 자체를 막았었어요

to-be

  • LLM 호출을 통해서 욕설의 저장을 막지 않고 마스킹 해요 관련 PR

제거의 배경

  • 스포츠 경기라는 특성 상, 욕설이 섞인 코멘트를 달 가능성이 있어요
    • ex) ㅅㅂ ㅈㄴ 잘하네 -> 기존에는 아예 저장 불가능
    • ex) ** ** 잘하네 -> 마스킹을 통해 기존의 의도는 살리되, 불쾌감은 경감할 수 있도록 변경

@Jin409 Jin409 requested a review from TAEW00KIM February 8, 2026 07:48
@Jin409 Jin409 self-assigned this Feb 8, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello @Jin409, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 응원톡 저장 시 기존에 적용되던 욕설 필터링 기능을 제거하고, 해당 기능을 Deprecated 처리하는 변경사항을 포함합니다. 이는 스포츠 경기 특성상 욕설이 포함된 코멘트가 발생할 수 있음을 고려하여, 향후 LLM 기반의 마스킹 방식으로 전환하기 위한 사전 작업입니다. 기존에는 욕설이 포함된 응원톡의 저장을 아예 막았지만, 이제는 저장을 허용하고 마스킹을 통해 불쾌감을 줄이는 방향으로 정책이 변경됩니다.

Highlights

  • 응원톡 저장 시 욕설 필터링 로직 제거: CheerTalkService에서 기존의 욕설 필터링 로직(validateContent 메서드 및 LanguageFilter 의존성)을 완전히 제거했습니다.
  • 기존 필터링 기능 Deprecated 처리: LanguageFilter 인터페이스와 LanguageFilterImpl 구현체에 @deprecated 어노테이션을 추가하여 더 이상 사용되지 않음을 명시했습니다.
  • 관련 테스트 비활성화: 기존 욕설 필터링 기능과 관련된 테스트 케이스들을 @disabled 어노테이션으로 비활성화하고, LLM으로 대체되었음을 명시하는 이유를 추가했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/main/java/com/sports/server/command/cheertalk/application/CheerTalkService.java
    • LanguageFilter 의존성 및 validateContent 메서드 호출 제거
    • validateContent 메서드 정의 제거
  • src/main/java/com/sports/server/command/cheertalk/domain/LanguageFilter.java
    • 인터페이스에 @deprecated 어노테이션 추가
  • src/main/java/com/sports/server/command/cheertalk/infra/LanguageFilterImpl.java
  • src/test/java/com/sports/server/command/cheertalk/application/CheerTalkServiceTest.java
    • 욕설 필터링 관련 테스트 케이스 두 개를 @disabled 처리
Activity
  • 이 PR에는 아직 어떠한 리뷰 활동이나 코멘트가 없습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

안녕하세요. 응원톡 저장 시 필터링을 제거하는 변경사항 잘 보았습니다. LLM을 이용한 마스킹 처리로 정책을 변경하면서 기존 필터링 로직을 제거하고, 관련 코드를 @Deprecated 처리하신 점이 인상 깊습니다. 덕분에 추후 기능 복원이 용이해 보이네요.

코드 리뷰에서는 주로 테스트 코드의 유지보수성에 초점을 맞추었습니다. 비활성화된 테스트들을 새로운 정책에 맞게 수정하여 현재 로직을 더 명확하게 검증하도록 제안했습니다. 또한, 더 이상 사용되지 않는 Spring 컴포넌트를 컨텍스트에서 제외하여 불필요한 리소스 사용을 막는 작은 개선점도 포함했습니다.

자세한 내용은 각 파일의 주석을 참고해주세요.


}

@Disabled(value = "욕설 필터링 기능을 LLM 으로 대체해 스킵")

Choose a reason for hiding this comment

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

medium

욕설이 포함되지 않은 응원톡이 정상적으로 저장되는지 확인하는 이 테스트는 핵심 기능에 대한 중요한 검증입니다. 욕설 필터링 로직이 제거되었더라도, 정상적인 응원톡 저장 기능은 여전히 유효하며 테스트되어야 합니다. 이 테스트는 현재 로직에서도 통과해야 하므로 @Disabled 어노테이션을 제거하여 테스트 커버리지를 유지하는 것이 좋겠습니다.

@TAEW00KIM
Copy link
Contributor

고생하셨습니다!

Copy link
Contributor

@TAEW00KIM TAEW00KIM left a comment

Choose a reason for hiding this comment

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

간단한 리팩토링이라 따로 크게 볼 건 없네요 ㅎㅎ 고생하셨습니다 저도 슬슬 일에 참여해볼게요!

@Jin409 Jin409 merged commit b120553 into main Feb 8, 2026
1 check passed
@Jin409 Jin409 deleted the del/bad-word-filter branch February 8, 2026 12:38
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.

2 participants