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

Add comment moderation feature #531

Merged
merged 37 commits into from
Feb 1, 2024
Merged

Add comment moderation feature #531

merged 37 commits into from
Feb 1, 2024

Conversation

kirtangajjar
Copy link
Member

@kirtangajjar kirtangajjar commented Jul 8, 2023

Description of the Change

Adds comment moderation feature.

Closes #331

How to test the Change

Changelog Entry

Added - Comment Moderation feature

Credits

Props @kirtangajjar

@kirtangajjar kirtangajjar requested review from a team and dkotter as code owners July 8, 2023 00:32
@kirtangajjar kirtangajjar self-assigned this Jul 8, 2023
@kirtangajjar kirtangajjar marked this pull request as draft July 8, 2023 00:33
@kirtangajjar kirtangajjar changed the title Draft: Add moderation code Add comment moderation feature Jul 8, 2023
@kirtangajjar kirtangajjar linked an issue Jul 8, 2023 that may be closed by this pull request
1 task
@jeffpaul jeffpaul added this to the 2.3.0 milestone Jul 10, 2023
@jeffpaul
Copy link
Member

@kirtangajjar is this up for review or still in progress?

@kirtangajjar
Copy link
Member Author

@jeffpaul The PR is ready, I just have to update the description. Once it's done, then ready to review.

@kirtangajjar
Copy link
Member Author

@Sidsector9 Done. Fixed the PHPCS issues and resolved your feedback as well :)

@dkotter dkotter modified the milestones: 2.4.0, 2.5.0 Nov 7, 2023
@dkotter dkotter modified the milestones: 2.5.0, Future Release Nov 28, 2023
@jeffpaul
Copy link
Member

jeffpaul commented Jan 2, 2024

@Sidsector9 this might be a good PR to pick up (or perhaps close and open a subsequent related one) to use as an example of adding a new feature with the v3 release; thoughts?

@Sidsector9
Copy link
Member

Since we're adding this to core, it would be a good example for internal developers only. Third-party devs will still need to use hooks that will ship out with v3.

@jeffpaul
Copy link
Member

jeffpaul commented Jan 4, 2024

@Sidsector9 sorry, yeah, I meant to effectively have v3 stable in develop and then utilize a PR like this to have as an example for how to extend ClassifAI for new features/service providers.

@dkotter dkotter self-assigned this Jan 31, 2024
@dkotter dkotter modified the milestones: Future Release, 3.0.0 Jan 31, 2024
@dkotter
Copy link
Collaborator

dkotter commented Jan 31, 2024

@Sidsector9 I've migrated all code changes here into the new Feature-first format. I still need to add E2E tests for this new feature but it is ready for another review when you have some time.

Edit: tests are there now so this should be good to go

@dkotter dkotter removed their request for review January 31, 2024 23:22
Copy link
Member

@Sidsector9 Sidsector9 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR and making the changes. Tested and works well 👍

@dkotter dkotter merged commit 34b65a3 into develop Feb 1, 2024
12 checks passed
@dkotter dkotter deleted the feature/moderation branch February 1, 2024 19:40
@jeffpaul
Copy link
Member

Noting for anyone who comes here looking for more context that comments will be sent into moderation if they're flagged by OpenAI Moderation for the following categories: https://platform.openai.com/docs/guides/moderation/overview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Utilize the OpenAI Moderation API to filter content (comments?)
7 participants