Skip to content

Remove profanity check for playlab project sources#65397

Merged
fisher-alice merged 1 commit into
stagingfrom
alice/playlab-studio
Apr 22, 2025
Merged

Remove profanity check for playlab project sources#65397
fisher-alice merged 1 commit into
stagingfrom
alice/playlab-studio

Conversation

@fisher-alice

@fisher-alice fisher-alice commented Apr 21, 2025

Copy link
Copy Markdown
Contributor

Currently, only 'playlab' projects are checked for profanity via WebPurify. Because block ids are included in the source code, there have been a disruptive number of false positives being reported by ZenDesk users (example ticket) causing non-abusive projects to be blocked from sharing - Slack thread discussion.

I removed this profanity check which is a request to /v3/channels/<channel_id>/privacy-profanity which calls on channel_policy_violation which uses ShareFiltering.

This safety layer via WebPurify is performed for only 'playlab' project's source code. WebPurify is also used for libraries, and we have received a handful of reports about false positives from users trying to share libraries in App Lab. But the frequency of reports of false positives have seemed to increase recently for 'playlab' projects.

Before update

Screen.Recording.2025-04-21.at.2.19.07.PM.mov

After update

Screen.Recording.2025-04-21.at.2.19.37.PM.mov

Noting that this is the same behavior for other labs including Sprite Lab which is geared for elementary students. Example Sprite Lab project - confirmed that the update to Play Lab to match what happens in Sprite Lab is okay with product.

Screencast of current behavior of Sprite Lab project which includes a word that would be blocked by WebPurify:

Screen.Recording.2025-04-21.at.3.19.44.PM.mov

A follow-up is to remove block IDs before passing project source code to WebPurify: https://codedotorg.atlassian.net/browse/SL-1214.

Warning!!

The AP CSP Create Performance Task is in progress. The most critical dates are from April 3 - April 30, 2025. Please consider any risk introduced by this PR that could affect our students taking AP CSP. Code.org students taking AP CSP primarily use App Lab for their Create Task, however a small percent use Game Lab. Carefully consider whether your change has any risk of alterering, changing, or breaking anything in these two labs. Even small changes, such as a different button color, are considered significant during this time period. Reach out to the Student Learning team or Curriculum team for more details.

Links

Testing story

Checked locally on 'playlab' projects and added a word blocked by WebPurify ('poop') - can still share project.

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@fisher-alice fisher-alice marked this pull request as ready for review April 21, 2025 19:24
@fisher-alice fisher-alice requested review from a team and mikeharv April 21, 2025 19:24

@bencodeorg bencodeorg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks reasonable to me!

This can be a follow-up, but noting there looks like there's a bunch of unused code after this change (eg, the privacy-profanity endpoint, among others). Thanks for doing this!

@fisher-alice fisher-alice merged commit 1fc7b3c into staging Apr 22, 2025
@fisher-alice fisher-alice deleted the alice/playlab-studio branch April 22, 2025 13:42
@fisher-alice

Copy link
Copy Markdown
Contributor Author

Looks reasonable to me!

This can be a follow-up, but noting there looks like there's a bunch of unused code after this change (eg, the privacy-profanity endpoint, among others). Thanks for doing this!

Good call! Created a follow-up jira ticket: https://codedotorg.atlassian.net/browse/SL-1219

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.

3 participants