Skip to content

Conversation

@yash-rajpal
Copy link
Member

@yash-rajpal yash-rajpal commented Mar 6, 2025

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

SUP-704


This pull request aims to enhance the content moderation capabilities of the Rocket.Chat application by improving the bad words filtering system. It introduces support for filtering non-ASCII bad words, allowing for better moderation of messages in languages other than English. The changes include the addition of regex-based pattern matching to the existing bad words filter, which improves word boundary detection and ensures more consistent censorship of inappropriate language. These updates are implemented in the BeforeSaveBadWords.ts file and documented in the .changeset/witty-ads-visit.md file. The source branch for these changes is fix/non-ascii-bad-words, and the target branch is develop.

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Mar 6, 2025

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2025

🦋 Changeset detected

Latest commit: c94103e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 35 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 59.66%. Comparing base (721c132) to head (c94103e).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop   #35418   +/-   ##
========================================
  Coverage    59.66%   59.66%           
========================================
  Files         2826     2826           
  Lines        68369    68379   +10     
  Branches     15148    15149    +1     
========================================
+ Hits         40793    40801    +8     
- Misses       24962    24964    +2     
  Partials      2614     2614           
Flag Coverage Δ
unit 75.86% <83.33%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yash-rajpal
Copy link
Member Author

@kody start-review

@kody-ai
Copy link

kody-ai bot commented Mar 6, 2025

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Security
Code Style
Kody Rules
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization

Access your configuration settings here.

@yash-rajpal yash-rajpal marked this pull request as ready for review March 6, 2025 20:44
@yash-rajpal yash-rajpal requested a review from a team as a code owner March 6, 2025 20:44
@yash-rajpal yash-rajpal added this to the 7.5.0 milestone Mar 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2025

PR Preview Action v1.6.0

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-35418/

Built to branch gh-pages at 2025-03-18 22:13 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@yash-rajpal yash-rajpal requested a review from ricardogarim March 7, 2025 16:32
ricardogarim
ricardogarim previously approved these changes Mar 7, 2025
@scuciatto scuciatto added the stat: QA assured Means it has been tested and approved by a company insider label Mar 13, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Mar 13, 2025
@kodiakhq kodiakhq bot merged commit b9edd48 into develop Mar 18, 2025
48 checks passed
@kodiakhq kodiakhq bot deleted the fix/non-ascii-bad-words branch March 18, 2025 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants