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

Show why a project is blocked in the admin panel #29030

Merged
merged 2 commits into from Jun 11, 2019
Merged

Conversation

Erin007
Copy link
Contributor

@Erin007 Erin007 commented Jun 10, 2019

LP-352

We'd like to give admins more insight into why a project is blocked from sharing. There are four reason why a project could be blocked:
1.) Sharing is disabled for the owner
2.) There is potentially profane or private information in the project text, caught by WebPurify
3.) There is a potentially inappropriate image associate with the project, caught by image moderation
4.) The project has been manually reported for abuse enough that the abuse threshold is reached

In this change, I expose which (if any) of these criteria have been met in the admin panel for projects.

Examples

Safe to share:
Screen Shot 2019-06-10 at 1 02 44 PM

Sharing is disabled:
Screen Shot 2019-06-10 at 1 07 53 PM

Manual abuse reports:
Screen Shot 2019-06-10 at 1 01 43 PM

Both sharing is disabled and manual abuse reports:
Screen Shot 2019-06-10 at 1 09 16 PM

Upcoming work:

  • displaying which term was flagged by the profanity/privacy text filter
  • only showing enable/disable content moderation buttons when applicable based on project type

}
if (abusive) {
// The image moderation service sets the abuse score to 15 to
// differentiate from manual reports.
Copy link
Member

Choose a reason for hiding this comment

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

tangential question, but if a featured project has an abusive image added to it the new starting score of -50, that won't be enough to "automatically" block the project, right? I think this is probably ok... because we choose who to feature, and the abusers are relatively unlikely to be selected... just confirming I understand the implications here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are correct. If an abusive image is added to a project while it is featured, then the increment on the abuse score via the image moderation service would not be enough to block the project.

Copy link
Contributor

@maddiedierker maddiedierker left a comment

Choose a reason for hiding this comment

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

yay, this is super useful!

@Erin007 Erin007 merged commit 2f06880 into staging Jun 11, 2019
@Erin007 Erin007 deleted the project-why-blocked branch June 11, 2019 04:48
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.

None yet

3 participants