-
Notifications
You must be signed in to change notification settings - Fork 93
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
refactor sensitive check into a new moderation service #168
Conversation
…poral workflow to run
Linter Issue ReportDuring the code review, a list issues were found. These issues could affect the code quality, maintainability, and consistency. Below is the detailed Linter issue report: builder/rpc/moderation_svc_client.goLint Issue: undefined: RequestOption
builder/store/database/repository_file.goLint Issue: undefined: DB
Lint Issue: undefined: defaultDB
builder/store/database/migrations/20240812113006_create_table_repository_files.goLint Issue: undefined: Migrations
Lint Issue: undefined: createTables
Lint Issue: undefined: dropTables
cmd/csghub-server/cmd/trigger/init.goLint Issue: undefined: fixOrgDataCmd
Lint Issue: undefined: fixUserDataCmd
Please make the suggested changes to improve the code quality. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Possible Issues And Suggestions:
MR Evaluation:This feature is still under test, evaluation are given by AI and might be inaccurate. After evaluation, the code changes in the Merge Request get score: 100. TipsCodeReview Commands (invoked as MR or PR comments)
CodeReview Discussion ChatThere are 2 ways to chat with Starship CodeReview:
Note: Be mindful of the bot's finite context window. CodeReview Documentation and Community
About Us:Visit the OpenCSG StarShip website for the Dashboard and detailed information on CodeReview, CodeGen, and other StarShip modules. |
The TipsCodeReview Commands (invoked as MR or PR comments)
CodeReview Discussion ChatThere are 2 ways to chat with Starship CodeReview:
Note: Be mindful of the bot's finite context window. CodeReview Documentation and Community
|
MR Summary:
The summary is added by @codegpt.
The Merge Request introduces a new moderation service to handle sensitive content checking in repository content. It replaces the existing sensitive checking mechanism with a more structured approach, including the integration of Temporal workflow for asynchronous processing and a DFA (Deterministic Finite Automaton) based local sensitive words detection mechanism. Key updates include: