Open
Conversation
…nstructor private
🦙 MegaLinter status:
|
| Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|
| ✅ JAVA | checkstyle | 11 | 0 | 0 | 2.89s | |
| ✅ PYTHON | bandit | 2 | 0 | 0 | 1.38s | |
| black | 2 | 1 | 0 | 1.64s | ||
| ✅ PYTHON | flake8 | 2 | 0 | 0 | 0.82s | |
| isort | 2 | 1 | 0 | 0.33s | ||
| ✅ PYTHON | mypy | 2 | 0 | 0 | 3.52s | |
| ✅ PYTHON | ruff | 2 | 0 | 0 | 0.02s | |
| ✅ REPOSITORY | dustilock | yes | no | no | 0.25s | |
| ✅ REPOSITORY | gitleaks | yes | no | no | 1.63s | |
| ✅ REPOSITORY | git_diff | yes | no | no | 0.02s | |
| ✅ REPOSITORY | grype | yes | no | no | 25.55s | |
| ✅ REPOSITORY | secretlint | yes | no | no | 2.17s | |
| ✅ REPOSITORY | syft | yes | no | no | 1.83s | |
| ✅ REPOSITORY | trivy-sbom | yes | no | no | 0.37s | |
| ✅ REPOSITORY | trufflehog | yes | no | no | 4.95s | |
| ✅ SPELL | lychee | 1 | 0 | 0 | 0.12s | |
| ✅ YAML | prettier | 1 | 0 | 0 | 0.35s | |
| ✅ YAML | v8r | 1 | 0 | 0 | 3.61s | |
| ✅ YAML | yamllint | 1 | 0 | 0 | 0.31s |
See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff
Kyle9410-Chen
requested changes
May 6, 2025
Member
Kyle9410-Chen
left a comment
There was a problem hiding this comment.
For Text Suggestion, since the backend currently serves only as a bridge between the frontend and the AI service, there doesn’t seem to be any need to persist the suggestion results in the database.
src/main/java/tw/commonground/backend/service/suggestion/dto/TextSuggestionResponse.java
Outdated
Show resolved
Hide resolved
src/main/java/tw/commonground/backend/service/suggestion/dto/EditedTextSuggestionResponse.java
Outdated
Show resolved
Hide resolved
src/main/java/tw/commonground/backend/service/suggestion/dto/EditedTextSuggestionRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/tw/commonground/backend/service/suggestion/SuggestionService.java
Outdated
Show resolved
Hide resolved
Member
Author
I’ve removed the database storage. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Type of Changes
Purpose
Introduce a new feature to create user guidance by integrating AI-driven text suggestions.
Add mock suggestion functionality and implement suggestion API endpoints for text and edited text suggestions.
/api/mock-text-suggestionto detect offensive or inappropriate content in text and suggest replacements./api/mock-edited-text-suggestionto detect inappropriate content and provide suggestions for edited texts./api/text-suggestionto create new text suggestions based on input text./api/edited-text-suggestionto create new edited text suggestions, detecting highlighted inappropriate content.Additional Information
/api/mock-text-suggestionand/api/mock-edited-text-suggestion) will eventually be replaced by the AI Team's implemented suggestion container for advanced AI-driven suggestions.Running the Mock Suggestion Service:
The mock suggestion service runs on port
5001:Add the mock api url into your
application-dev.propertiesRelated Links: