Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CORL-1264] Mark and allow word list timed out comments #3097

Merged
merged 2 commits into from Aug 11, 2020

Conversation

nick-funk
Copy link
Contributor

What does this PR do?

Will mark the comment's metdata as a word list
time out if it happens and also tag them with
suspect or banned word.

Then we show "possible suspect/banned word"
markers on the moderate card so moderators can
manually review them.

What changes to the GraphQL/Database Schema does this PR introduce?

Adds a CommentRevisionWordListMetadata to the CommentRevisionMetadata type on CommentRevision.

How do I test this PR?

  • modify src/core/server/services/comments/pipeline/phases/wordList.ts so that const banned (line 33) or const suspect (line 61) are null instead of the list.test(...) produced value.
  • post a comment as a regular commenter (it won't work if you use an admin/staff member user)
  • head to moderation
  • find the comment under reported with a Possible Suspect/Banned Word marker.

@kgardnr kgardnr added this to the v6.3.2 milestone Aug 11, 2020
@kgardnr kgardnr requested a review from tessalt August 11, 2020 21:38
Will mark the comment's metdata as a word list
time out if it happens and also tag them with
suspect or banned word.

Then we show "possible suspect/banned word"
markers on the moderate card so moderators can
manually review them.

CORL-1264
@nick-funk nick-funk force-pushed the bug/CORL-1264-wordlist-timeout branch from cd8e905 to 7f16cb1 Compare August 11, 2020 21:45
@wyattjoh wyattjoh added the 🚀 merge it! Pull requests that should be merged after status checks pass with a review label Aug 11, 2020
@kodiakhq kodiakhq bot merged commit d67c3d2 into master Aug 11, 2020
@kodiakhq kodiakhq bot deleted the bug/CORL-1264-wordlist-timeout branch August 11, 2020 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 merge it! Pull requests that should be merged after status checks pass with a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants